[cx-freeze-users] cx_freeze + python3 + PyQt = error
Brought to you by:
atuining
From: Denis K. <dko...@gm...> - 2009-09-20 05:44:59
|
cx_freeze version: 4.1 (on linux compiled from sources, on windows installed from binary package) Python version: 3.0.1 on linux; 3.1.1 on windows PyQt version: 4.5.4 and 4.6rc (on linux compiled from sources; on windows 4.6rc installed from binary package, 4.5.4 compiled from sources) simple test application: ### import sys from PyQt4.QtCore import * from PyQt4.QtGui import * app = QApplication(sys.argv) form = QDialog() form.show() app.exec_() ### Next: E:\cxfreeze test.pyw --include-modules sip <...> On linux: $ dist/test On windows: E:\>dist\test.exe Same error: Traceback (most recent call last): File "e:\python31\lib\site-packages\cx_Freeze\initscripts\Console3.py", line 27, in <module> exec(code, m.__dict__) File "calculate.pyw", line 15, in <module> from PyQt4.QtCore import * File "ExtensionLoader_PyQt4_QtCore.py", line 16, in <module> AttributeError: 'NoneType' object has no attribute 'modules' With Python 2.6 and PyQt 4.5.4 test app start normally. |