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.
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.