473,320 Members | 1,902 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,320 software developers and data experts.

cx_Freeze and Python

BM
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 far.

Then I tried to build Python statically. I success editing
Modules/Setup and I got fat binary with no such a path inside the VM.
However, when I try to Freeze, it barks with the following:

Traceback (most recent call last):
File "/Users/bm/cx_Freeze-3.0.3/initscripts/ConsoleKeepPath.py", line
15, in <module>
exec code in m.__dict__
File "FreezePython.py", line 7, in <module>
import Freezer
File "Freezer.py", line 9, in <module>
import zipfile
File "/Users/bm/Python2.5-static/lib/python2.5/zipfile.py", line 5,
in <module>
import binascii, cStringIO
ImportError:
dlopen(/Users/bm/Python2.5-static/lib/python2.5/lib-dynload/binascii.so,
2): Symbol not found: _PyModule_GetDict
Referenced from:
/Users/bm/Python2.5-static/lib/python2.5/lib-dynload/binascii.so
Expected in: dynamic lookup

Well, traceback usually differs - depends of what module it wants to
load. If you make it ./configure --disable-shared, then it fails
loading _struct.so or similar. What I am missing in the very principle?

Thanks for any advice.

Sep 30 '06 #1
0 1077

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

Similar topics

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...
1
by: Kevin Walzer | last post by:
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):...
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...
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) -...
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: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.