PyQt/PySide's qwindows.dll qwindowsvistastyle.dll is corrupted by UPX

Windows 10 64-bits
Python 3.8.10 64-bits
PySide2 5.15.2
PyInstaller 4.3
UPX 4.1.0

it raises:

"This application failed to start because no Qt platform plugin could be initialize"

Solution
in spec files, add
upx_exclude=['qwindows.dll', 'qwindowsvistastyle.dll'],

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章