Details
Description
When building Pyside with the following command line:
python setup.py build --relwithdebinfo --module-subset=Core --qmake=%QTPATH%\bin\qmake.exe --openssl=%OPENSSLPATH%\RelWithDebInfo\bin --build-tests --ignore-git --parallel=%NUMBER_OF_PROCESSORS%
PySide2 is built and installed to pyside3_install, however the PySide2 support module which provides the PySide2 _feature_ support is not installed there.
It appears that this is only installed in the creation of the wheel, which I do not perform due to the specifics of how we install PySide2 in a Python installation that is embedded in an application (Autodesk Maya).
Manually copying the PySide2/support module into the site-packages/PySide2 dir during the packaging process corrected the issue, but I think the fix really needs to occur inside the PySide2 build process.
When starting the application with embedded Python interpreter, and PySide2 is imported, the following message is shown:
Qt 5.15.1 (Python 2): _feature_ could not be imported when starting maya/mayabatch.
Steps:
- Start Maya or mayabatch with Qt 5.15.1
Result: A following error is returned:
__feature__ could not be imported. This is an unsolved PyInstaller problem.
Attachments
Issue Links
- relates to
-
PYSIDE-1019 Follow the Qt/C++ API style in regards of properties
- Closed
For Gerrit Dashboard: PYSIDE-1502 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
338796,7 | __feature__: Make imports more safe against installation errors | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
339322,4 | __feature__: Make imports more safe against installation errors | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: ABANDONED | +2 | 0 |
339931,1 | __feature__: Make imports more safe against installation errors | tqtc/5.15 | pyside/tqtc-pyside-setup | Status: ABANDONED | +1 | 0 |
339936,4 | PySide import: Make imports more safe against installation errors | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
340545,6 | PySide import: Make imports more safe against installation errors | 6.0 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
340680,4 | PySide import: Make imports more safe against installation errors | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |