[PyQt] PyQt 4.7 and py2exe error

Scott Ballard scott at scottballard.net
Mon Feb 8 19:25:58 GMT 2010


I'm trying to create an executable on Windows using Py 2.6.2, PyQt 4.7 
and py2exe 0.6.9 and am getting the following error:

C:\Python26\lib\site-packages\py2exe\build_exe.py:16: 
DeprecationWarning: the sets module is deprecated
   import sets
running py2exe
*** searching for required modules ***
error: compiling 
'C:\Python26\lib\site-packages\PyQt4\uic\port_v3\proxy_base.py' failed
     SyntaxError: invalid syntax (proxy_base.py, line 4)

-- command
python setup.py py2exe

--setup.py
from distutils.core import setup
import py2exe
setup(windows=[{"script" : "shotValidator.pyw"}], options={"py2exe" : 
{"includes" : ["sip", ]}})


Any thoughts?

Thanks,
-Scott


More information about the PyQt mailing list