pyqt  

Re: [PyQt] PyQt 4.7 and py2exe error

Albert Cervera i Areny
Tue, 09 Feb 2010 00:22:23 -0800

I think it's something specific to Python 3.0 and when py2exe tries to include 
PyQt, it builds all modules including the python 3.0 specific one. Probably 
that directory shouldn't be distributed on 2.x PyQt installers...

A Dimarts, 9 de febrer de 2010, Scott Ballard va escriure:
> Wow, that worked like a charm! I'd love to get Phil's input on this one.
> The package looks like a dummy package but I dont know.
> 
> Thanks for the tip!
> -Scott
> 
> On 2/8/2010 6:15 PM, INADA Naoki wrote:
> > I've removed 'port_v3' directory.
> > I don't know this is a best solution or not.
> >
> > On Tue, Feb 9, 2010 at 4:25 AM, Scott Ballard<sc...@scottballard.net>  
wrote:
> >> 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
> >> _______________________________________________
> >> PyQt mailing list    PyQt@riverbankcomputing.com
> >> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
> 
> _______________________________________________
> PyQt mailing list    PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
> 


-- 
Albert Cervera i Areny
http://www.NaN-tic.com
Mòbil: +34 669 40 40 18
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt