Re: [pymvpa] MemoryError when running tutorial_lib.py

2011-08-22 Thread Yaroslav Halchenko
FWIW -- pushed (into master only) the commit [1] to use psutil module to report virtual memory (and resident allocation) in debug output so if you use MVPA_DEBUG_METRICS=vmem, it should work now across platforms if you have psutil module (python-psutil package on debian systems) installed. [1] ht

Re: [pymvpa] MemoryError when running tutorial_lib.py

2011-08-22 Thread Yaroslav Halchenko
On Mon, 22 Aug 2011, 冯璐 wrote: >You said this problem might be associated with reading gzip files. So >can I bypass the format of gzip, if I choose to use PyMVPA? indeed -- just gunzip those .nii.gz you have -- would they work fine then? >Because I want to try PyMVPA, I have to learn

Re: [pymvpa] MemoryError when running tutorial_lib.py

2011-08-22 Thread 冯璐
Thank you, Yaroslav. You said this problem might be associated with reading gzip files. So can I bypass the format of gzip, if I choose to use PyMVPA? Because I want to try PyMVPA, I have to learn first Python, then Linux, maybe FSL later on … Am I crazy for giving up Windows and Matlab whi

Re: [pymvpa] MemoryError when running tutorial_lib.py

2011-08-22 Thread Yaroslav Halchenko
On Mon, 22 Aug 2011, 冯璐 wrote: >Im new to Python. I have learnt some elementary knowledge before I come >to PyMVPA. But I dont know how to easily check the memory consumption. >My system is Windows XP (32bit). Now Im using IPython. Is there any >magic function for me to check the m

Re: [pymvpa] MemoryError when running tutorial_lib.py

2011-08-22 Thread 冯璐
...@fingerpass.net.cn] Sent: 2011年8月22日 17:44 To: 'pkg-exppsy-pymvpa@lists.alioth.debian.org' Subject: RE: [pymvpa]MemoryError when running tutorial_lib.py Dear Michael and Zonglei, Thank you for your attention! I have to turn to some other tasks these days. But the problem is s

Re: [pymvpa] MemoryError when running tutorial_lib.py

2011-08-22 Thread Yaroslav Halchenko
> C:\Python26\lib\gzip.pyc in _add_read_data(self, data) > 287 def _add_read_data(self, data): > 288 self.crc = zlib.crc32(data, self.crc) & 0xL > --> 289 self.extrabuf = self.extrabuf + data > 290 self.extrasize = self.extrasize + len(data) > 291

Re: [pymvpa] MemoryError when running tutorial_lib.py

2011-08-22 Thread Michael Hanke
On Mon, Aug 22, 2011 at 05:44:08PM +0800, 冯璐 wrote: > As attached is the statement and the error message. Would you > please read the error message? I don’t think it has anything to do with > mismatched or missing brackets. As requested before, please tell us what your operating system re

Re: [pymvpa] MemoryError when running tutorial_lib.py

2011-08-22 Thread 冯璐
Dear Michael and Zonglei, Thank you for your attention! I have to turn to some other tasks these days. But the problem is still there. There are two sets of data. One is tutorial data from the website (size of the file is 294MB), the other is the test data coming with the so

Re: [pymvpa] MemoryError when running tutorial_lib.py

2011-08-08 Thread Zhen Zonglei
Hi Feng: In my experience, this error is not a memory error. It is always caused by mismatched or missing brackets (parentheses). Just check your code. Zonglei Zhen 2011/8/8 冯璐 > Dear experts, > > ** ** > > When I typed *ds = get_haxby2001_data() *in IPython, I’ve got a > ex

Re: [pymvpa] MemoryError when running tutorial_lib.py

2011-08-08 Thread Michael Hanke
On Mon, Aug 08, 2011 at 05:42:29PM +0800, 冯璐 wrote: > When I typed ds = get_haxby2001_data() in IPython, I’ve got a > exception of MemoryError. > The size of ‘Bold.nii.gz’ is 294MB. And memory size of my computer is 3GB. That is weired. 3GB is more than enough. Are you sure this is in a

[pymvpa] MemoryError when running tutorial_lib.py

2011-08-08 Thread 冯璐
Dear experts, When I typed ds = get_haxby2001_data() in IPython, I’ve got a exception of MemoryError. The error message is (‘EOF in multi-line statement’, (2, 0)) The size of ‘Bold.nii.gz’ is 294MB. And memory size of my computer is 3GB. Does anyone know what happened? Is