Ich habe ein problem, wenn ich bei py2exe die option optimize: 2 dranhänge:
Code: Alles auswählen
running py2exe
*** searching for required modules ***
*** parsing results ***
creating python loader for extension 'PyQt4.QtGui' (C:\Python26\lib\site-packages\PyQt4\QtGui.pyd -> PyQt4.QtGui.pyd)
creating python loader for extension 'select' (C:\Python26\DLLs\select.pyd -> select.pyd)
creating python loader for extension '_socket' (C:\Python26\DLLs\_socket.pyd -> _socket.pyd)
creating python loader for extension 'unicodedata' (C:\Python26\DLLs\unicodedata.pyd -> unicodedata.pyd)
creating python loader for extension 'sip' (C:\Python26\lib\site-packages\sip.pyd -> sip.pyd)
creating python loader for extension '_ssl' (C:\Python26\DLLs\_ssl.pyd -> _ssl.pyd)
creating python loader for extension 'PyQt4.QtCore' (C:\Python26\lib\site-packages\PyQt4\QtCore.pyd -> PyQt4.QtCore.pyd)
creating python loader for extension 'bz2' (C:\Python26\DLLs\bz2.pyd -> bz2.pyd)
*** finding dlls needed ***
*** create binaries ***
*** byte compile python files ***
writing byte-compilation script 'c:\users\robin\appdata\local\temp\tmpe_hcax.py'
C:\Python26\pythonw.exe c:\users\robin\appdata\local\temp\tmpe_hcax.py
Traceback (most recent call last):
File "C:\Users\robin\Desktop\socket_opener\setup.py", line 19, in <module>
zipfile = None
File "C:\Python26\lib\distutils\core.py", line 169, in setup
raise SystemExit, "error: " + str(msg)
SystemExit: error: command 'C:\Python26\pythonw.exe' failed with exit status 1
Hier ist mein setup_script:
Code: Alles auswählen
import sys
from distutils.core import setup
import py2exe
sys.argv.append("py2exe")
sys.argv.append("--includes")
sys.argv.append("sip")
setup(
datafiles = None,
windows=['socket_opener.py'],
#options = {'py2exe': {'optimize': 2,'bundle_files': 3, 'compressed': True}},
options = {'py2exe': {
'optimize': 2,
'bundle_files': 3,
'compressed': True}},
zipfile = None
)