Hi,
Need help for the error "OverflowError: long int too large to convert to int" while reading a zip file content.
Python version:
Python 2.4.1 (#1, Sep 13 2005, 00:39:20)
[GCC 4.0.2 20050901 (prerelease) (SUSE Linux)] on linux2
Code
>>> import os, datetime, sys, optparse, string, operator, gzip
>>> health_day_summary_file = gzip.GzipFile( "health_CORR_summary.csv.gz", "rb")
>>> lot_source_contents = health_day_summary_file.readlines()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/gzip.py", line 413, in readlines
line = self.readline()
File "/usr/lib/python2.4/gzip.py", line 387, in readline
c = self.read(readsize)
File "/usr/lib/python2.4/gzip.py", line 224, in read
self._read(readsize)
File "/usr/lib/python2.4/gzip.py", line 265, in _read
buf = self.fileobj.read(size)
OverflowError: long int too large to convert to int
Thanks in advance