Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Fail under Linux. Does not find libraries that are really present
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
sandro dentella  
View profile  
 More options Jun 20, 6:31 am
From: sandro dentella <san...@e-den.it>
Date: Sat, 20 Jun 2009 03:31:52 -0700 (PDT)
Local: Sat, Jun 20 2009 6:31 am
Subject: Fail under Linux. Does not find libraries that are really present
Hi,

  The same configuration that generates working executable under
Windows
  fails under Linux with the following error. Really it works on the
machine
  that generated it but fails when run on a different machine.

  I generated it under ubuntu 8.04, it fails with the same error under
  ubuntu 8.10 and ubuntu 9.04. It complains libffi.so.4: no such file
or
  directory, but that file is present in the dir created by
pyinstaller.

  Analizing wih strace -e trace=open (http://dpaste.com/57495/) you
can see
  that it searches in the real filesystems and does not search in the
dir
  generated by pyinstaller (/home/sandro/src/skdir/sqledit)

  Any hints?

  sandro
  *:-)

sandro@ubu904:~/src/skdir/sqledit$ ls -l libff*
-rwxr-xr-x 1 sandro sandro 22308 2008-04-01 20:17 libffi.so.4

sandro@ubu904:~/src/skdir/sqledit$ ./sqledit
locale /home/sandro/src/skdir/sqledit/skdir/build/pyi.linux2/sqledit/
outPYZ1.pyz/locale
Traceback (most recent call last):
  File "<string>", line 29, in <module>
  File "/home/misc/src/svn/pyinstaller-hg/iu.py", line 439, in
importHook
  File "/home/misc/src/svn/pyinstaller-hg/iu.py", line 524, in
doimport
  File "skdir/build/pyi.linux2/sqledit/outPYZ1.pyz/sqlkit", line 21,
in <module>
  File "/home/misc/src/svn/pyinstaller-hg/iu.py", line 439, in
importHook
  File "/home/misc/src/svn/pyinstaller-hg/iu.py", line 524, in
doimport
  File "skdir/build/pyi.linux2/sqledit/outPYZ1.pyz/sqlkit.db.proxy",
line 19, in <module>
  File "/home/misc/src/svn/pyinstaller-hg/iu.py", line 480, in
importHook
  File "/home/misc/src/svn/pyinstaller-hg/iu.py", line 524, in
doimport
  File "skdir/build/pyi.linux2/sqledit/outPYZ1.pyz/
sqlkit.db.minspect", line 4, in <module>
  File "/home/misc/src/svn/pyinstaller-hg/iu.py", line 480, in
importHook
  File "/home/misc/src/svn/pyinstaller-hg/iu.py", line 524, in
doimport
  File "skdir/build/pyi.linux2/sqledit/outPYZ1.pyz/sqlkit.debug", line
1, in <module>
  File "/home/misc/src/svn/pyinstaller-hg/iu.py", line 439, in
importHook
  File "/home/misc/src/svn/pyinstaller-hg/iu.py", line 524, in
doimport
  File "skdir/build/pyi.linux2/sqledit/outPYZ1.pyz/
sqlkit.debug.debug", line 80, in <module>
  File "/home/misc/src/svn/pyinstaller-hg/iu.py", line 439, in
importHook
  File "/home/misc/src/svn/pyinstaller-hg/iu.py", line 508, in
doimport
  File "/home/misc/src/svn/pyinstaller-hg/iu.py", line 300, in getmod
  File "/home/misc/src/svn/pyinstaller-hg/iu.py", line 109, in getmod
ImportError: could not import gobject (error was: ImportError
('libffi.so.4: cannot open shared object file: No such file or
directory',))


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Giovanni Bajo  
View profile  
 More options Jun 20, 12:49 pm
From: Giovanni Bajo <ra...@develer.com>
Date: Sat, 20 Jun 2009 18:49:54 +0200
Local: Sat, Jun 20 2009 12:49 pm
Subject: Re: [PyInstaller] Fail under Linux. Does not find libraries that are really present
On sab, 2009-06-20 at 03:31 -0700, sandro dentella wrote:

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alessandro Dentella  
View profile  
 More options Jun 21, 3:44 am
From: Alessandro Dentella <san...@e-den.it>
Date: Sun, 21 Jun 2009 09:44:23 +0200
Local: Sun, Jun 21 2009 3:44 am
Subject: Re: [PyInstaller] Re: Fail under Linux. Does not find libraries that are really present

On Sat, Jun 20, 2009 at 06:49:54PM +0200, Giovanni Bajo wrote:
> 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.

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
*:-)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alessandro Dentella  
View profile  
 More options Jun 23, 3:34 pm
From: Alessandro Dentella <san...@e-den.it>
Date: Tue, 23 Jun 2009 21:34:00 +0200
Subject: Re: [PyInstaller] Re: Fail under Linux. Does not find libraries that are really present

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

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
*:-)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Giovanni Bajo  
View profile  
 More options Jul 6, 12:47 pm
From: Giovanni Bajo <ra...@develer.com>
Date: Mon, 06 Jul 2009 18:47:37 +0200
Local: Mon, Jul 6 2009 12:47 pm
Subject: Re: [PyInstaller] Re: Fail under Linux. Does not find libraries that are really present

On Sun, 2009-06-21 at 09:44 +0200, Alessandro Dentella wrote:
> On Sat, Jun 20, 2009 at 06:49:54PM +0200, Giovanni Bajo wrote:
> > 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.

> no, os.environ['LD_LIBRARY_PATH'] is empty

I have fixed this in PyInstaller trunk. Can you try again please?
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alessandro Dentella  
View profile  
 More options Jul 6, 7:31 pm
From: Alessandro Dentella <san...@e-den.it>
Date: Tue, 7 Jul 2009 01:31:59 +0200
Local: Mon, Jul 6 2009 7:31 pm
Subject: Re: [PyInstaller] Re: Fail under Linux. Does not find libraries that are really present

On Mon, Jul 06, 2009 at 06:47:37PM +0200, Giovanni Bajo wrote:

> On Sun, 2009-06-21 at 09:44 +0200, Alessandro Dentella wrote:
> > On Sat, Jun 20, 2009 at 06:49:54PM +0200, Giovanni Bajo wrote:
> > > 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.

> > no, os.environ['LD_LIBRARY_PATH'] is empty

> I have fixed this in PyInstaller trunk. Can you try again please?

I confirm. It works. Thanks

sandro


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google