64-bit bytecode compatibility (was Re: [PEAK] ez_setup on 64-bit linux problem)

Phillip J. Eby pje at telecommunity.com
Thu Sep 29 12:37:15 EDT 2005


At 12:14 PM 9/29/2005 -0400, Viren Shah wrote:
>   File "/root/svn-install-apps/setuptools-0.6a4/pkg_resources.py", line 
> 949, in _get
>     return self.loader.get_data(path)
>OverflowError: signed integer is greater than maximum

Interesting.  That looks like it might be a bug in the Python zipimport 
module, which is what implements get_data().  Apparently it happens upon 
importing as well; I assumed that it was a bytecode incompatibility.

Checking the revision log, I find that there's a 64-bit fix for zipimport.c 
in Python 2.4 that looks like it would fix this issue, but it has not been 
backported to any revision of Python 2.3.  You're going to either have to 
backport the fix yourself and rebuild Python 2.3, or upgrade to Python 
2.4.  Sorry.  :(

The diff that implements the fix is at:

http://cvs.sourceforge.net/viewcvs.py/python/python/dist/src/Modules/zipimport.c?r1=1.16&r2=1.17

I'll update my documentation pages to reflect that setuptools requires 
Python 2.4 if you're using a 64-bit Python.




More information about the PEAK mailing list