<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Dear experts, <div><br></div><div>I was trying to follow the tutorial step by step, but got stuck because the scripts can not find the file named "mask_vt.nii.gz". I was using neurodebian, and I think I installed everything mentioned in the documentation. </div><div>Could anybody please point out to me what I missed, or where I can download the tutorial dataset? </div><div>many thanks!</div><div><br></div><div>Mike</div><div><br></div><div><br></div><div><br></div><div>here is the error message: </div><div><br></div><div><br></div><div><div>In [2]: ds = get_haxby2001_data()</div><div>ERROR: An unexpected error occurred while tokenizing input</div><div>The following traceback may be corrupted or invalid</div><div>The error message is: ('EOF in multi-line statement', (96, 0))</div><div><br></div><div>---------------------------------------------------------------------------</div><div>IOError Traceback (most recent call last)</div><div><br></div><div>/usr/share/pyshared/mvpa/<ipython console> in <module>()</div><div><br></div><div>/usr/lib/pymodules/python2.6/mvpa2/tutorial_suite.pyc in get_haxby2001_data(path, roi)</div><div> 40 def get_haxby2001_data(path=None, roi='vt'):</div><div> 41 if path is None:</div><div>---> 42 ds = get_raw_haxby2001_data(roi=roi)</div><div> 43 else:</div><div> 44 ds = get_raw_haxby2001_data(path, roi=roi)</div><div><br></div><div>/usr/lib/pymodules/python2.6/mvpa2/tutorial_suite.pyc in get_raw_haxby2001_data(path, roi)</div><div> 35 return ds</div><div> 36 else:</div><div>---> 37 return load_datadb_tutorial_data(path=path, roi=roi)</div><div> 38 </div><div> 39 </div><div><br></div><div>/usr/lib/pymodules/python2.6/mvpa2/misc/data_generators.pyc in load_datadb_tutorial_data(path, roi)</div><div> 377 ds = fmri_dataset(samples=os.path.join(path, 'bold.nii.gz'),</div><div> 378 targets=attr.targets, chunks=attr.chunks,</div><div>--> 379 mask=mask)</div><div> 380 return ds</div><div> 381 </div><div><br></div><div>/usr/lib/pymodules/python2.6/mvpa2/datasets/mri.pyc in fmri_dataset(samples, targets, chunks, mask, sprefix, tprefix, add_fa)</div><div> 204 # figure out what the mask is, but only handle known cases, the rest</div><div><br></div><div> 205 # goes directly into the mapper which maybe knows more</div><div><br></div><div>--> 206 maskimg = _load_anyimg(mask)</div><div> 207 if maskimg is None:</div><div> 208 pass</div><div><br></div><div>/usr/lib/pymodules/python2.6/mvpa2/datasets/mri.pyc in _load_anyimg(src, ensure, enforce_dim)</div><div> 335 # try opening the beast; this might yield none in case of an unsupported</div><div><br></div><div> 336 # argument and is handled accordingly below</div><div><br></div><div>--> 337 data = _img2data(src)</div><div> 338 if not data is None:</div><div> 339 imgdata, imghdr, imgtype = data</div><div><br></div><div>/usr/lib/pymodules/python2.6/mvpa2/datasets/mri.pyc in _img2data(src)</div><div> 58 if isinstance(src, str):</div><div> 59 # filename</div><div><br></div><div>---> 60 img = nibabel.load(src)</div><div> 61 else:</div><div> 62 # assume this is an image already</div><div><br></div><div><br></div><div>/usr/lib/pymodules/python2.6/nibabel/loadsave.pyc in load(filename)</div><div> 51 else:</div><div> 52 klass = spm2.Spm2AnalyzeImage</div><div>---> 53 return klass.from_filename(filename)</div><div> 54 </div><div> 55 </div><div><br></div><div>/usr/lib/pymodules/python2.6/nibabel/spatialimages.pyc in from_filename(klass, filename)</div><div> 395 def from_filename(klass, filename):</div><div> 396 file_map = klass.filespec_to_file_map(filename)</div><div>--> 397 return klass.from_file_map(file_map)</div><div> 398 </div><div> 399 @classmethod</div><div><br></div><div>/usr/lib/pymodules/python2.6/nibabel/analyze.pyc in from_file_map(klass, file_map)</div><div> 1303 '''</div><div> 1304 hdr_fh, img_fh = klass._get_fileholders(file_map)</div><div>-> 1305 hdrf = hdr_fh.get_prepare_fileobj(mode='rb')</div><div> 1306 header = klass.header_class.from_fileobj(hdrf)</div><div> 1307 if hdr_fh.fileobj is None: # was filename</div><div><br></div><div>/usr/lib/pymodules/python2.6/nibabel/fileholders.pyc in get_prepare_fileobj(self, *args, **kwargs)</div><div> 67 obj.seek(self.pos)</div><div> 68 elif self.filename is not None:</div><div>---> 69 obj = allopen(self.filename, *args, **kwargs)</div><div> 70 if self.pos != 0:</div><div> 71 obj.seek(self.pos)</div><div><br></div><div>/usr/lib/pymodules/python2.6/nibabel/volumeutils.pyc in allopen(fname, *args, **kwargs)</div><div> 847 else:</div><div> 848 opener = open</div><div>--> 849 return opener(fname, *args, **kwargs)</div><div> 850 </div><div> 851 </div><div><br></div><div>/usr/lib/python2.6/gzip.pyc in open(filename, mode, compresslevel)</div><div> 31 </div><div> 32 """</div><div>---> 33 return GzipFile(filename, mode, compresslevel)</div><div> 34 </div><div> 35 class GzipFile:</div><div><br></div><div>/usr/lib/python2.6/gzip.pyc in __init__(self, filename, mode, compresslevel, fileobj)</div><div> 77 mode += 'b'</div><div> 78 if fileobj is None:</div><div>---> 79 fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')</div><div> 80 if filename is None:</div><div> 81 if hasattr(fileobj, 'name'): filename = fileobj.name</div><div><br></div><div>IOError: [Errno 2] No such file or directory: './data/mask_vt.nii.gz'</div></div><div><br></div><div><br></div><div><br></div><div><br></div> </div></body>
</html>