Memory error due to big input file
MRAB
python at mrabarnett.plus.com
Mon Jul 13 13:20:43 EDT 2009
sityee kong wrote:
> Hi All,
>
> I have a similar problem that many new python users might encounter. I
> would really appreciate if you could help me fix the error.
> I have a big text file with size more than 2GB. It turned out memory
> error when reading in this file. Here is my python script, the error
> occurred at line -- self.fh.readlines().
>
[snip code]
Your 'error' is that you're running it on a computer with insufficient
memory.
More information about the Python-list
mailing list