vince_isg wrote: ↑
Fri Jun 05, 2020 2:44 pm
...Any other idea how to keep Pyside2 alongside FreeCAD?
I haven't read the thread in detail but PySide2 works without problem with FreeCAD. FreeCAD uses PySide2 in fact. It is one of its requisites for installation, at least if you install in normal ways.
Code: Select all
State: installed (0.19~pre2~202006040256~ubuntu18.04.1), upgrade available (0.19~pre2~202006050120~ubuntu18.04.1)
Automatically installed: yes
Maintainer: Debian Science Maintainers <email@example.com>
Uncompressed Size: 102 k
Depends: freecad-daily-common, python3-matplotlib, python3-pivy, python3-pyside2.qtcore, python3-pyside2.qtgui, python3-pyside2.qtuitools,
python3-pyside2.qtsvg, python3-pyside2.qtwidgets, python3-pyside2.qtxml, python3-pyside2uic, libfreecad-daily-python3-0.19 (<
0.19~pre2~202006050120~ubuntu18.04.1+1~), libfreecad-daily-python3-0.19 (>= 0.19~pre2~202006050120~ubuntu18.04.1), libc6 (>= 2.14),
libgcc1 (>= 1:3.0), libpython3.6 (>= 3.6.5), libqt5core5a (>= 5.9.0~beta), libqt5gui5 (>= 5.7.0), libqt5widgets5 (>= 5.0.2),
libstdc++6 (>= 5.2)
There are two versions of FreeCAD, one compiled against Python 2 and Qt4 (PySide), and one compiled for Python 3 and Qt5 (PySide2), you should be using the latter one, as Python 2 and Qt4 are both obsolete. Notice that if you install the Qt5 version, a special PySide
module is installed in the installation directory of FreeCAD that points to PySide2. This is a trick so your scripts works with both Qt4 (PySide) and Qt5 (PySide2).
However, depending on your particular system, you may have conflicting versions of Qt5. This message in one of the posts above leads me to believe this is the case.
Code: Select all
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.13' not found (required by /home/michele/.local/lib/python3.6/site-packages/PySide2/QtCore.abi3.so)
If you are using Ubuntu, simply install FreeCAD from the PPA; it's the simplest way (Install on Linux
). Or use the AppImage
so that it doesn't cause conflict with the rest of your system. There is also an experimental Ubuntu Snap