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


Groups > comp.lang.python > #31238

Re: Understanding and dealing with an exception

References <CALyJZZXtxD5HZCZ6C21-uPgxQUhvWw7xaUZsmPw-whTvhjGBsA@mail.gmail.com>
Date 2012-10-14 15:31 +1100
Subject Re: Understanding and dealing with an exception
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2164.1350189067.27098.python-list@python.org> (permalink)

Show all headers | View raw


On Sun, Oct 14, 2012 at 3:23 PM, Vincent Davis <vincent@vincentdavis.net> 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

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


Thread

Re: Understanding and dealing with an exception Chris Angelico <rosuav@gmail.com> - 2012-10-14 15:31 +1100

csiph-web