fmriprep: FileNotFoundError: No such file or directory [...] for output 'nonaggr_denoised_file' of a ICA_AROMARPT interface

What happened?

fmriprep failed with traceback:

[...]
    f"Exception raised while executing Node {self.name}.\n\n{result.runtime.traceback}"
nipype.pipeline.engine.nodes.NodeExecutionError: Exception raised while executing Node ica_aroma.

[...]

traits.trait_errors.TraitError: The 'nonaggr_denoised_file' trait of a _ICA_AROMAOutputSpecRPT instance must be a pathlike object or string representing an existing file, but a value of '/data/fmriprep-workdir/rcabanban/fmriprep_wf/single_subject_TAU051_wf/func_preproc_task_gonogo_wf/ica_aroma_wf/ica_aroma/out/denoised_func_data_nonaggr.nii.gz' <class 'str'> was specified.

[...]
FileNotFoundError: No such file or directory '/data/fmriprep-workdir/rcabanban/fmriprep_wf/single_subject_TAU051_wf/func_preproc_task_gonogo_wf/ica_aroma_wf/ica_aroma/out/denoised_func_data_nonaggr.nii.gz' for output 'nonaggr_denoised_file' of a ICA_AROMARPT interface


211103-19:32:47,836 cli ERROR:
         Preprocessing did not finish successfully. Errors occurred while processing data from participants: TAU051 (1). Check the HTML reports for details.

What command did you use?

/data/rcabanban/E20967678 \
    /data/rcabanban/E20967678/derivatives \
    participant \
    --fs-license-file /cm/shared/freesurfer-6.0.1/license.txt \
    --participant_label TAU051 \
    --output-spaces MNI152NLin2009cAsym:res-2 anat func fsaverage \
    --n_cpus 4 \
    --mem-mb 8192 \
    --notrack \
    --use-aroma \
    --use-syn-sdc \
    --fs-no-reconall \
    -vv \
    -w  /data/fmriprep-workdir/rcabanban

What version of fMRIPrep are you running?

20.2.6

How are you running fMRIPrep?

Singularity

Is your data BIDS valid?

Yes

Are you reusing any previously computed results?

No

Please copy and paste any relevant log output.

***********************************
211103-19:32:35,475 nipype.workflow CRITICAL:
         fMRIPrep failed: Traceback (most recent call last):
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/plugins/multiproc.py", line 67, in run_node
    result["result"] = node.run(updatehash=updatehash)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 521, in run
    result = self._run_interface(execute=True)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 639, in _run_interface
    return self._run_command(execute)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 751, in _run_command
    f"Exception raised while executing Node {self.name}.\n\n{result.runtime.traceback}"
nipype.pipeline.engine.nodes.NodeExecutionError: Exception raised while executing Node ica_aroma.

Traceback (most recent call last):
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/base/core.py", line 454, in aggregate_outputs
    setattr(outputs, key, val)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/base/traits_extension.py", line 330, in validate
    value = super(File, self).validate(objekt, name, value, return_pathlike=True)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/base/traits_extension.py", line 135, in validate
    self.error(objekt, name, str(value))
  File "/usr/local/miniconda/lib/python3.7/site-packages/traits/trait_handlers.py", line 172, in error
    value )
traits.trait_errors.TraitError: The 'nonaggr_denoised_file' trait of a _ICA_AROMAOutputSpecRPT instance must be a pathlike object or string representing an existing file, but a value of '/data/fmriprep-workdir/rcabanban/fmriprep_wf/single_subject_TAU051_wf/func_preproc_task_gonogo_wf/ica_aroma_wf/ica_aroma/out/denoised_func_data_nonaggr.nii.gz' <class 'str'> was specified.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/base/core.py", line 399, in run
    runtime = self._post_run_hook(runtime)
  File "/usr/local/miniconda/lib/python3.7/site-packages/niworkflows/interfaces/segmentation.py", line 211, in _post_run_hook
    outputs = self.aggregate_outputs(runtime=runtime)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/base/core.py", line 461, in aggregate_outputs
    raise FileNotFoundError(msg)
FileNotFoundError: No such file or directory '/data/fmriprep-workdir/rcabanban/fmriprep_wf/single_subject_TAU051_wf/func_preproc_task_gonogo_wf/ica_aroma_wf/ica_aroma/out/denoised_func_data_nonaggr.nii.gz' for output 'nonaggr_denoised_file' of a ICA_AROMARPT interface


211103-19:32:47,836 cli ERROR:
         Preprocessing did not finish successfully. Errors occurred while processing data from participants: TAU051 (1). Check the HTML reports for details.

Additional information / screenshots

Re “Is your data BIDS valid”, I get:

        1: [ERR] You have to define 'TaskName' for this file. (code: 50 - TASK_NAME_MUST_DEFINE)
                ./sub-TAU051/func/sub-TAU051_task-faces_bold.nii.gz
                ./sub-TAU051/func/sub-TAU051_task-gonogo_bold.nii.gz
                ./sub-TAU051/func/sub-TAU051_task-rest_bold.nii.gz
                ./sub-TAU051/func/sub-TAU051_task-trait_run-1_bold.nii.gz
                ./sub-TAU051/func/sub-TAU051_task-trait_run-2_bold.nii.gz

but we always get that, and it’s never been a problem for any other dataset.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 48 (23 by maintainers)

Most upvoted comments

Ah too bad. Maybe I can try to increase the memory, if I end up managing to run ICA-AROMA I will report back.

Thank you for all your help!

Ah, apologies, I see you’re running 20.2.6. I based that image off of the development branch, which includes a lot of changes for 21.0.0. Let me re-base it on the 20.2.x maintenance branch…

When this workflow is complete, you should be able to build off of docker://nipreps/fmriprep:aromalowmem.

Yep, it worked fine on retry, sorry for the false alarm!