I am trying to bundle up a GTK+2 app on Win32 which uses PyGTK (from Cedric's pygtk installer). I have tried py2exe, cx_Freeze, and Gordon McMillan's Installer, but I can't seem to make a working standalone .exe file with any of them.
Since the PyGTK FAQ says that you can do this with py2exe, I'll just focus on that attempt for now.
I get a whole bunch of messages and py2exe creates an .exe file. When I run it, I get this error:
Traceback (most recent call last): File "<string>", line 17, in ? File "pygtk.pyc", line 73, in require AssertionError: required version '2.0' not found on system
... which is probably a result of calling pygtk.require('2.0').
Right, py2exe does not like it, as your final executable does not know what sys.path and sys.modules contain.
Just get rid of it and it should work. At least py2exe works for me on the glade example (glade-demo.py). Just make sure that py2exe does not include the GTK+ DLLs (except libglade-2.0.dll and libxml2.dll) and ask your final users to install the dropline GTK+ distribution instead.
Cedric
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
