Note that there are some explanatory texts on larger screens.

plurals
  1. POBuilding executables for Python 3 and PyQt
    primarykey
    data
    text
    <p>I built a rather simple application in Python 3.1 using PyQt4. Being done, I want the application to be distributed to computers without either of those installed.</p> <p>I almost exclusively care about Windows platforms, so my goal is to have a single executable file and maybe some resource files and .dlls in the end.</p> <p>Having searched around, I came to the conclusion that</p> <ul> <li><strong>py2exe</strong> only supports Python up to version 2.7</li> <li><strong>pyinstaller</strong> only supports Python up to version 2.6</li> <li><strong>cx_Freeze</strong> does not work for me because I keep on getting the following error when trying to execute my successfully build binary:</li> </ul> <pre><code> Y:\Users\lulz\build\exe.win32-3.1>system_shutdown.exe<br /> Traceback (most recent call last):<br /> File "Y:\Program Files (x86)\Python\lib\site-packages\cx_Freeze\initscripts\Console3.py", line 27, in exec(code, m.__dict__)<br /> File "Y:/Users/lulz/Documents/Coding/Python3/projects/System Shutdown/system_shutdown.pyw", line 5, in from PyQt4 import QtCore<br /> File "ExtensionLoader_PyQt4_QtCore.py", line 16, in AttributeError: 'NoneType' object has no attribute 'modules' </code></pre> <p>So my problem is basically two problems here:</p> <ol> <li>Is there another way but cx_Freeze to build binaries with my configuration?</li> <li>If not, what might the cx_Freeze problem be?</li> </ol> <p>I can provide more information on the second problem if necessary, like my call of cx_Freeze, my distutils setup script etc.</p> <p>Thank you already for your help and comments.</p>
    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.
 

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