PySide (1.1.2), cx_freeze, WinXP, Python 3.3: ImportError: DLL load failed -
i trying freeze python 3.3 code uses pyside libs using cx_freeze , of on windows xp (x86, sp2/3).
the python setup.py build
runs executable throws importerror
:
importerror: dll load failed: application has failed start because application configuration incorrect. reinstalling [...]
the same builds run fine on windows 7 x64 (sp1).
the versions using follows:
- python 3.3.0 (v3.3.0:bd8afb90ebf2, sep 29 2012, 10:55:48) [msc v.1600 32 bit (intel)] on win32
- cx_freeze-4.3.1.win32-py3.3
- pyside-1.1.2.win32-py3.3
both qt dll libraries copied build folder (qtcore.dll
, qtgui.dll
), library-zip contains both .pyc equivalents in pyside
folder/module.
this issue occurs simplest test-code (and if code run on "live" python installation well*):
from pyside import qtcore, qtgui if __name__ == "__main__": app = qtgui.qapplication("my application") win = qtgui.qmainwindow() win.show() app.exec_()
using more up-to-date version of pyside might fix problem, since pyside 1.2.0 introduces new issue cx-freeze (the file load error) wondering if managed freeze pyside package on windows xp stock successfully?
otherwise have wait until pyside 1.2.1 gets published , keep hopes release.
- see comment: i'm not sure if happened during tests same reason or other reasons e.g. actual module causing issue in frozen builds not having installed properly..
turned out there simple solution issue: dll another module in use application missing; copying root build-out folder next frozen exe solved problem.
the best (and only) approach of attack solve these issues copy dlls used modules build dir 1 one until frozen build doesn't throw error anymore. couldn't find way stacktrace didn't point specific file failed loading.
if runs similar issues, i'd happy provide info.
Comments
Post a Comment