[PyQt] SyntaxError when byte-compiling PyQT

Nicolas Jouanin nicolas.jouanin at gmail.com
Fri Dec 28 10:56:44 GMT 2012


Hi,

I develop a PyQT (4.9.6) application on MacOS (10.8.2) and I have problem when packaging with py2app.
I'm using python 3 and when py2app runs packaging it compiles PyQt .py files and I can see SyntaxErrors . :

byte-compiling bdist.macosx-10.6-intel/python3.3-standalone/app/temp/PyQt4/QtCore.py to PyQt4/QtCore.pyc
 File "PyQt4/QtCore.pyc", line 6
   print path
            ^
SyntaxError: invalid syntax

byte-compiling bdist.macosx-10.6-intel/python3.3-standalone/app/temp/PyQt4/QtGui.py to PyQt4/QtGui.pyc
 File "PyQt4/QtGui.pyc", line 6
   print path
            ^
SyntaxError: invalid syntax

byte-compiling bdist.macosx-10.6-intel/python3.3-standalone/app/temp/PyQt4/QtNetwork.py to PyQt4/QtNetwork.pyc
 File "PyQt4/QtNetwork.pyc", line 6
   print path
            ^
SyntaxError: invalid syntax

byte-compiling bdist.macosx-10.6-intel/python3.3-standalone/app/temp/PyQt4/QtWebKit.py to PyQt4/QtWebKit.pyc
 File "PyQt4/QtWebKit.pyc", line 6
   print path
            ^
SyntaxError: invalid syntax




More information about the PyQt mailing list