Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'bug': 0.02; 'url:sourceforge': 0.02; 'subject:bug': 0.03; 'ubuntu': 0.04; 'args': 0.05; 'fixes': 0.05; 'tue': 0.05; 'url:py': 0.07; 'python': 0.08; 'googling': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'skip:" 60': 0.09; 'x86_64': 0.09; 'configure': 0.10; 'cc:addr:python-list': 0.15; 'hardware.': 0.16; 'subject:ubuntu': 0.16; 'unpack': 0.16; 'utc': 0.16; 'linux': 0.17; 'wrote:': 0.18; '2.3': 0.18; 'insert': 0.19; 'seems': 0.19; 'appears': 0.20; '(most': 0.21; 'trying': 0.21; 'cc:no real name:2**0': 0.21; 'runs': 0.23; '2.4': 0.23; 'problem?': 0.23; 'header:In-Reply-To:1': 0.23; 'variable': 0.24; 'traceback': 0.24; 'cc:2**0': 0.25; "i'm": 0.26; 'import': 0.28; 'fine.': 0.28; 'rid': 0.28; 'fixed': 0.28; 'skip:b 20': 0.29; 'cc:addr:python.org': 0.29; 'ran': 0.30; 'url:src': 0.30; 'error': 0.31; 'version': 0.31; 'signed': 0.31; 'anyone': 0.31; 'certainly': 0.32; 'to:addr:python-list': 0.32; "i've": 0.33; 'there': 0.33; 'header:User-Agent:1': 0.33; 'header:X-Complaints- To:1': 0.33; 'test': 0.34; 'copied': 0.34; 'integer': 0.34; 'last):': 0.34; 'supposed': 0.35; 'url:python': 0.35; 'file': 0.36; 'machine': 0.37; 'but': 0.37; 'problems': 0.37; 'received:org': 0.37; 'patch': 0.38; 'run': 0.38; 'some': 0.38; 'itself.': 0.38; "there's": 0.39; 'link.': 0.39; "it's": 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.39; 'success': 0.60; 'url:net': 0.61; '2011': 0.62; 'maximum': 0.63; 'zip': 0.64; 'here': 0.65; 'sfxlen:4': 0.67; 'subject:+': 0.73; 'url:c': 0.73; 'dead': 0.77; 'pfxlen:big': 0.77; 'url:17': 0.80; 'aged': 0.84; 'url:16': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Robin Becker Subject: Re: bug python2.3+zipimport+ubuntu 10.04 amd_64 Date: Fri, 11 Nov 2011 17:44:22 +0000 References: <4EBD52C9.7000408@chamonix.reportlab.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: python-list@python.org X-Gmane-NNTP-Posting-Host: fpc2-nmal8-0-0-cust4.croy.static.cable.virginmedia.com User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: <4EBD52C9.7000408@chamonix.reportlab.co.uk> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 50 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1321033476 news.xs4all.nl 6871 [2001:888:2000:d::a6]:46937 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:15601 OK it seems there's a bug in zipimport.c that was fixed in 2.4. I copied across the 2.4 version and after removing a single new error check the rebuilt python 2.3 works fine. There was supposed to be a patch here http://cvs.sourceforge.net/viewcvs.py/python/python/dist/src/Modules/zipimport.c?r1=1.16&r2=1.17 but it's a dead link. -- Robin Becker On 11/11/2011 16:52, Robin Becker wrote: > 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.