Error on "hello world" program
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:
Marcin Krol <mrk... @gmail.com>
Date: Wed, 04 Nov 2009 14:07:19 +0100
Local: Wed, Nov 4 2009 8:07 am
Subject: Error on "hello world" program
Hello everyone,
I have checked (on latest pyinstaller from svn) that "hello world" program consisting just of print "Hello, world" can't be frozen using pyinstaller:
[root@NC044105 pyinstaller]# ./hello.py Hello world!
[root@NC044105 pyinstaller]# python Makespec.py hello.py wrote /root/pyinstaller/hello/hello.spec now run Build.py to build the executable
[root@NC044105 pyinstaller]# python Build.py hello/hello.spec checking Analysis building Analysis because outAnalysis0.toc non existent running Analysis outAnalysis0.toc Analyzing: support/_mountzlib.py Analyzing: support/useUnicode.py Analyzing: hello.py Traceback (most recent call last): File "Build.py", line 1158, in <module> main(args[0], configfilename=opts.configfile) File "Build.py", line 1146, in main build(specfile) File "Build.py", line 1109, in build execfile(spec) File "hello/hello.spec", line 3, in <module> pathex=['/root/pyinstaller']) File "Build.py", line 245, in __init__ self.__postinit__() File "Build.py", line 196, in __postinit__ self.assemble() File "Build.py", line 348, in assemble self.fixMissingPythonLib(binaries) File "Build.py", line 394, in fixMissingPythonLib raise IOError("Python library not found!") IOError: Python library not found!
About the only things I can think of is that my python (2.6.2) is compiled from source and it is available at /usr/local/bin/python.
Help!
Regards, mk
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Marcin Krol <mrk... @gmail.com>
Date: Wed, 04 Nov 2009 14:08:04 +0100
Local: Wed, Nov 4 2009 8:08 am
Subject: Error on "hello world" program
Hello everyone,
P.S. platform is RH 5.3.
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Florian Höch <florian.ho... @gmx.de>
Date: Wed, 04 Nov 2009 17:18:13 +0100
Local: Wed, Nov 4 2009 11:18 am
Subject: Re: [PyInstaller] Error on "hello world" program
Ok, pyinstaller fails to find libpython. Is that file present on your
system? Did you compile Python with the --enable-shared option?
Regards,
Florian
Marcin Krol schrieb:
> Hello everyone,
> I have checked (on latest pyinstaller from svn) that "hello world" > program consisting just of print "Hello, world" can't be frozen using > pyinstaller:
> [root@NC044105 pyinstaller]# ./hello.py
> Hello world!
> [root@NC044105 pyinstaller]# python Makespec.py hello.py
> wrote /root/pyinstaller/hello/hello.spec
> now run Build.py to build the executable
> [root@NC044105 pyinstaller]# python Build.py hello/hello.spec
> checking Analysis
> building Analysis because outAnalysis0.toc non existent
> running Analysis outAnalysis0.toc
> Analyzing: support/_mountzlib.py
> Analyzing: support/useUnicode.py
> Analyzing: hello.py
> Traceback (most recent call last):
> File "Build.py", line 1158, in <module>
> main(args[0], configfilename=opts.configfile)
> File "Build.py", line 1146, in main
> build(specfile)
> File "Build.py", line 1109, in build
> execfile(spec)
> File "hello/hello.spec", line 3, in <module>
> pathex=['/root/pyinstaller'])
> File "Build.py", line 245, in __init__
> self.__postinit__()
> File "Build.py", line 196, in __postinit__
> self.assemble()
> File "Build.py", line 348, in assemble
> self.fixMissingPythonLib(binaries)
> File "Build.py", line 394, in fixMissingPythonLib
> raise IOError("Python library not found!")
> IOError: Python library not found!
> About the only things I can think of is that my python (2.6.2) is > compiled from source and it is available at /usr/local/bin/python.
> Help!
> Regards,
> mk
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Marcin Krol <mrk... @gmail.com>
Date: Thu, 05 Nov 2009 12:06:32 +0100
Local: Thurs, Nov 5 2009 6:06 am
Subject: Re: [PyInstaller] Re: Error on "hello world" program
Florian Höch wrote:
> Ok, pyinstaller fails to find libpython.
Ah! So that's the problem.
> Is that file present on your > system? Did you compile Python with the --enable-shared option?
No, I compiled it with --disable-shared (for freezing with freeze.py
which requires static compilation of as many modules as possible).
Regards,
mk
> Regards,
> Florian
> Marcin Krol schrieb:
>> Hello everyone,
>> I have checked (on latest pyinstaller from svn) that "hello world" >> program consisting just of print "Hello, world" can't be frozen using >> pyinstaller:
>> [root@NC044105 pyinstaller]# ./hello.py
>> Hello world!
>> [root@NC044105 pyinstaller]# python Makespec.py hello.py
>> wrote /root/pyinstaller/hello/hello.spec
>> now run Build.py to build the executable
>> [root@NC044105 pyinstaller]# python Build.py hello/hello.spec
>> checking Analysis
>> building Analysis because outAnalysis0.toc non existent
>> running Analysis outAnalysis0.toc
>> Analyzing: support/_mountzlib.py
>> Analyzing: support/useUnicode.py
>> Analyzing: hello.py
>> Traceback (most recent call last):
>> File "Build.py", line 1158, in <module>
>> main(args[0], configfilename=opts.configfile)
>> File "Build.py", line 1146, in main
>> build(specfile)
>> File "Build.py", line 1109, in build
>> execfile(spec)
>> File "hello/hello.spec", line 3, in <module>
>> pathex=['/root/pyinstaller'])
>> File "Build.py", line 245, in __init__
>> self.__postinit__()
>> File "Build.py", line 196, in __postinit__
>> self.assemble()
>> File "Build.py", line 348, in assemble
>> self.fixMissingPythonLib(binaries)
>> File "Build.py", line 394, in fixMissingPythonLib
>> raise IOError("Python library not found!")
>> IOError: Python library not found!
>> About the only things I can think of is that my python (2.6.2) is >> compiled from source and it is available at /usr/local/bin/python.
>> Help!
>> Regards,
>> mk
You must
Sign in before you can post messages.
You do not have the permission required to post.