473,405 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Problem with cx_freeze / FreezePython

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
Jul 20 '06 #1
1 4338
Kevin Walzer <kw@kevin-walzer.comwrites:
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.
Aug 1 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: 1stpoint | last post by:
I am banging my head against the wall. I have a Web application server that uses xml.sax. When I build it using FreezePython I get the following error when trying to use it: File...
7
by: Flavio | last post by:
Hi, After a good deal of tunig I managed to freeze my application. I ended up with an executable, and a Bunch of .so files in the install-dir. It runs fine in the original machine. I...
2
by: Flavio | last post by:
I am trying to freeze an application which imports matplotlib. It all works fine on the machine where it was frozen. The executable runs without a glitch. But when I move the directory...
0
by: diffuser78 | last post by:
Has anybody written a file for cx_freeze. I am running Ubuntu Linux and downloaded version for Python2.4. When I run it I get an error saying that I dont have GLIBC_2.4. I searched around but...
0
by: BM | last post by:
Hi. Does somebody used cx_Freeze, especially on Mac? I have a trouble to make *standalone* program. If I use dynamically compiled Python as it done by default, I always have an "hardcoded" URL...
12
by: Tekkaman | last post by:
I'm getting a strange behaviour from the "pathname" and "lineno" formatter mapping keys. Instead of my file and my line number I get: /usr/lib/python2.4/logging/__init__.py as the file, and...
1
by: mathieu | last post by:
Hello, I am currently investigating how to distribute a python based application on a targeted linux system (debian) and so far I only found two options: - Freeze (shipped with python dist) -...
2
by: Flyzone | last post by:
Hi, i need to "compile" a python source (2.3.6) to make it standalone on Solaris 9. I get this warning on freezing my source: "Warning: unknown modules remain: _locale _random _socket array...
3
by: robert | last post by:
In a makefile I want to locate the .so for a dynamically linked Python on Linux. (for cx_Freeze's --shared-lib-name) e.g. by running a small script with that Python. How to? Robert
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.