Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Error on "hello world" program
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
  4 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
 
Marcin Krol  
View profile  
 More options Nov 4, 8:07 am
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


    Reply    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.
Marcin Krol  
View profile  
 More options Nov 4, 8:08 am
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.


    Reply    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.
Florian Höch  
View profile  
 More options Nov 4, 11:18 am
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:


    Reply    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.
Marcin Krol  
View profile  
 More options Nov 5, 6:06 am
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


    Reply    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