IndexError: cannot fit 'long' into an index-sized integer
Status: Beta
Brought to you by:
yadra
I got a couple of "IndexError: cannot fit 'long' into an index-sized integer" errors.
I am using : Python 2.5.2 (r252:60911, Jan 4 2009, 17:40:26) [GCC 4.3.2] on linux2
Solution : in module OLERead.py you need to replace signed by unsigned integer (on 3 locations) as follows
# while (sbdBlock != -2):
while (sbdBlock != 4294967294):
The error message is :
Traceback (most recent call last):
File "example.py", line 6, in <module>
xlsfile.read("jxlrwtest.xls")
File "/tmp/pyxls/PyXLReader.py", line 125, in read
self.data=self._ole.getWorkBook()
File "/tmp/pyxls/OLERead.py", line 163, in getWorkBook
block = self.bigBlockChain[block]
IndexError: cannot fit 'long' into an index-sized integer