You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am experiencing issues running nipype.interfaces.spm in my windows machine. I get "This docstring was not generated by Nipype! " error message when I run the following command. Any assistance to resolve this issue would be appreciated. Thank you!
Actual behavior
>>import nipype.interfaces.spm as spm^M
>>est = spm.EstimateContrast()
'stty' is not recognized as an internal or external command,
operable program or batch file.
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
File ~\anaconda3\envs\test\lib\site-packages\nipype\utils\spm_docs.py:49, in _strip_header(doc)
48 try:
---> 49 index = doc.index(hdr)
50 except ValueError as e:
ValueError: substring not found
The above exception was the direct cause of the following exception:
OSError Traceback (most recent call last)
Cell In[11], line 2
1 import nipype.interfaces.spm as spm
----> 2 est = spm.EstimateContrast()
File ~\anaconda3\envs\test\lib\site-packages\nipype\interfaces\spm\base.py:309, in SPMCommand.__init__(self, **inputs)
308 def __init__(self, **inputs):
--> 309 super(SPMCommand, self).__init__(**inputs)
310 self.inputs.on_trait_change(
311 self._matlab_cmd_update, ["matlab_cmd", "mfile", "paths", "use_mcr"]
312 )
313 self._find_mlab_cmd_defaults()
File ~\anaconda3\envs\test\lib\site-packages\nipype\interfaces\base\core.py:197, in BaseInterface.__init__(self, from_file, resource_monitor, ignore_exception, **inputs)
194 # Create input spec, disable any defaults that are unavailable due to
195 # version, and then apply the inputs that were passed.
196 self.inputs = self.input_spec()
--> 197 unavailable_traits = self._check_version_requirements(
198 self.inputs, permissive=True
199 )
200 if unavailable_traits:
201 self.inputs.trait_set(**{k: Undefined for k in unavailable_traits})
File ~\anaconda3\envs\test\lib\site-packages\nipype\interfaces\base\core.py:295, in BaseInterface._check_version_requirements(self, trait_object, permissive)
292 check = dict(min_ver=lambda t: t is not None)
293 names = trait_object.trait_names(**check)
--> 295 if names and self.version:
296 version = LooseVersion(str(self.version))
297 for name in names:
File ~\anaconda3\envs\test\lib\site-packages\nipype\interfaces\spm\base.py:357, in SPMCommand.version(self)
355 @property
356 def version(self):
--> 357 info_dict = Info.getinfo(
358 matlab_cmd=self.inputs.matlab_cmd,
359 paths=self.inputs.paths,
360 use_mcr=self.inputs.use_mcr,
361 )
362 if info_dict:
363 return "%s.%s" % (info_dict["name"].split("SPM")[-1], info_dict["release"])
File ~\anaconda3\envs\test\lib\site-packages\nipype\interfaces\spm\base.py:238, in Info.getinfo(klass, matlab_cmd, paths, use_mcr)
235 klass._paths = paths
236 return None
--> 238 out = sd._strip_header(out.runtime.stdout)
239 out_dict = {}
240 for part in out.split("|"):
File ~\anaconda3\envs\test\lib\site-packages\nipype\utils\spm_docs.py:51, in _strip_header(doc)
49 index = doc.index(hdr)
50 except ValueError as e:
---> 51 raise IOError("This docstring was not generated by Nipype!\n") from e
53 index += len(hdr)
54 index += 1
OSError: This docstring was not generated by Nipype!
Execution environment
python version 3.9.16
nipype version 1.8.4
The text was updated successfully, but these errors were encountered:
Hi, I am experiencing issues running nipype.interfaces.spm in my windows machine. I get "This docstring was not generated by Nipype! " error message when I run the following command. Any assistance to resolve this issue would be appreciated. Thank you!
Actual behavior
Execution environment
python version 3.9.16
nipype version 1.8.4
The text was updated successfully, but these errors were encountered: