Details
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
For Gerrit Dashboard: PYSIDE-1352 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
309529,2 | shiboken: warn if the signature module fails to initialize | 5.15 | pyside/pyside-setup | Status: MERGED | +2 | 0 |