[Image-SIG] OverflowError: long int to large to convert to int
Bernd Prager
bernd at prager.ws
Fri Feb 10 19:05:59 CET 2006
I'm running ActiveState Python 2.4.2 on Windows XP with Python 2.4 PIL-1.1.5.
When I try to open an OLE file I get the error message:
File "C:\bin\eclipse\workspace\email\email.py", line 7, in main
ole = PIL.OleFileIO.OleFileIO(filename)
File "C:\bin\Python24\Lib\site-packages\PIL\OleFileIO.py", line 260, in
__init__
self.open(filename)
File "C:\bin\Python24\Lib\site-packages\PIL\OleFileIO.py", line 293, in
open
self.loaddirectory(i32(header, 48))
File "C:\bin\Python24\Lib\site-packages\PIL\OleFileIO.py", line 339, in
loaddirectory
fp = self._open(sect)
File "C:\bin\Python24\Lib\site-packages\PIL\OleFileIO.py", line 405, in
_open
self.sectorsize, self.fat)
File "C:\bin\Python24\Lib\site-packages\PIL\OleFileIO.py", line 106, in
__init__
sect = fat[sect]
OverflowError: long int too large to convert to int
The same script on Debian Linux with the Debian packages python2.3
(2.3.5-9) and python2.3-imaging (1.1.5-4) runs fine. My problem is even
when I develop on Linux the target system has to be Windows. So I need a
way to make that work.
Is there a way for me to fix this?
Thanks for any help or suggestions,
-- Bernd
More information about the Image-SIG
mailing list