PyGTK and Py2Exe troubles

Tim N. van der Leeuw tim.leeuwvander at nl.unisys.com
Sat Jun 24 13:27:49 EDT 2006


riqu... at gmail.com wrote:
> Tim N. van der Leeuw ha scritto:
>
> > I tried to create a windows executable of a pygtk program. My first
> > attempt worked, kinda, except that no themes were applied and no
> > readable fonts were found by pango; so all letters where just empty
> > squares. But the program worked.
> >
> > I looked up some docs, found the following recipe on the PyGTK Wiki
> > site:
> > http://starship.python.net/crew/theller/moin.cgi/Py2exeAndPyGTK
> >
> > I followed those instructions to convert my setup.py file; everything
> > still worked the same as before.
>
> versions of python,gtk,pygtk? wich windows?
> wich installer of gtk have you used?
> did you install pycairo too?
>
> try again with these one, if different from yours
> gtk -> http://gladewin32.sourceforge.net
> pygtk/pycairo  -> http://www.mapr.ucl.ac.be/~gustin/win32_ports/
>
> bye,
> Riccardo

Riccardo,

Thanks for your reply; sorry for omitting all the relevant details!

Python: 2.4.3 from python.org
Windows XP SP2
GTK 2.8.18 from gladewin32
pygtk & pycairo from Gustin's ports.
py2exe: 0.6.5

The program works when run under the interpreter; but crashes when
using py2exe and all shared files mentioned, are copied to the same dir
as the exe. (When I don't copy all those files, pango complains about
missing fonts and shows only empty squares for all leters. but the
program doesn't crash. It only crashes when GTK's shared files are with
the program)

Thanks,

--Tim




More information about the Python-list mailing list