freeze.py builds, but binary doesn't even run locally (shared GTK problem?)

"Martin v. Löwis" martin at v.loewis.de
Sat Apr 8 05:58:13 EDT 2006


kristian.hermansen at gmail.com wrote:
>     from _gtk import *
> 
> ImportError: No module named _gtk

If you look at the freeze output, you'll notice that _gtk is
not linked into your application: It is a shared library (.so),
so it can't be frozen.

Instead, the resulting binary will look for _gtk.so on sys.path.
Try copying _gtk.so into the directory where the binary is,
or set PYTHONPATH before running the binary.

If you want to freeze _gtk into the application, you need it as
a static library.

Regards,
Martin



More information about the Python-list mailing list