[SOLVED] PyQt5Core 5.15 missing

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
AwesomeCronk
Posts: 53
Joined: Wed Sep 26, 2018 10:35 pm

[SOLVED] PyQt5Core 5.15 missing

Post by AwesomeCronk »

I installed FreeCAD 0.19.2 via the freecad-maintainers/freecad-stable PPA:

Code: Select all

sudo add-apt-repository ppa:freecad-maintainers/freecad-stable
sudo apt update
sudo apt install freecad freecad-doc
Since installing it I have seen error after error in the Report View about unknown commands and various errors. Here is an example (output when I start FreeCAD):

Code: Select all

13:34:11  During initialization the error "/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15' not found (required by /usr/local/lib/python3.8/dist-packages/PyQt5/QtCore.abi3.so)" occurred in /usr/share/freecad/Mod/AddonManager/InitGui.py
13:34:11  Please look into the log file for further information
13:34:11  During initialization the error "/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15' not found (required by /usr/local/lib/python3.8/dist-packages/PyQt5/QtCore.abi3.so)" occurred in /usr/share/freecad/Mod/Tux/InitGui.py
13:34:11  Please look into the log file for further information
13:34:12  During initialization the error "/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15' not found (required by /usr/local/lib/python3.8/dist-packages/PyQt5/QtCore.abi3.so)" occurred in /usr/share/freecad/Mod/Draft/InitGui.py
13:34:12  Please look into the log file for further information
13:34:12  During initialization the error "/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15' not found (required by /usr/local/lib/python3.8/dist-packages/PyQt5/QtCore.abi3.so)" occurred in /usr/share/freecad/Mod/Arch/InitGui.py
13:34:12  Please look into the log file for further information
13:34:14  Unknown command 'Std_AddonMgr'
I have googled and searched the forums for a while now. I found similar issues that were resolved, but none worked for me. This issue prevents me from using the Path workbench. I believe what I need to do is upgrade the Qt version, but I haven't the slightest idea how.

OS: Ubuntu 20.04.3 LTS (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: 0d9536ed3e8c7f40197b5606e1b7873625e1d6fe
Python version: 3.8.10
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/United States (en_US)
Last edited by AwesomeCronk on Wed Dec 22, 2021 8:21 pm, edited 1 time in total.
AwesomeCronk
Posts: 53
Joined: Wed Sep 26, 2018 10:35 pm

Re: PyQt5Core 5.15 missing

Post by AwesomeCronk »

Nearly an hour later, a solution: https://forum.freecadweb.org/viewtopic. ... 4&start=10

Code: Select all

pip uninstall pyqt5
sudo apt install pyqt5-dev-tools python3-pyqt5
This removes the version of Qt5 bundled with the Pip PyQt5 package and installs 5.15 via APT.
lqfjun88
Posts: 3
Joined: Wed Jan 25, 2023 8:55 am

Re: [SOLVED] PyQt5Core 5.15 missing

Post by lqfjun88 »

I install qt 5.15 with snap

sudo snap install qt515-core20
Post Reply