[Numpy-discussion] memoryerror with numpy.fromfile

Pauli Virtanen pav@iki...
Thu May 21 13:36:24 CDT 2009

Thu, 21 May 2009 12:14:18 -0600, Michael Hearne wrote:

> All:  Never mind!  The file I was attempting to read was part of an
> (apparently) silently incomplete download, and as such, the file size
> didn't match the metadata in the header file describing the data file,
> and I was reading beyond the end of the file.
> I would submit that MemoryError is perhaps a little misleading for this
> particular case, but oh well.

Well, that it raises MemoryError in this case is a bug, so maybe a ticket 
should be filed.

There's another bug associated with reading empty files:


which is maybe related.

Pauli Virtanen

More information about the Numpy-discussion mailing list