freezy.py and pygtk

L

Luca Masini

Hi,

I tryed to freeze a pygtk script but I get the following
error message when I run the freezed binary:

MSG: Traceback (most recent call last):
MSG: File "freezme.py", line 24, in ?
MSG: import gtk
MSG: File "/usr/local/lib/python2.3/site-packages/gtk-
2.0/gtk/__init__.py", line 43, in ?
MSG: from _gtk import *
MSG: SystemError: dynamic module not initialized properly

This is the script:

#! /usr/bin/env python
import sys
sys.path = [ '.',
'/usr/local/lib',
'/usr/local/lib/python2.3',
'/usr/local/lib/python2.3/plat-linux-i386',
'/usr/local/lib/python2.3/lib-dynload',
'/usr/local/lib/python2.3/site-packages',
'/usr/local/lib/python2.3/site-packages/gtk-2.0',
'/usr/local/lib/python2.3/site-packages/gtk-2.0/gtk' ]
from pprint import pprint
import gtk
pprint( dir( gtk ) )

and this is the freezing command script used:

frizza="/usr/src/Python-2.3.2c1/Tools/freeze/freeze.py"
$frizza -a gtk=/usr/local/lib/python2.3/site-packages/gtk-2.0/gtk -o
frizzing freezme.py
cd frizzing
make


The _gtk is a shared library (/usr/local/lib/python2.3/site-packages/gtk-
2.0/gtk/_gtk.so).
When loaded from inside the freezed version I get that error.

Any suggestion ?

tanks in advance.

Luca Masini.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top