Discussion:
[cx-freeze-users] glibc version incompatibility
Paul Howard
2005-02-15 20:12:03 UTC
Permalink
Hi!

I have written an application using Python (2.3) and wxPython
(2.4.2.4), and I am trying to package it for commercial distribution
(on Linux systems) using cx_Freeze. (There are two other external
modules involved: pyCrypto and elementtree.)

I'm using cx_Freeze 2.2, using the ConsoleSetLibPathBase base binary.
Everything works pretty much OK, except when trying to install the
resulting package on an older Linux system, I get the error message:

ImportError: /lib/i686/libc.so.6: version `GLIBC_2.3.4' not found
(required by (directory name)/libwx_gtk2-2.4.so.0)

GLIBC 2.3.2 is installed on the system in question.

I've tried cx_Freeze 3.0.1, but there is no ConsoleSetLibPath base. I
see that there is a ConsoleSetLibPath.py initscript, but no
ConsoleSetLibPath.c file. In order to create a base, I tried using the
ConsoleSetLibPath.c from cx_Freeze 2.2 before running MakeFrozenBases,
but when I built the application and tried to run it, it told me:

Fatal Python error: Invalid magic

At this point I'm sort of thrashing. For this particular application,
can you tell me what I should be doing? Which version of cx_Freeze, which base to use? Is there any more information you need in order to help me? Am I all wet, and should be doing everything different?

I realize that version compatibility is a big issue with Linux, but can
cx_Freeze take me far enough that I can distribute my application?
I sure hope so, for job-maintenence reasons :-)

Thanks very much,
Paul Howard


___________________________________________________________________
Speed up your surfing with Juno SpeedBand.
Now includes pop-up blocker!
Only $14.95/month -visit http://www.juno.com/surf to sign up today!
Anthony Tuininga
2005-02-15 21:54:41 UTC
Permalink
I would suggest upgrading to cx_Freeze 3.0.1. The internal architecture
has changed somewhat from 2.2 which is why you are a little bit
confused. :-) First, 2.2 uses a proprietary method for appending the
modules to the executable and 3.0.1 uses the standard zipfile import
method. Second, 2.2 uses a base executable that includes the bootstrap
code; 3.0.1 uses a base executable that calls a special Python script
(called an initscript) that finishes the bootstrapping. Thus, for your
case, you need to do the following:

FreezePython --init-script ConsoleSetLibPath <script.py>

Does that explain things?
Post by Paul Howard
Hi!
I have written an application using Python (2.3) and wxPython
(2.4.2.4), and I am trying to package it for commercial distribution
(on Linux systems) using cx_Freeze. (There are two other external
modules involved: pyCrypto and elementtree.)
I'm using cx_Freeze 2.2, using the ConsoleSetLibPathBase base binary.
Everything works pretty much OK, except when trying to install the
ImportError: /lib/i686/libc.so.6: version `GLIBC_2.3.4' not found
(required by (directory name)/libwx_gtk2-2.4.so.0)
GLIBC 2.3.2 is installed on the system in question.
I've tried cx_Freeze 3.0.1, but there is no ConsoleSetLibPath base. I
see that there is a ConsoleSetLibPath.py initscript, but no
ConsoleSetLibPath.c file. In order to create a base, I tried using the
ConsoleSetLibPath.c from cx_Freeze 2.2 before running MakeFrozenBases,
Fatal Python error: Invalid magic
At this point I'm sort of thrashing. For this particular application,
can you tell me what I should be doing? Which version of cx_Freeze, which base to use? Is there any more information you need in order to help me? Am I all wet, and should be doing everything different?
I realize that version compatibility is a big issue with Linux, but can
cx_Freeze take me far enough that I can distribute my application?
I sure hope so, for job-maintenence reasons :-)
Thanks very much,
Paul Howard
___________________________________________________________________
Speed up your surfing with Juno SpeedBand.
Now includes pop-up blocker!
Only $14.95/month -visit http://www.juno.com/surf to sign up today!
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
cx-freeze-users mailing list
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
--
Anthony Tuininga
***@computronix.com

Computronix
Distinctive Software. Real People.
Suite 200, 10216 - 124 Street NW
Edmonton, AB, Canada T5N 4A3
Phone: (780) 454-3700
Fax: (780) 454-3838
http://www.computronix.com
Paul Howard
2005-02-15 22:29:59 UTC
Permalink
Thanks, I'll give that a try. I was missing the --init-script switch.

-- Paul

___________________________________________________________________
Speed up your surfing with Juno SpeedBand.
Now includes pop-up blocker!
Only $14.95/month -visit http://www.juno.com/surf to sign up today!
Loading...