Re: Understanding and dealing with an exception

Discussion in 'Python' started by Chris Angelico, Oct 14, 2012.

  1. 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
     
    Chris Angelico, Oct 14, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris Angelico
    Replies:
    0
    Views:
    198
    Chris Angelico
    Oct 14, 2012
  2. Chris Angelico
    Replies:
    0
    Views:
    233
    Chris Angelico
    Oct 14, 2012
  3. Mark Lawrence
    Replies:
    0
    Views:
    152
    Mark Lawrence
    Oct 14, 2012
  4. Terry Reedy
    Replies:
    0
    Views:
    148
    Terry Reedy
    Oct 14, 2012
  5. Mark Lawrence
    Replies:
    0
    Views:
    200
    Mark Lawrence
    Oct 14, 2012
Loading...

Share This Page