Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Problem with cx_freeze / FreezePython

Reply
Thread Tools

Problem with cx_freeze / FreezePython

 
 
Kevin Walzer
Guest
Posts: n/a
 
      07-20-2006
I am trying to build a simple "hello.py" script with cx_freeze, but am
not having any luck. Every time I run the FreezePython utility I get
this error message:

Traceback (most recent call last):
File
"/Users/kevin/Desktop/cx_Freeze-3.0.2/initscripts/ConsoleKeepPath.py",
line 15, in ?
exec code in m.__dict__
File "FreezePython.py", line 1, in ?
import optparse
File "/usr/local/python-unix/lib/python2.4/optparse.py", line 72, in ?
from gettext import gettext as _
File "/usr/local/python-unix/lib/python2.4/gettext.py", line 49, in ?
import locale, copy, os, re, struct, sys
ImportError: Failure linking new module:
/Users/kevin/Desktop/cx_Freeze-3.0.2/build/struct.so: Symbol not found:
__PyFloat_Pack8
Referenced from: /Users/kevin/Desktop/cx_Freeze-3.0.2/build/struct.so
Expected in: dynamic lookup

I've seen a similar error reported before, but no solution.

This may be related to my setup, which is non-standard. I've built
cx_freeze on Mac OS X (Darwin) using the "universal binary"
dual-architecture structure (PPC/i386) of the Mac. I had to hack the
setup files to get cx_freeze to build. (I'm using cx_freeze instead of
the standard Mac build tool py2app because I'm using a normal Unix build
of Python that links against X11 Tkinter.)

Any advice is appreciated.

--
Kevin Walzer
Poetic Code
http://www.kevin-walzer.com
 
Reply With Quote
 
 
 
 
Luca Masini
Guest
Posts: n/a
 
      07-29-2006
Kevin Walzer <(E-Mail Removed)> writes:

> I am trying to build a simple "hello.py" script with cx_freeze, but am
> not having any luck. Every time I run the FreezePython utility I get
> this error message:
>
> Traceback (most recent call last):
> File
> "/Users/kevin/Desktop/cx_Freeze-3.0.2/initscripts/ConsoleKeepPath.py",
> line 15, in ?
> exec code in m.__dict__
> File "FreezePython.py", line 1, in ?
> import optparse
> File "/usr/local/python-unix/lib/python2.4/optparse.py", line 72, in ?
> from gettext import gettext as _
> File "/usr/local/python-unix/lib/python2.4/gettext.py", line 49, in ?
> import locale, copy, os, re, struct, sys
> ImportError: Failure linking new module:
> /Users/kevin/Desktop/cx_Freeze-3.0.2/build/struct.so: Symbol not found:
> __PyFloat_Pack8
> Referenced from: /Users/kevin/Desktop/cx_Freeze-3.0.2/build/struct.so
> Expected in: dynamic lookup


Maybe cx_Freeze was not able to find a shared library needed by struct.so
because it is not a pure python module.

Can you post the "hello.py" you are trying to build ?

Regards.

Luca.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cx_freeze problem on Ubuntu John Python 3 10-02-2009 10:00 AM
cx_Freeze 3.0.2 and Linux sax problem. 1stpoint Python 0 03-03-2006 04:09 PM
cx_freeze error : LookupError: no codec search functions registered: can't find encoding Thomas W Python 1 06-09-2005 10:02 PM
cx_freeze error zyqnews@163.net Python 5 01-30-2005 04:12 AM
$LD_LIBRARY_PATH, cx_Freeze and wxPython Simon John Python 2 09-19-2004 07:31 AM



Advertisments