Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feed.xsnews.nl!border-1.ams.xsnews.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; '64-bit': 0.07; 'raised': 0.07; 'python': 0.09; 'passing': 0.15; '(either': 0.16; 'bug,': 0.16; 'build.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'oct': 0.16; 'subject:exception': 0.16; 'wrote:': 0.17; 'received:209.85.214.174': 0.21; 'header:In-Reply-To:1': 0.25; 'possibly': 0.27; 'message-id:@mail.gmail.com': 0.27; 'catching': 0.29; 'convert': 0.29; 'file': 0.32; 'could': 0.32; 'int': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'subject:with': 0.36; 'too': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'more': 0.63; 'limit': 0.65; 'deem': 0.84; 'exceeding': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=pirlKPRJ+2/goyCaOkaMPv0Sb92OeuhnsvHPRs4vjZM=; b=0Ge8LDdMvPGfm018aPXDCgaNTf7chI/TC4e/jZcFNWbrjXMrdS/i6r/2YDutaE8mYJ sSCHU+JGX7s/bu5XjZtsAV3kMAONk4Dq7R0dbxuqN/Gvjh59DtWH/WHMxRhWpGY2V8pg /Bqn011jPQrVogrb8UihFnVBJbdmCCtKP+O4/aJAlhWSaktaNC36CyiE22gyvgQsMqd0 rGil9B5Z9TTdltFVuhVFtrhaf06LoH/SEqh4l62/+re1Mw3UJDzZT49eWJ/FBH1GuqvG +zXOpln5zGlUgqdyrDg6IBu4kvpIBVtnyNbl2rxRh8eIT92h8bq75Twqf4O0xPxHRYBf xGlg== MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 14 Oct 2012 15:31:05 +1100 Subject: Re: Understanding and dealing with an exception From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1350189067 news.xs4all.nl 6883 [2001:888:2000:d::a6]:40939 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31238 On Sun, Oct 14, 2012 at 3:23 PM, Vincent Davis wrote: > OverflowError: Python int too large to convert to C long > line 266, in _maketile > bytecount = read(channels * ysize * 2) Is the file over 2GB? Might be a limitation, more than a bug, and one that could possibly be raised by using a 64-bit build. Alternatively, you could deem them invalid for exceeding your file size limit (either before passing to PIL, or on catching this exception). ChrisA