Is this a known issue?
Version: pyinstaller v 1.5.1
Problem: packaged executable reads files in system python directories
More details:
We've had problems with pyinstaller-created packages after a recent
python update (https://rhn.redhat.com/errata/RHSA-2012-0745.html).
The pyinstaller-created packages were made prior to the update, and they
failed on systems after the update was applied. The
pyinstalled-packages were somehow being affected by the system-installed
python, even though that should not make a difference. An
incompatibility between the recently-updated system python and the
pyinstalled-package-python was causing the pyinstaller-produced-exe to fail.
I ran strace on the pyinstaller executables, and sure enough you could
see that it was trawling around opening files in /usr/lib/python2.4.
e.g:
[hywel@iron myprog]$ strace -F ./myprog |& grep usr
[pid 30365] stat64("/usr/lib/python2.4/os.py", {st_mode=S_IFREG|0644,
st_size=26338, ...}) = 0
[pid 30365] stat64("/usr/lib/python2.4/lib-dynload",
{st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
...
I got the same issue for a trivial "hello world" example program that
didn't do any explicit imports.
I got the same behaviour for python 2.6.
For python 2.6, because I have machines without it installed, you could
see that the executable could work fine without python installed, but it
was still looking for it.
We were using pyinstaller 1.5, but pyinstaller 1.5.1 gives the same
behaviour.
The development version of pyinstaller does not, however, (at least for
the trivial "hello world" example) so it seems to be fixed now (?).
Can anyone offer any advice - should we wait for pyinstaller 1.5.2 or
try to use the development version?
Is this a known issue?
BTW - the original problem exhibited this behaviour, presumably due to
an incompatibility between the pyinstaller-package-python version and
the newly-patched python version:
Traceback (most recent call last):
File "<string>", line 7, in ?
File "/home/mydir/pyin/pyinstaller-1.5/iu.py", line 436, in importHook
File "/home/mydir/pyin/pyinstaller-1.5/iu.py", line 521, in doimport
File
"/home/mydir/src/build/pyi.linux2/myprog/outPYZ1.pyz/MyProgram", line
13, in ?
File "/home/mydir/pyin/pyinstaller-1.5/iu.py", line 436, in importHook
File "/home/mydir/pyin/pyinstaller-1.5/iu.py", line 521, in doimport
File "/home/mydir/src/build/pyi.linux2/myprog/outPYZ1.pyz/MyModule",
line 2, in ?
File "/home/mydir/pyin/pyinstaller-1.5/iu.py", line 436, in importHook
File "/home/mydir/pyin/pyinstaller-1.5/iu.py", line 521, in doimport
File "/home/mydir/src/build/pyi.linux2/myprog/outPYZ1.pyz/random",
line 46, in ?
ImportError: cannot import name urandom
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.