py2exe + PyGTK problems

Michael Urban urba0083 at tc.umn.edu
Fri Jan 10 01:04:06 CET 2003


Hi all,

I'm trying to use py2exe to create a PyGTK application. This app runs
fine from the Python interpretoir, but when trying to create an exe
with py2exe, it complains about missing modules. Here is the output:

warning: py2exe: * The following modules were not found:
warning: py2exe: *   gdk
warning: py2exe: *   ltihooks

When trying to run the resulting EXE, it fails with the following:

Fatal Python error: could not import pango

This application has requested the Runtime to terminate it in an
unusual way. Please contact the application's support team for more
information.

More information about my setup:

Windows XP Professional
Python 2.2.2
GTK+ Runtime Environment 2.0.9.1 (installed from the dropline.net
download)
Cedric Gustan's pygtk2 (1.99.13)

I have both the GTK2 lib and bin directory included in my path. Here
are the files that py2exe leaves in the dist directory (not including
the EXE file):

11/21/2002  05:46 AM           132,469 gobject.pyd
06/27/2002  08:11 PM           872,448 iconv.dll
08/21/2002  09:14 PM           128,804 libatk-1.0-0.dll
12/01/2002  11:24 PM           675,928 libgdk-win32-2.0-0.dll
11/28/2002  10:52 PM           114,391 libgdk_pixbuf-2.0-0.dll
11/26/2002  12:25 AM           557,868 libglib-2.0-0.dll
11/26/2002  12:30 AM            37,780 libgmodule-2.0-0.dll
11/26/2002  12:29 AM           289,145 libgobject-2.0-0.dll
09/20/2002  12:59 AM         2,847,869 libgtk-win32-2.0-0.dll
09/04/2002  01:37 AM            47,027 libintl-1.dll
11/12/2002  04:02 AM           236,877 libpango-1.0-0.dll
11/12/2002  04:02 AM            66,656 libpangowin32-1.0-0.dll
10/14/2002  05:02 PM           847,920 python22.dll
11/21/2002  05:46 AM         1,284,623 _gtk.pyd

Thanks in advance for any help that anyone can give on this.




More information about the Python-list mailing list