cx_Freeze ImportError, how do I debug this

Jeffrey Britton jeffb0098 at
Tue Jan 10 23:21:15 EST 2012

I am building a standalone Windows executable using cx_Freeze.
The resulting executable will not run and writes the following error
to the console.

ImportError: could not import gobject (error was: 'No module named

The project using the gtk libraries for Cairo and Pango on Windows.
The program runs fine when run with Python.
I have tried copying anything that cx_Freeze may have missed from the
gtk installation under the Python directory.

My question is, is there a method to debug this, that can tell me more
about what is going on?

The executable directory already contains
and a bunch of other stuff.

I can type
import gobject
in the Python shell and that works.

More information about the Python-list mailing list