ich habe gestern meine erste kleine "PyQT-Anwendung" geschrieben und möchte aus dieser nun ein Windows-Executable erstellen.
Als erste habe ich die Spec-Datei erstellt und die ausführbare Datei, wie folgt erzeugt:
Code: Alles auswählen
Makespec.py -F -w -d ieConnect.pyw
Build.py ieConnect.spec
Konsolenausgabe:
Code: Alles auswählen
Extracting binaries
C:/DOKUME~1/ADMINI~1/LOKALE~1/Temp/_MEI2596/PyQt4.QtGui.pyd
C:/DOKUME~1/ADMINI~1/LOKALE~1/Temp/_MEI2596/win32api.pyd
C:/DOKUME~1/ADMINI~1/LOKALE~1/Temp/_MEI2596/unicodedata.pyd
C:/DOKUME~1/ADMINI~1/LOKALE~1/Temp/_MEI2596/PyQt4.QtCore.pyd
C:/DOKUME~1/ADMINI~1/LOKALE~1/Temp/_MEI2596/bz2.pyd
C:/DOKUME~1/ADMINI~1/LOKALE~1/Temp/_MEI2596/python25.dll
C:/DOKUME~1/ADMINI~1/LOKALE~1/Temp/_MEI2596/QtCore4.dll
C:/DOKUME~1/ADMINI~1/LOKALE~1/Temp/_MEI2596/QtGui4.dll
C:/DOKUME~1/ADMINI~1/LOKALE~1/Temp/_MEI2596/pywintypes25.dll
C:/DOKUME~1/ADMINI~1/LOKALE~1/Temp/_MEI2596/MSVCR71.dll
C:/DOKUME~1/ADMINI~1/LOKALE~1/Temp/_MEI2596/mingwm10.dll
Setting up to run child
Setting magic environment var
Creating child process
Waiting for child process to finish...
C:\DOKUME~1\ADMINI~1\LOKALE~1\Temp\_MEI2596\python25.dll
Manipulating evironment
PYTHONPATH=C:/DOKUME~1/ADMINI~1/LOKALE~1/Temp/_MEI2596;C:/Dokumente und Einstellungen/Administrator/Eigene Dateien/Entwicklung/iec
importing modules from CArchive
iu
struct
archive
Installing import hooks
out1.pyz
Running scripts
Traceback (most recent call last):
File "<string>", line 10, in <module>
ImportError: cannot import name QtCore
RC: -1 from ieConnect
OK.
Vielen Dank im Voraus für Eure Tips.
Bastian