When I try to run nipype I met some error like this. Is there anyone can help?
170918-21:09:59,986 interface WARNING:
FSLOUTPUTTYPE environment variable is not set. Setting FSLOUTPUTTYPE=NIFTI
Traceback (most recent call last):
File “/home/sunny/PycharmProjects/nipype/test_build_pipeline.py”, line 13, in
mybet.run()
File “/home/sunny/anaconda3/lib/python3.6/site-packages/nipype/interfaces/base.py”, line 1081, in run
runtime = self._run_wrapper(runtime)
File “/home/sunny/anaconda3/lib/python3.6/site-packages/nipype/interfaces/base.py”, line 1724, in _run_wrapper
runtime = self._run_interface(runtime)
File “/home/sunny/anaconda3/lib/python3.6/site-packages/nipype/interfaces/fsl/preprocess.py”, line 144, in _run_interface
runtime = super(BET, self)._run_interface(runtime)
File “/home/sunny/anaconda3/lib/python3.6/site-packages/nipype/interfaces/base.py”, line 1750, in _run_interface
(self.cmd.split()[0], runtime.hostname))
OSError: command ‘bet’ could not be found on host cynthia-PC
Interface BET failed to run.
I can successfully run fsl in the terminal and when I type BET in the terminal I can see the help messages.
Is there someone who can tell me how to deal with it?
Are you changing any environmental variables within your script?
If not, this looks like a problem with FSL and your PATH - there’s a little section in the nipype beginner’s guide that will ensure your FSL installation will be found.
Thank you for your reply,and I just followed every step on the page you mentioned.Besides I also successfully run FSL and Freesurfer respectively in the terminal.But failed with these codes down here.By the way, I did not installed SPM,MATLAB,ANTs and AFNI.Does that matters?
Tank you for your reply,I’m sure that I’ve sourced it.And when I at type fsl in the terminal I can see the GUI,I also did fsl BET with the GUI successfully. But then I failed here.I am really confused.