-
Notifications
You must be signed in to change notification settings - Fork 530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spm12 cannot find matlab #2939
Comments
Dear all, please let me know if you've got any suggestions for this please - I'm on 10.14.3 Mojave on a MacBook Pro. |
@barbrakr - there may be a few issues related to this.
nipype assumes (for most part) that commands you call from nipype are accessible to the terminal you ran nipype from.
hope that helps. |
Thank you @satra !
I have been trying to solve this error now for some time - apparently matlab cannot find SPM on the path. Couldn't really solve it with what I found online - would you have clue for me? Standard error: |
in nipype you can always specify the spm path (actually recommended). take a look at this answer: https://neurostars.org/t/error-running-spm-realign-node/1019/2 |
Awesome stuff - this finally worked - thanks a bunch!!
<nipype.interfaces.base.support.InterfaceResult object at 0x1111969e8> |
Summary
I've been working my way through these suggestions #2436 "Matlab command cannot be found" and the related fix] and found that I have the proper base.py with the changes mentioned there.
Actual behavior when running from python3
smooth.run()
Traceback (most recent call last):
File "", line 1, in
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/nipype/interfaces/base/core.py", line 375, in run
runtime = self._run_interface(runtime)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/nipype/interfaces/spm/base.py", line 376, in _run_interface
results = self.mlab.run()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/nipype/interfaces/base/core.py", line 375, in run
runtime = self._run_interface(runtime)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/nipype/interfaces/matlab.py", line 162, in _run_interface
runtime = super(MatlabCommand, self)._run_interface(runtime)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/nipype/interfaces/base/core.py", line 749, in _run_interface
runtime.hostname))
OSError: No command "matlab" found on host .local. Please check that the corresponding package is installed.
Expected behavior
That it will run the smoothing SPM12 algorithm smoothly.
How to replicate the behavior
every time I follow the instructions:
from nipype.interfaces.spm import Smooth smooth = Smooth() smooth.inputs.in_files = 'functional.nii' smooth.inputs.fwhm = 6 smooth.run()
Platform details:
The text was updated successfully, but these errors were encountered: