Python Memory Error
Hi,
I'm new to python (I'm actually running a program - Pysal - through python 2.6), and am getting an error that I'm not sure to how to resolve. I'm attempting to create a large matrix, and I think I'm running out of memory. The error I'm getting is:
Python(2153) malloc: * mmap(size=16777216) failed (error code=12)
* error: can't allocate region
* set a breakpoint in malloc errorbreak to debug
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 11, in intW2idW
MemoryError
Python(2153) malloc: * mmap(size=16777216) failed (error code=12)
* error: can't allocate region
* set a breakpoint in malloc errorbreak to debug
no mem for new parser
MemoryError
There have been previous postings on this specific error (eg. http://discussions.apple.com/thread.jspa?messageID=9128509). From this, it seems like there is a leak somewhere. However, I've used the same code to create a smaller matrix with no problem. Is there a way to allocate more memory?
Thanks!
I'm new to python (I'm actually running a program - Pysal - through python 2.6), and am getting an error that I'm not sure to how to resolve. I'm attempting to create a large matrix, and I think I'm running out of memory. The error I'm getting is:
Python(2153) malloc: * mmap(size=16777216) failed (error code=12)
* error: can't allocate region
* set a breakpoint in malloc errorbreak to debug
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 11, in intW2idW
MemoryError
Python(2153) malloc: * mmap(size=16777216) failed (error code=12)
* error: can't allocate region
* set a breakpoint in malloc errorbreak to debug
no mem for new parser
MemoryError
There have been previous postings on this specific error (eg. http://discussions.apple.com/thread.jspa?messageID=9128509). From this, it seems like there is a leak somewhere. However, I've used the same code to create a smaller matrix with no problem. Is there a way to allocate more memory?
Thanks!
Mac Pro, Mac OS X (10.6.5)