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

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
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; 'subject:bug': 0.03; 'ubuntu': 0.04; 'args': 0.05; 'fixes': 0.05; 'tue': 0.05; '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; 'hardware.': 0.16; 'subject:ubuntu': 0.16; 'unpack': 0.16; 'utc': 0.16; 'linux': 0.17; '2.3': 0.18; 'insert': 0.19; 'appears': 0.20; '(most': 0.21; 'trying': 0.21; 'runs': 0.23; 'problem?': 0.23; 'variable': 0.24; 'traceback': 0.24; "i'm": 0.26; 'import': 0.28; 'fine.': 0.28; 'rid': 0.28; 'skip:b 20': 0.29; 'ran': 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; 'header:User-Agent:1': 0.33; 'header:X -Complaints-To:1': 0.33; 'test': 0.34; 'integer': 0.34; 'last):': 0.34; 'file': 0.36; 'machine': 0.37; 'but': 0.37; 'problems': 0.37; 'received:org': 0.37; 'run': 0.38; 'some': 0.38; 'itself.': 0.38; 'to:addr:python.org': 0.39; 'success': 0.60; '2011': 0.62; 'maximum': 0.63; 'zip': 0.64; 'subject:+': 0.73; 'aged': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Robin Becker <robin@reportlab.com>
Subject bug python2.3+zipimport+ubuntu 10.04 amd_64
Date Fri, 11 Nov 2011 16:52:25 +0000
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
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
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2648.1321030369.27778.python-list@python.org> (permalink)
Lines 38
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1321030369 news.xs4all.nl 6852 [2001:888:2000:d::a6]:44792
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:15597

Show key headers only | 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