22 May
2009
22 May
'09
12:06 a.m.
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: http://projects.scipy.org/numpy/ticket/1115 which is maybe related. -- Pauli Virtanen