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

freeze and problem with static libraries

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"

like i have read in the old post in this newgroup i tried to recompile
python to avoid shared libraries (i used ./configure --disable-
shared), and to reinstall python of course (recompiling my source) but
the same problem occour. In Modules/Setup i don't have shared
libraries and the line "*shared*" is commented.

I have tried also other freeze application (Gordon MacMillan,
cx_freeze), but i get a fatal error importing zlib also if i have
installed right.

Someone have some tips?
Thanks in advance

Apr 24 '07 #1
2 1612
What command are you using to "freeze" your source?

On Apr 24, 4:23 pm, Flyzone <flyz...@technologist.comwrote:
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"
Apr 25 '07 #2
On 24 Apr, 17:23, Flyzone <flyz...@technologist.comwrote:
I get this warning on freezing my source:
I use the command:
../Python-2.3.6/Tools/freeze/freeze.py /path/to/my/file.py

Apr 26 '07 #3

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

Similar topics

1
by: Grzegorz Dostatni | last post by:
Cheers. I am trying to create a single executable that contains my program. Due to legal issues I was unable to use a dynamically linked python executable. Over the last couple of weeks I...
11
by: Timothy Shih | last post by:
Hi, I am having a freezing issue with my application. My application serves several remotable objects, all of which must be initialized before their use. Furthermore, some of them depend on each...
6
by: Agnes | last post by:
I understand it is impossible, but still curious to know "Can I freeze several column in the datagrid, the user can only scroll the first 3 columns (not verical), for the rest of the coulumn, it is...
2
by: mrstephengross | last post by:
I'm working with the freeze utility, and I'm trying to learn the basics. For the most part, I think I understand how it works. I have a question about modules, though. I want to make sure that...
2
by: kristian.hermansen | last post by:
After freezing a PYGTK app, I am unable to run it. It this a common problem, because I could not find any documentation on it at all. I tried freezing this example, which gets by the make as...
1
by: kristian.hermansen | last post by:
keherman@ibmlnx20:/tmp$ cat helloworld.py #!/usr/bin/env python import pygtk pygtk.require('2.0')
1
by: jmalone | last post by:
I have a python script that I need to freeze on AIX 5.1 (customer has AIX and does not want to install Python). The python script is pretty simple (the only things it imports are sys and socket)....
0
by: jm.suresh | last post by:
I am trying to use freeze to create a single binary executable for one of my program. When I run freeze, it runs fine with the following modules. These modules are available in the dyn-load...
6
by: Mike Kent | last post by:
In a comment Guido made on a recent bug report for the 'freeze' utility, he stated: "I think nobody really cares about freeze any more -- it isn't maintained." That being the case, what is...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.