[Numpy-discussion] numarray problem creating large memmap

Joost van Evert joostvanevert at gmail.com
Fri Jul 1 04:44:58 EDT 2005


Hello,

does anyone know why it is not possible to create a memmap beyond a
certain length. For example: m =
MM.open('/tmp/test','write',len=500000000) works, while the same command
using a length of 600000000 gives the following error message:

/shannon/joost/lib/python/numarray/memmap.py in __init__(self, filename,
mode, len)
    299             else:
    300                 acc = mmap.ACCESS_WRITE
--> 301             self._mmap = mmap.mmap(file.fileno(), len,
access=acc)
    302         else:
    303             self._mmap = None

EnvironmentError: [Errno 22] Invalid argument

I am using:
- numarray version 1.3.1
- python 2.4.1
- linux

Greetings,
Joost




More information about the NumPy-Discussion mailing list