469,643 Members | 1,270 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,643 developers. It's quick & easy.

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 1530
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Grzegorz Dostatni | last post: by
11 posts views Thread by Timothy Shih | last post: by
6 posts views Thread by Agnes | last post: by
2 posts views Thread by mrstephengross | last post: by
2 posts views Thread by kristian.hermansen | last post: by
1 post views Thread by jmalone | last post: by
reply views Thread by jm.suresh | last post: by
6 posts views Thread by Mike Kent | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.