[SciPy-user] partially reading a file...
Sebastian Haase
haase at msg.ucsf.edu
Thu Aug 7 12:08:43 EDT 2008
On Thu, Aug 7, 2008 at 5:36 PM, fred <fredmfp at gmail.com> wrote:
> Travis E. Oliphant a écrit :
>>
>> Should work...
> I have tested the trick on a file which has 2.7 10**9 nodes, ie > 2**31
> and I get the following message:
>
> File "/usr/local/lib/python2.5/site-packages/numpy/core/memmap.py", line
> 193, in __new__
> mm = mmap.mmap(fid.fileno(), bytes, access=acc)
> ValueError: mmap length is greater than file size
>
> Is there a workaround to consider long integer (if this is the issue) ?
>
> TIA.
>
Are you "really" on a 64-bit system ?
Is this Linux ?
Is your Python the original from the distro - or did you build it yourself ?
Do a: >>> import sys;print sys.maxint
Did you build numpy yourself or did you download a binary ?
HTH,
Sebastian
More information about the SciPy-User
mailing list