Hello,

i have a script wich uses pygtk and glade and i want to package it with
pyinstaller. I used one time the --onefile - option and the
automatically generated spec-file and get the following error while
trying to run the executable:

./ubuntu_lampp_control 
./ubuntu_lampp_control is thisfile
 is _MEIPASS2 (workpath)
./ is homepath
Extracting binaries
/tmp/_MEI13967/struct.so
/tmp/_MEI13967/_bisect.so
/tmp/_MEI13967/datetime.so
/tmp/_MEI13967/collections.so
/tmp/_MEI13967/gtk.glade.so
/tmp/_MEI13967/_codecs_iso2022.so
/tmp/_MEI13967/_random.so
/tmp/_MEI13967/_codecs_tw.so
/tmp/_MEI13967/math.so
/tmp/_MEI13967/fcntl.so
/tmp/_MEI13967/atk.so
/tmp/_MEI13967/itertools.so
/tmp/_MEI13967/cStringIO.so
/tmp/_MEI13967/_codecs_jp.so
/tmp/_MEI13967/array.so
/tmp/_MEI13967/select.so
/tmp/_MEI13967/_heapq.so
/tmp/_MEI13967/binascii.so
/tmp/_MEI13967/_locale.so
/tmp/_MEI13967/gtk._gtk.so
/tmp/_MEI13967/_codecs_cn.so
/tmp/_MEI13967/unicodedata.so
/tmp/_MEI13967/_codecs_kr.so
/tmp/_MEI13967/zlib.so
/tmp/_MEI13967/gobject._gobject.so
/tmp/_MEI13967/pango.so
/tmp/_MEI13967/strop.so
/tmp/_MEI13967/readline.so
/tmp/_MEI13967/bz2.so
/tmp/_MEI13967/time.so
/tmp/_MEI13967/_codecs_hk.so
/tmp/_MEI13967/libpthread.so.0
/tmp/_MEI13967/libc.so.6
/tmp/_MEI13967/libm.so.6
/tmp/_MEI13967/libdl.so.2
/tmp/_MEI13967/librt.so.1
/tmp/_MEI13967/libutil.so.1
Executing self as child with LD_LIBRARY_PATH=/tmp/_MEI13967
./ubuntu_lampp_control is thisfile
/tmp/_MEI13967/ is _MEIPASS2 (workpath)
./ is homepath
Already have a workpath - running!
Manipulating evironment
PYTHONPATH=/tmp/_MEI13967:.
importing modules from CArchive
iu
archive
Installing import hooks
out1.pyz
Running scripts
Traceback (most recent call last):
  File "<string>", line 30, in ?
NameError: name '__file__' is not defined
 RC: -1 from pygtk
OK.

(debug-modus). In the past (I don't know why it changes) i got this:

Traceback (most recent call last): 
  File "<string>", line 6, in ? 
  File "/pathto/pyinstaller_1.2/iu.py", line 312, in importHook 
  File "pathto/pyinstaller_1.2/iu.py", line 398, in doimport 
  File "scriptname/buildscriptname/out1.pyz/gtk", line 48, in ? 
ImportError: cannot import name _gtk

And when i try to use the --onedir - option i get this:

mod is NULL - archiveTraceback (most recent call last):
  File "/home/foxx/Programme/python/pyinstaller_1.2/archive.py", line
42, in ?
ImportError: No module named struct
Traceback (most recent call last):
  File "<string>", line 17, in ?
ImportError: No module named archive

I have no problems with packaging a simple hello-world script but I'm
unable to package a simply script using pygtk and glade.
Can you help me? Do i have to change something in my .dist-Files for
importing gtk?

PS: I'm using Ubuntu edgy 6.10 (Linux) and tried Python 2.4 and 2.5.

Thank you,
foxx
-- 
http://www.php4you.de/against_icq.html
http://forum.php4you.de/

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

_______________________________________________
PyInstaller mailing list
[email protected]
http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller

Reply via email to