Freecad 0.19 - No module named 'PyQt5'

In diesem Forum Fragen und Diskussionen in Deutsch
Forum rules
Foren-Regeln und hilfreiche Informationen

WICHTIG: Bitte zuerst lesen, bevor Sie posten
Post Reply
OpaHaps
Posts: 2
Joined: Mon Feb 01, 2021 7:44 pm

Freecad 0.19 - No module named 'PyQt5'

Post by OpaHaps »

Guten Tag,
leider hatte ich bis jetzt einige Probleme mit dem Update auf 0.19.
Mittlerweile habe ich einen Reinstall vorgenommen der mich immerhin auf 0.19 gebracht hat. Allerdings erhalte ich nun folgende Fehlermeldung:
'No module named 'PyQt5' scheinbar betrifft es nicht alle Workbenches - (getest Arch, Bim und Sektcher, nur letzte funktioniert)

Mein System:

Code: Select all

System:
  Kernel: 5.11.7-051107-generic x86_64 bits: 64 Desktop: MATE 1.24.0 
  Distro: Linux Mint 20.1 Ulyssa 
Machine:
  Type: Laptop System: HUAWEI product: NBLK-WAX9X v: M1110 serial: <filter> 
  Mobo: HUAWEI model: NBLK-WAX9X-PCB v: M1110 serial: <filter> UEFI: HUAWEI 
  v: 1.06 date: 03/11/2020 
Battery:
  ID-1: BAT1 charge: 40.8 Wh condition: 54.1/55.3 Wh (98%) 
CPU:
  Topology: Quad Core model: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx 
  bits: 64 type: MT MCP L2 cache: 2048 KiB 
  Speed: 1331 MHz min/max: 1400/2100 MHz Core speeds (MHz): 1: 1231 2: 1219 
  3: 1303 4: 1353 5: 1260 6: 1397 7: 1223 8: 1296 
Graphics:
  Device-1: AMD Picasso driver: amdgpu v: kernel 
  Display: x11 server: X.Org 1.20.9 driver: amdgpu,ati 
  unloaded: fbdev,modesetting,vesa resolution: 1920x1080~60Hz 
  OpenGL: renderer: AMD RAVEN (DRM 3.40.0 5.11.7-051107-generic LLVM 11.0.0) 
  v: 4.6 Mesa 20.2.6 
Audio:
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio driver: snd_hda_intel 
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor 
  driver: snd_pci_acp3x 
  Device-3: AMD Family 17h HD Audio driver: snd_hda_intel 
  Sound Server: ALSA v: k5.11.7-051107-generic 
Network:
  Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter 
  driver: rtw_8822ce 
  IF: wlp2s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 296.19 GiB used: 118.26 GiB (39.9%) 
  ID-1: /dev/nvme0n1 vendor: Western Digital 
  model: PC SN730 SDBPNTY-256G-1027 size: 238.47 GiB 
  ID-2: /dev/sda type: USB vendor: Intenso model: Slim Line size: 57.71 GiB 
Partition:
  ID-1: / size: 233.24 GiB used: 101.89 GiB (43.7%) fs: ext4 
  dev: /dev/nvme0n1p2 
Sensors:
  System Temperatures: cpu: 37.1 C mobo: N/A gpu: amdgpu temp: 37 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 256 Uptime: 26m Memory: 6.78 GiB used: 1.58 GiB (23.3%) 
  Shell: bash inxi: 3.0.38 
0.19 habe ich via Terminal installiert

Code: Select all

sudo add-apt-repository ppa:freecad-maintainers/freecad-stable
sudo apt update
sudo apt install freecad
Der Fehler beim Starten von Freecad:

Code: Select all

During initialization the error "No module named 'PyQt5'" occurred in /usr/share/freecad/Mod/AddonManager/InitGui.py
Please look into the log file for further information
During initialization the error "No module named 'PyQt5'" occurred in /usr/share/freecad/Mod/Arch/InitGui.py
Please look into the log file for further information
During initialization the error "No module named 'PyQt5'" occurred in /usr/share/freecad/Mod/Draft/InitGui.py
Please look into the log file for further information
During initialization the error "No module named 'PyQt5'" occurred in /usr/share/freecad/Mod/Tux/InitGui.py
Please look into the log file for further information
Unknown command 'Std_AddonMgr'
connect failed: Datei oder Verzeichnis nicht gefunden
ich habe bisher gelesen das das Problem evt mit Phython zusammen hänge, installiert habe ich;

Code: Select all

python-bs4/focal,focal,now 4.8.2-1 all  [Installiert,automatisch]
python-cairo/focal,now 1.16.2-2ubuntu2 amd64  [installiert]
python-caja-common/focal,focal,now 1.24.0-2 all  [installiert]
python-chardet/focal,focal,now 3.0.4-4build1 all  [Installiert,automatisch]
python-crypto/focal,now 2.6.1-13ubuntu2 amd64  [installiert]
python-gi/focal,now 3.36.0-1 amd64  [installiert]
python-html5lib/focal,focal,now 1.0.1-2 all  [Installiert,automatisch]
python-lxml/focal-updates,focal-security,now 4.5.0-1ubuntu0.2 amd64  [Installiert,automatisch]
python-matplotlib-data/focal,focal,now 3.1.2-1ubuntu4 all [installiert,automatisch-entfernbar]
python-numpy/focal,now 1:1.16.5-2ubuntu7 amd64  [Installiert,automatisch]
python-pip-whl/focal-updates,focal-updates,focal-security,focal-security,now 20.0.2-5ubuntu1.1 all  [Installiert,automatisch]
python-pkg-resources/focal,focal,now 44.0.0-2 all  [Installiert,automatisch]
python-six/focal,focal,now 1.14.0-2 all  [Installiert,automatisch]
python-soupsieve/focal,focal,now 1.9.5+dfsg-1 all  [Installiert,automatisch]
python-webencodings/focal,focal,now 0.5.1-1ubuntu1 all  [Installiert,automatisch]
python-xdg/focal,focal,now 0.26-1ubuntu1 all  [installiert]
python2-minimal/focal,now 2.7.17-2ubuntu4 amd64  [installiert]
python2.7-minimal/focal-updates,focal-security,now 2.7.18-1~20.04.1 amd64  [installiert]
python2.7/focal-updates,focal-security,now 2.7.18-1~20.04.1 amd64  [installiert]
python2/focal,now 2.7.17-2ubuntu4 amd64  [installiert]
python3-apport/focal-updates,focal-updates,focal-security,focal-security,now 2.20.11-0ubuntu27.16 all  [installiert]
python3-apt/focal-updates,now 2.0.0ubuntu0.20.04.4 amd64  [installiert]
python3-aptdaemon.gtk3widgets/focal-updates,focal-updates,focal-security,focal-security,now 1.1.1+bzr982-0ubuntu32.3 all  [installiert]
python3-aptdaemon/focal-updates,focal-updates,focal-security,focal-security,now 1.1.1+bzr982-0ubuntu32.3 all  [installiert]
python3-blinker/focal,focal,now 1.4+dfsg1-0.3ubuntu1 all  [installiert]
python3-brlapi/focal,now 6.0+dfsg-4ubuntu6 amd64  [installiert]
python3-bs4/focal,focal,now 4.8.2-1 all  [installiert]
python3-cairo/focal,now 1.16.2-2ubuntu2 amd64  [installiert]
python3-caja/focal,now 1.24.0-2 amd64  [installiert]
python3-certifi/focal,focal,now 2019.11.28-1 all  [installiert]
python3-cffi-backend/focal,now 1.14.0-1build1 amd64  [installiert]
python3-chardet/focal,focal,now 3.0.4-4build1 all  [installiert]
python3-click/focal,focal,now 7.0-3 all  [Installiert,automatisch]
python3-colorama/focal,focal,now 0.4.3-1build1 all  [Installiert,automatisch]
python3-commandnotfound/focal-updates,focal-updates,now 20.04.4 all  [installiert]
python3-compizconfig/focal,now 1:0.9.14.1+20.04.20200211-0ubuntu1 amd64  [installiert]
python3-configobj/focal,focal,now 5.0.6-4 all  [installiert]
python3-crypto/focal,now 2.6.1-13ubuntu2 amd64  [installiert]
python3-cryptography/focal-updates,focal-security,now 2.8-3ubuntu0.1 amd64  [installiert]
python3-cups/focal,now 1.9.73-3build1 amd64  [installiert]
python3-cupshelpers/focal-updates,focal-updates,now 1.5.12-0ubuntu1.1 all  [installiert]
python3-cycler/focal,focal,now 0.10.0-3 all [installiert,automatisch-entfernbar]
python3-dateutil/focal,focal,now 2.7.3-3ubuntu1 all [installiert,automatisch-entfernbar]
python3-dbus/focal,now 1.2.16-1build1 amd64  [installiert]
python3-debian/focal,focal,now 0.1.36ubuntu1 all  [installiert]
python3-defer/focal,focal,now 1.0.6-2.1 all  [installiert]
python3-dev/focal,now 3.8.2-0ubuntu2 amd64  [Installiert,automatisch]
python3-distro/focal,focal,now 1.4.0-1 all  [installiert]
python3-distutils/focal-updates,focal-updates,focal-security,focal-security,now 3.8.5-1~20.04.1 all  [Installiert,automatisch]
python3-entrypoints/focal,focal,now 0.3-2ubuntu1 all  [installiert]
python3-gdbm/focal-updates,focal-security,now 3.8.5-1~20.04.1 amd64  [installiert]
python3-gi-cairo/focal,now 3.36.0-1 amd64  [installiert]
python3-gi/focal,now 3.36.0-1 amd64  [installiert]
python3-grpcio/focal,now 1.16.1-1ubuntu5 amd64  [installiert]
python3-httplib2/focal,focal,now 0.14.0-1ubuntu1 all  [installiert]
python3-icu/focal,now 2.4.2-0ubuntu3 amd64  [installiert]
python3-idna/focal,focal,now 2.8-1 all  [installiert]
python3-ifaddr/focal,focal,now 0.1.6-1 all  [installiert]
python3-imdbpy/focal,focal,now 6.8-2 all  [Installiert,automatisch]
python3-jwt/focal,focal,now 1.7.1-2ubuntu2 all  [installiert]
python3-keyring/focal,focal,now 18.0.1-2ubuntu1 all  [installiert]
python3-kiwisolver/focal,now 1.0.1-3build1 amd64 [installiert,automatisch-entfernbar]
python3-launchpadlib/focal,focal,now 1.10.13-1 all  [installiert]
python3-lazr.restfulclient/focal,focal,now 0.14.2-2build1 all  [installiert]
python3-lazr.uri/focal,focal,now 1.0.3-4build1 all  [installiert]
python3-ldb/focal-updates,focal-security,now 2:2.0.10-0ubuntu0.20.04.2 amd64  [installiert]
python3-lib2to3/focal-updates,focal-updates,focal-security,focal-security,now 3.8.5-1~20.04.1 all  [Installiert,automatisch]
python3-louis/focal,focal,now 3.12.0-3 all  [installiert]
python3-lxml/focal-updates,focal-security,now 4.5.0-1ubuntu0.2 amd64  [installiert]
python3-mako/focal,focal,now 1.1.0+ds1-1ubuntu2 all  [installiert]
python3-markupsafe/focal,now 1.1.0-1build2 amd64  [installiert]
python3-matplotlib/focal,now 3.1.2-1ubuntu4 amd64 [installiert,automatisch-entfernbar]
python3-minimal/focal,now 3.8.2-0ubuntu2 amd64  [installiert]
python3-nacl/focal,now 1.3.0-5 amd64  [installiert]
python3-netifaces/focal,now 0.10.4-1ubuntu4 amd64  [installiert]
python3-nose/focal,focal,now 1.3.7-5 all  [installiert]
python3-numpy/focal,now 1:1.17.4-5ubuntu3 amd64 [installiert,automatisch-entfernbar]
python3-oauthlib/focal,focal,now 3.1.0-1ubuntu2 all  [installiert]
python3-packaging/focal,focal,now 20.3-1 all  [Installiert,automatisch]
python3-parted/focal,now 3.11.2-11.1build1 amd64  [installiert]
python3-pexpect/focal,focal,now 4.6.0-1build1 all  [installiert]
python3-pil/focal-updates,focal-security,now 7.0.0-4ubuntu0.3 amd64  [installiert]
python3-pip/focal-updates,focal-updates,focal-security,focal-security,now 20.0.2-5ubuntu1.1 all  [installiert]
python3-pivy/focal,now 0.6.5-1build2 amd64 [installiert,automatisch-entfernbar]
python3-pkg-resources/focal,focal,now 45.2.0-1 all  [installiert]
python3-ply/focal,focal,now 3.11-3build1 all [installiert,automatisch-entfernbar]
python3-problem-report/focal-updates,focal-updates,focal-security,focal-security,now 2.20.11-0ubuntu27.16 all  [installiert]
python3-protobuf/focal,now 3.6.1.3-2ubuntu5 amd64  [installiert]
python3-psutil/focal,now 5.5.1-1ubuntu4 amd64  [installiert]
python3-ptyprocess/focal,focal,now 0.6.0-1ubuntu1 all  [installiert]
python3-pyatspi/focal,focal,now 2.36.0-1 all  [installiert]
python3-pycurl/focal,now 7.43.0.2-1ubuntu5 amd64  [installiert]
python3-pygments/focal-updates,focal-updates,focal-security,focal-security,now 2.3.1+dfsg-1ubuntu2.1 all  [installiert]
python3-pymacaroons/focal,focal,now 0.13.0-3 all  [installiert]
python3-pyparsing/focal,focal,now 2.4.6-1 all  [Installiert,automatisch]
python3-pyside2.qtcore/focal,now 5.14.0-1~exp1ubuntu5 amd64  [installiert]
python3-pyside2.qtgui/focal,now 5.14.0-1~exp1ubuntu5 amd64  [installiert]
python3-pyside2.qtopengl/focal,now 5.14.0-1~exp1ubuntu5 amd64 [installiert,automatisch-entfernbar]
python3-pyside2.qtsvg/focal,now 5.14.0-1~exp1ubuntu5 amd64 [installiert,automatisch-entfernbar]
python3-pyside2.qtuitools/focal,now 5.14.0-1~exp1ubuntu5 amd64 [installiert,automatisch-entfernbar]
python3-pyside2.qtwidgets/focal,now 5.14.0-1~exp1ubuntu5 amd64  [installiert]
python3-pyside2.qtxml/focal,now 5.14.0-1~exp1ubuntu5 amd64 [installiert,automatisch-entfernbar]
python3-pyxattr/focal,now 0.6.1-2 amd64  [Installiert,automatisch]
python3-reportlab-accel/focal,now 3.5.34-1ubuntu1 amd64  [installiert]
python3-reportlab/focal,focal,now 3.5.34-1ubuntu1 all  [installiert]
python3-requests-file/focal,focal,now 1.4.3-2 all  [Installiert,automatisch]
python3-requests-unixsocket/focal,focal,now 0.2.0-2 all  [installiert]
python3-requests/focal,focal,now 2.22.0-2ubuntu1 all  [installiert]
python3-samba/focal-updates,focal-security,now 2:4.11.6+dfsg-0ubuntu1.6 amd64  [installiert]
python3-secretstorage/focal,focal,now 2.3.1-2ubuntu1 all  [installiert]
python3-setproctitle/focal,now 1.1.10-1ubuntu1 amd64  [installiert]
python3-setuptools/focal,focal,now 45.2.0-1 all  [Installiert,automatisch]
python3-simplejson/focal,now 3.16.0-2ubuntu2 amd64  [installiert]
python3-six/focal,focal,now 1.14.0-2 all  [installiert]
python3-soupsieve/focal,focal,now 1.9.5+dfsg-1 all  [installiert]
python3-speechd/focal,focal,now 0.9.1-4 all  [installiert]
python3-systemd/focal,now 234-3build2 amd64  [installiert]
python3-talloc/focal,now 2.3.0-3ubuntu1 amd64  [installiert]
python3-tdb/focal,now 1.4.2-3build1 amd64  [installiert]
python3-tk/focal-updates,focal-security,now 3.8.5-1~20.04.1 amd64  [Installiert,automatisch]
python3-tldextract/focal,focal,now 2.2.1-1 all  [Installiert,automatisch]
python3-unidecode/focal,focal,now 1.1.1-3build1 all  [installiert]
python3-uno/focal-updates,now 1:6.4.6-0ubuntu0.20.04.1 amd64  [installiert]
python3-urllib3/focal-updates,focal-updates,focal-security,focal-security,now 1.25.8-2ubuntu0.1 all  [installiert]
python3-wadllib/focal,focal,now 1.3.3-3build1 all  [installiert]
python3-wheel/focal,focal,now 0.34.2-1 all  [Installiert,automatisch]
python3-xapp/ulyssa,ulyssa,now 2.0.2 all  [installiert]
python3-xdg/focal,focal,now 0.26-1ubuntu1 all  [installiert]
python3-xkit/focal,focal,now 0.5.0ubuntu4 all  [installiert]
python3-xlib/focal,focal,now 0.23-2build1 all  [installiert]
python3-yaml/focal,now 5.3.1-1 amd64  [installiert]
python3-zeroconf/focal,focal,now 0.24.4-0ubuntu1 all  [installiert]
python3.8-dev/focal-updates,focal-security,now 3.8.5-1~20.04.2 amd64  [Installiert,automatisch]
python3.8-minimal/focal-updates,focal-security,now 3.8.5-1~20.04.2 amd64  [installiert]
python3.8/focal-updates,focal-security,now 3.8.5-1~20.04.2 amd64  [installiert]
python3/focal,now 3.8.2-0ubuntu2 amd64  [installiert]
qt5-gtk-platformtheme/focal,now 5.12.8+dfsg-0ubuntu1 amd64  [installiert]
qt5-gtk2-platformtheme/focal,now 5.0.0+git23.g335dbec-3ubuntu4 amd64  [installiert]
qt5-style-plugin-cleanlooks/focal,now 5.0.0+git23.g335dbec-3ubuntu4 amd64  [installiert]
qt5-style-plugin-motif/focal,now 5.0.0+git23.g335dbec-3ubuntu4 amd64  [installiert]
qt5-style-plugin-plastique/focal,now 5.0.0+git23.g335dbec-3ubuntu4 amd64  [installiert]
qt5-style-plugins/focal,now 5.0.0+git23.g335dbec-3ubuntu4 amd64  [installiert]
Alle Bemühungen sind bisher gescheitert:
Pakte neu installiert
Updates durchgeführt
Freecad ein 2. und 3. mal installiert - sowohl über den Terminal, als auch über die Anwendungsquellen

EDIT: der freecad-daily build funktioniert reibungslos

Herzlichen Dank
Patrick
herbk
Veteran
Posts: 2661
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: Freecad 0.19 - No module named 'PyQt5'

Post by herbk »

Hallo Patrick,
welches Betriebssystem?
Wenn das alle Pakete mit QT5 im Namen sind, dann fehlen die Python Bindings... Bei mir hat da aber schon vor geraumer Zeit auch die Instable rumgemeckert...

Bei mir ist PyQT5 im Paket python38-qt5
Falls es das für Dein BS noch nicht gibt sollte python36-qt5 auch gehen.


EDIT: Bei update eben hat OpenSuse auf FC 0.19.1 aktualisiert und zusätzlich das Paket python38-PyYAML installiert.


OS: openSUSE Tumbleweed (KDE//usr/share/xsessions/plasma5)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.19.1)
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.8
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: German/Germany (de_DE)
Gruß Herbert
OpaHaps
Posts: 2
Joined: Mon Feb 01, 2021 7:44 pm

Re: Freecad 0.19 - No module named 'PyQt5'

Post by OpaHaps »

Hallo,

Linuxmint als Betriebssystem.

Wie lasse ich mir im Terminal nochmal sämtliche Informationen ausgeben die auch bei dir gelistet sind.
freecad -v hat mir nicht alles ausgespuckt.

Ansonsten habe ich python3.8 komplett installiert.

Nachdem ich freecad jetzt einweiters Mal, neben dem Dailybuild, installiert habe scheint es zu funktionieren. Allerdings bin ich mir nicht sicher ob auch wirklich 0.19.1 läuft.

Danke nochmal
User avatar
HarryGeier
Veteran
Posts: 1231
Joined: Mon Jul 10, 2017 12:36 pm
Location: Hof Germany

Re: Freecad 0.19 - No module named 'PyQt5'

Post by HarryGeier »

Ich hab mal alles aus den modulen, rausgeschoben, was zu den Fehlern führte.
könnte bei dir addon manager als solches sein, zumindest den Fehlermeldungen nach.

Einiges lief halt noch unter .18 aber unter 0.19 eben nicht mehr.
Gottseidank ist hier nichts dabei, was ich für die 0.18 noch benötige. Ich bin aber gespannt ob die 0.18 crasht, wenn ich 0.19 Addons installiere..
Kaum macht man´s richtig , gehts´s
My Video Tutorials on Youtube: https://www.youtube.com/channel/UCoe3B ... p8Q/videos
My FreeCAD Stuff on Hidrive: https://my.hidrive.com/share/qr3l1yddy6#$/
herbk
Veteran
Posts: 2661
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: Freecad 0.19 - No module named 'PyQt5'

Post by herbk »

Hi Harry,

irgendwie passt das nicht zum Thread, - falschen erwischt? ;)
HarryGeier wrote: Sat Apr 03, 2021 10:30 am Ich hab mal alles aus den modulen, rausgeschoben, was zu den Fehlern führte.
könnte bei dir addon manager als solches sein, zumindest den Fehlermeldungen nach.

Einiges lief halt noch unter .18 aber unter 0.19 eben nicht mehr.
Gottseidank ist hier nichts dabei, was ich für die 0.18 noch benötige. Ich bin aber gespannt ob die 0.18 crasht, wenn ich 0.19 Addons installiere..
Gruß Herbert
User avatar
HarryGeier
Veteran
Posts: 1231
Joined: Mon Jul 10, 2017 12:36 pm
Location: Hof Germany

Re: Freecad 0.19 - No module named 'PyQt5'

Post by HarryGeier »

Nee.. weil das bei mir diee Meldungen in 0.19 beim Start beseitigt hat, passt das schon hier rein.
Kaum macht man´s richtig , gehts´s
My Video Tutorials on Youtube: https://www.youtube.com/channel/UCoe3B ... p8Q/videos
My FreeCAD Stuff on Hidrive: https://my.hidrive.com/share/qr3l1yddy6#$/
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: Freecad 0.19 - No module named 'PyQt5'

Post by looo »

There shouldn't be an explicit import of pyqt anywhere in the freecad source. But it's possible that the rc files (resources file containing icons and so on) have this statement included.

Maybe look for the file ../Mod/Tux/Tux_rc.py containing this line.
phixxx5
Posts: 10
Joined: Tue Jul 27, 2021 1:36 pm

Re: Freecad 0.19 - No module named 'PyQt5'

Post by phixxx5 »

Bei mir hat es geholfen PyQt5 mit pip zu deinstallieren und stattdessen über apt zu installieren:

Code: Select all

pip3 uninstall PyQt5
sudo apt-get install python3-pyqt5
Post Reply