Error on "hello world" program

5 views
Skip to first unread message

Marcin Krol

unread,
Nov 4, 2009, 8:07:19 AM11/4/09
to pyins...@googlegroups.com
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

Marcin Krol

unread,
Nov 4, 2009, 8:08:04 AM11/4/09
to pyins...@googlegroups.com
Hello everyone,

P.S. platform is RH 5.3.


Florian Höch

unread,
Nov 4, 2009, 11:18:13 AM11/4/09
to pyins...@googlegroups.com
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:

Marcin Krol

unread,
Nov 5, 2009, 6:06:32 AM11/5/09
to pyins...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages