Note that there are some explanatory texts on larger screens.

plurals
  1. POPySide (1.1.2), cx_freeze, WinXP, Python 3.3: ImportError: DLL load failed
    primarykey
    data
    text
    <p>I am trying to freeze Python 3.3 code that uses PySide libs using cx_freeze and all of that on Windows XP (x86, SP2/3).</p> <p>The <code>python setup.py build</code> runs successfully but the executable throws an <code>ImportError</code>:</p> <blockquote> <p>ImportError: DLL load failed: This application has failed to start because the application configuration is incorrect. Reinstalling [...]</p> </blockquote> <p>The same builds run perfectly fine on Windows 7 x64 (SP1).</p> <p>The versions I am using are as follows:</p> <ul> <li>Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (Intel)] on win32</li> <li>cx_Freeze-4.3.1.win32-py3.3</li> <li>PySide-1.1.2.win32-py3.3</li> </ul> <p>Both QT DLL libraries get copied to the build folder (<code>QtCore.dll</code>, <code>QtGui.dll</code>), the library-zip contains both .pyc equivalents in the <code>PySide</code> folder/module.</p> <p>This issue occurs even with the simplest test-code (<strike>and also if the code is run on a "live" Python installation as well</strike>*):</p> <pre><code>from PySide import QtCore, QtGui if __name__ == "__main__": app = QtGui.QApplication("My Application") win = QtGui.QMainWindow() win.show() app.exec_() </code></pre> <p>Using a more up-to-date version of PySide might fix the problem, but since <em>PySide 1.2.0</em> introduces a new issue with <em>cx-freeze</em> (the file load error) I was wondering if anyone managed to freeze a PySide package on Windows XP stock successfully?</p> <p>Otherwise will have to wait until PySide 1.2.1 gets published and keep my hopes for that release.</p> <ul> <li>See my comment: I'm not sure if this really happened during my tests for actually the same reason or for other reasons e.g. the actual module causing the issue in the frozen builds not having installed properly..</li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload