[PySide] pyside build using pyenv-installed local Python fails, using system-installed Shiboken2 config/cmake file ?

PGNet Dev pgnet.dev at gmail.com
Thu Feb 27 17:30:34 CET 2020


as a 1st test of this pyside build, a downstream build of Pyside&Shiboken-dependent FreeCAD, using the install described in this^ thread,

with config including

	...
	-DPySide2_DIR=/usr/local/lib/cmake/PySide2-5.14.1 \
	-DShiboken2_DIR=/usr/local/lib/cmake/Shiboken2-5.14.1 \
	-DPYSIDE2RCCBINARY=/usr/local/bin/rcc \
	-DPYSIDE2UICBINARY=/usr/local/bin/uic \
	...

_does_ complete without apparent error

	FreeCAD --version
		FreeCAD 0.19 Revision: 19717 (Git)

	ldd `which FreeCAD` | egrep -i "pyside|shiboken|pivy"
	        libpyside2.cpython-38-x86_64-linux-gnu.so.5.14 => /usr/local/lib/libpyside2.cpython-38-x86_64-linux-gnu.so.5.14 (0x00007f7f2ca10000)
	        libshiboken2.cpython-38-x86_64-linux-gnu.so.5.14 => /usr/local/lib/libshiboken2.cpython-38-x86_64-linux-gnu.so.5.14 (0x00007f7f2c7c5000)

(again, note libs are in wrong-arch libdirs, /lib not /lib64 ...)

on launch, the app _does_ start, and seems nominally functional.

non-fatal launch errors include,

	During initialization the error "No module named 'PySide2'" occurred in /usr/local/FreeCAD/Mod/Tux/InitGui.py
	Please look into the log file for further information
	During initialization the error "No module named 'PySide2'" occurred in /usr/local/FreeCAD/Mod/AddonManager/InitGui.py
	Please look into the log file for further information
	During initialization the error "No module named 'PySide2'" occurred in /usr/local/FreeCAD/Mod/Draft/InitGui.py
	Please look into the log file for further information
	Error: Pivy not found, Draft Workbench will be disabled.
	Unknown command 'Std_AddonMgr'

I _suspect_ those are FreeCAD-config related; for later


More information about the PySide mailing list