473,721 Members | 1,811 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.p y", 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 4349
Kevin Walzer <kw@kevin-walzer.comwrite s:
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.p y", 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
1039
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 "/usr/lib/python2.3/site-packages/_xmlplus/sax/sax2exts.py", line 37, in make_parser File "/usr/lib/python2.3/site-packages/_xmlplus/sax/saxexts.py", line 77, in make_parser
7
3336
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 copied the install folder to another machine but the executable wont run. Here's the traceback:
2
4852
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 containing the frozen executable and other libs to a new machine, I get the following error: Traceback (most recent call last): File "/home/fccoelho/Downloads/cx_Freeze-3.0.2/initscripts/Console.py",
0
1469
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 couldn't find a .deb for Ubuntu, I couldnt find this in Synaptic too. Any clues or pointers as to how to get cx_freeze up and running.
0
1094
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 inside the Python binary something like /usr/local/Python2.5/lib/libpython.... so after I freeze stuff and put to another machine, it fails with exactly the error: Library /usr/local/Python2.5/blah-blah/... is missing. Means, not a standalone App so...
12
1972
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 1072 as the line number. I set up my config as follows: logBaseConf = { 'level' : logging.DEBUG,
1
3085
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) - cx_Freeze (*) As far as I understand those two options are very close. According to the cx_Freeze README cx_Freeze is simply easier to use (no dependencie
2
1627
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 binascii cStringIO datetime fcntl math pwd select strop termios time" in the source i have: "import os, stat, re, datetime, time, glob" and running the frozen application I get: "ImportError: No module named datetime"
3
1818
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
8834
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8727
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9056
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8002
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6664
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5973
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4483
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3186
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2127
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.