Hi experts,
I am having an issue with spm.EstimateModel on Nipype. I narrowed down to the problem to the fact that the SPM version information is unavailable (i.e., spm.SPMCommand().version returns nothing). In particular, I get
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/nipype/interfaces/spm/model.py”, line 278, in _list_outputs
outtype = ‘nii’ if ‘12’ in self.version.split(’.’)[0] else ‘img’
AttributeError: ‘NoneType’ object has no attribute ‘split’
This only happens on my Mac. I was able to run the same code on my Linux and it runs perfectly fine. I guess I can run the code on the Linux, but I am teaching a class to a bunch of Mac users so I want this code to run. I searched on the web and found some posts in which people are not getting the SPM version info. But I do not see any viable resolution for this issue. If you have any solution or insight into this, please share.
Thanks,
-Satoru Hayasaka