Re: [Numpy-discussion] error with large memmap

2009-06-09 Thread Charles R Harris
On Tue, Jun 9, 2009 at 8:51 AM, John Schulman wrote: > What's the best way to install a 64-bit python alongside my existing > installation? > There was a long thread about that a while back. Try a search on the archives. It wasn't all that easy, though. Chuck ___

Re: [Numpy-discussion] error with large memmap

2009-06-09 Thread David Cournapeau
John Schulman wrote: > What's the best way to install a 64-bit python alongside my existing > installation? > It is a bit complicated because you need to build your own python interpreter (the python.org one does not handle 64 bits AFAIK). You could just install your python somewhere in your $H

Re: [Numpy-discussion] error with large memmap

2009-06-09 Thread John Schulman
What's the best way to install a 64-bit python alongside my existing installation? On Tue, Jun 9, 2009 at 7:32 AM, John Schulman wrote: > OK looks like that was the issue > $ python -c "import platform; print platform.machine()" > i386 > > Thanks > > > On Tue, Jun 9, 2009 at 2:52 AM, David > Cour

Re: [Numpy-discussion] error with large memmap

2009-06-09 Thread John Schulman
OK looks like that was the issue $ python -c "import platform; print platform.machine()" i386 Thanks On Tue, Jun 9, 2009 at 2:52 AM, David Cournapeau wrote: > Charles R Harris wrote: >> >> >> On Tue, Jun 9, 2009 at 2:32 AM, John Schulman > > wrote: >> >>     I'm gettin

Re: [Numpy-discussion] error with large memmap

2009-06-09 Thread David Cournapeau
Charles R Harris wrote: > > > On Tue, Jun 9, 2009 at 2:32 AM, John Schulman > wrote: > > 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.m

Re: [Numpy-discussion] error with large memmap

2009-06-09 Thread Charles R Harris
On Tue, Jun 9, 2009 at 2:32 AM, John Schulman wrote: > 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 = 652800L > > I thought t

[Numpy-discussion] error with large memmap

2009-06-09 Thread John Schulman
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 = 652800L I thought that 64-bit systems with python>2.5 could memmap large files. I'm runnin