Summary of what happened:
I am running fMRIPrep with Docker and got the error pasted below. Please let me know what other information to provide. Many thanks in advance!
Command used (and if a helper script was used, a link to the helper script or the command generated):
PASTE CODE HERE
Version:
Environment (Docker, Singularity / Apptainer, custom installation):
Docker
Data formatted according to a validatable standard? Please provide the output of the validator:
PASTE VALIDATOR OUTPUT HERE
Relevant log outputs (up to 20 lines):
240724-16:10:15,259 nipype.workflow ERROR:
could not run node: fmriprep_24_0_wf.sub_ID_wf.bold_task_reward_wf.bold_fit_wf.bold_hmc_wf.mcflirt
240724-16:10:15,337 nipype.workflow CRITICAL:
fMRIPrep failed: Traceback (most recent call last):
File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/nipype/pipeline/plugins/multiproc.py", line 67, in run_node
result["result"] = node.run(updatehash=updatehash)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
result = self._run_interface(execute=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
return self._run_command(execute)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 771, in _run_command
raise NodeExecutionError(msg)
nipype.pipeline.engine.nodes.NodeExecutionError: Exception raised while executing Node mcflirt.
Cmdline:
mcflirt -in /data/sub-ID/func/sub-ID_task-reward_bold.nii -out /work/fmriprep_24_0_wf/sub_ID_wf/bold_task_reward_wf/bold_fit_wf/bold_hmc_wf/mcflirt/sub-ID_task-reward_bold_mcf.nii.gz -reffile /work/fmriprep_24_0_wf/sub_ID_wf/bold_task_reward_wf/bold_fit_wf/hmc_boldref_wf/gen_avg/sub-ID_task-reward_bold_average.nii -mats -plots -rmsabs -rmsrel
Stdout:
Stderr:
Killed
Traceback:
Traceback (most recent call last):
File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/nipype/interfaces/base/core.py", line 453, in aggregate_outputs
setattr(outputs, key, val)
File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/nipype/interfaces/base/traits_extension.py", line 330, in validate
value = super(File, self).validate(objekt, name, value, return_pathlike=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/nipype/interfaces/base/traits_extension.py", line 135, in validate
self.error(objekt, name, str(value))
File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/traits/base_trait_handler.py", line 74, in error
raise TraitError(
traits.trait_errors.TraitError: The 'out_file' trait of a MCFLIRTOutputSpec instance must be a pathlike object or string representing an existing file, but a value of '/work/fmriprep_24_0_wf/sub_ID_wf/bold_task_reward_wf/bold_fit_wf/bold_hmc_wf/mcflirt/sub-ID_task-reward_bold_mcf.nii.gz' <class 'str'> was specified.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/nipype/interfaces/base/core.py", line 400, in run
outputs = self.aggregate_outputs(runtime)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/nipype/interfaces/base/core.py", line 460, in aggregate_outputs
raise FileNotFoundError(msg)
FileNotFoundError: No such file or directory '/work/fmriprep_24_0_wf/sub_ID_wf/bold_task_reward_wf/bold_fit_wf/bold_hmc_wf/mcflirt/sub-ID_task-reward_bold_mcf.nii.gz' for output 'out_file' of a MCFLIRT interface```