Details
-
Suggestion
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.15.0
-
None
-
Python 3.8.1 + PySide2 5.15.0 + Windows 10
Description
When I tried to package a program with Nuitka, the generated exe file told me
"
Traceback (most recent call last):
File "D:\programs\python\a_qt_app\out\a_qt_app.dist\a_qt_app.pyw", line 2, in <module>
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "D:\programs\python\a_qt_app\out\a_qt_app.dist\PySide2_init_.py", line 88, in <module PySide2>
File "D:\programs\python\a_qt_app\out\a_qt_app.dist\PySide2_init_.py", line 62, in _setupQtDirectories
AttributeError: type object 'type' has no attribute '_signature_'
", so I see the source code and found that this line was fine, because it imported the Shiboken2 package, and since which line of code would not go wrong at runtime, I suggested changing"type._signature_"to"
"
try:
type._signature
except AttributeError:
pass
"
Attachments
Issue Links
- duplicates
-
PYSIDE-829 PySide/Shiboken not working on Nuitka
- Closed