[Numpy-discussion] error with large memmap

John Schulman joschu@caltech....
Tue Jun 9 03:32:57 CDT 2009


I'm getting the error
OverflowError: cannot fit 'long' into an index-sized integer
when I try to memmap a 6gb file

top of the stack trace is
mm = mmap.mmap(fid.fileno(), bytes, access=acc)
where bytes = 6528000000L

I thought that 64-bit systems with python>2.5 could memmap large
files. I'm running the latest EPD python distribution (4.2.30201),
which uses python 2.5.4 and numpy 1.2.1
Macbook Pro Core 2 Duo, OS X 10.5.6


More information about the Numpy-discussion mailing list