On Fri, 2010-12-17 at 21:10 -0200, Hugo Parente Lima wrote: > On Friday 17 December 2010 13:01:09 Simon Leung wrote: > > Hi all, > > > > I'm just starting to use PySide. Unfortunately my application will > > have to run on Windows, with a .exe file. So I tried to use cx_freeze > > to package pyside examples -- the one I tried was classwizard.py. So > > I simply tried > > cx_freeze classwizard.py --base-name Win32GUI > > After it's done, I run the classwizard.exe and got the following > > error: > > > > > > File "C:\Python27\lib\site-packages\cx_Freeze\initscripts > > \Console.py", line 27 > > , in <module> > > exec code in m.__dict__ > > File "classwizard.py", line 8, in <module> > > File "C:\Python27\lib\site-packages\PySide\__init__.py", line 2, in > > <module> > > import private > > File "C:\Python27\lib\site-packages\PySide\private.py", line 1, in > > <module> > > import atexit > > ImportError: No module named atexit > > atexit module exists in Python since Python 2.0, so my guess is that your > Python installation may be broken.
Or perhaps the "atexit" module is being excluded from the freeze for
some reason. Try to explicitly include the "atexit" module in your
frozen app, either by
a) importing it yourself in one of your main modules, or
b) using "cxfreeze --include-modules=atexit" as your freeze command
Cheers,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
[email protected] | http://www.rfk.id.au/ramblings/gpg/ for details
signature.asc
Description: This is a digitally signed message part
_______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
