PyInstaller does set LD_LIBRARY_PATH to the directory where it's running
from (in one-dir mode). Try printing the contents of that environment
variable at the beginning of the program, before importing GTK.
So, I'm unsure why it's being ignored when you change the Linux version.
Can you maybe help debugging this? It's probably related to ld.so
configuration or something like that.
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com
no, os.environ['LD_LIBRARY_PATH'] is empty
> So, I'm unsure why it's being ignored when you change the Linux version.
In fact it's empty in the machine where I produce it, also...
sandro
*:-)
The following example shows what I mean:
sandro@bluff:/misc/src/svn/pyinstaller-hg$ cat babex/ex2.py
import os
print "\nLD_LIBRARY_PRELOAD:", os.environ.get('LD_LIBRARY_PRELOAD', None)
sandro@bluff:/misc/src/svn/pyinstaller-hg$ Makespec.py babex/ex2.py
wrote /home/misc/src/svn/pyinstaller-hg/ex2/ex2.spec
now run Build.py to build the executable
sandro@bluff:/misc/src/svn/pyinstaller-hg$ Build.py ex2/ex2.spec
checking Analysis
building because babex/ex2.py changed
running Analysis outAnalysis0.toc
Analyzing: ./support/_mountzlib.py
Analyzing: ./support/useUnicode.py
Analyzing: babex/ex2.py
ex2/build/pyi.linux2/ex2/outAnalysis0.toc no change!
checking PYZ
checking PKG
building because babex/ex2.py changed
building PKG outPKG3.pkg
checking EXE
rebuilding outEXE2.toc because pkg is more recent
building EXE from outEXE2.toc
Appending archive to EXE ex2/build/pyi.linux2/ex2/ex2
checking COLLECT
building outCOLLECT4.toc because ex2/build/pyi.linux2/ex2/ex2 is more recent
building COLLECT outCOLLECT4.toc
sandro@bluff:/misc/src/svn/pyinstaller-hg$ ex2/dist/ex2/ex2
LD_LIBRARY_PRELOAD: None
Do other people have different behaviour on Linux?
sandro
*:-)
I have fixed this in PyInstaller trunk. Can you try again please?
I confirm. It works. Thanks
sandro