Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #15597

bug python2.3+zipimport+ubuntu 10.04 amd_64

From Robin Becker <robin@reportlab.com>
Subject bug python2.3+zipimport+ubuntu 10.04 amd_64
Date 2011-11-11 16:52 +0000
Newsgroups comp.lang.python
Message-ID <mailman.2648.1321030369.27778.python-list@python.org> (permalink)

Show all headers | View raw


I'm trying to run some aged software on a new machine which runs

Linux app2.reportlab.com 2.6.32-30-generic #59-Ubuntu SMP Tue Mar 1 21:30:46 UTC 
2011 x86_64 GNU/Linux  Ubuntu 10.04.2 LTS

The software is required to use python 2.3 so first I've had some problems 
building python itself. Apparently to get rid of segfaults during the build we 
need the configure args to include

    BASECFLAGS=-U_FORTIFY_SOURCE

that certainly fixes the python build errors.

Now when we come to run the aged application we get this

$ ./xxx.cgi
Traceback (most recent call last):
   File "/home/rptlab/website/develop.reportlab.com/cgi-bin/xxx.cgi", line 7, in ?
     from fastwebapp import FastWebApp
OverflowError: signed integer is greater than maximum


this appears to be related to the use of a zip import.

 > sys.path.insert(0,os.path.join(os.getcwd(),"fastapp.zip"))
 > from fastwebapp import FastWebApp

if we unpack the zip and remove the path insert the application appears to run fine.

Googling appears to indicate that others have seen this error but on a different 
hardware and trying to remove optimizations from the python build has had 
variable success.

Anyone had any real success with this problem? The last version of the test 
machinery ran 32bit freebsd and we had no problems on that hardware.
-- 
Robin Becker

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

bug python2.3+zipimport+ubuntu 10.04 amd_64 Robin Becker <robin@reportlab.com> - 2011-11-11 16:52 +0000

csiph-web