Summary of what happened:
I just made a long awaited upgrade from 1.4.1 to the current version (25.2.5) and of course ran into trouble. I tried to run a job that was successfully run with 1.4.1 (same BIDS dataset, same server) but with the new version I keep getting a TraitError about the “input_image” trait (see below). I guess it can’t find some images but I don’t know which one and why. I have cleared the ‘‘work” folder as well.
Any tips will be appreciated! Thank you in advance!
Command used (and if a helper script was used, a link to the helper script or the command generated):
fmriprep \
../bids_datasets \
../output_fmriprep25.2.5_test \
participant \
-v \
--output-spaces MNI152NLin2009cAsym:res-2 \
-w ../bids_datasets/work/ \
--nprocs 4 \
--fs-no-reconall \
--fs-license-file ./license.txt \
--mem 128000 \
--participant-label ARE
Version:
25.2.5
Environment (Docker, Singularity / Apptainer, custom installation):
Singularity
Data formatted according to a validatable standard? Please provide the output of the validator:
1: [WARN] You should define ‘SliceTiming’ for this file. If you don’t provide this information slice time correction will not be possible. ‘Slice Timing’ is the time at which each slice was acquired within each volume (frame) of the acquisition. Slice timing is not slice order – rather, it is a list of times containing the time (in seconds) of each slice acquisition in relation to the beginning of volume acquisition. (code: 13 - SLICE_TIMING_NOT_DEFINED)
./sub-ARE/ses-01/func/sub-ARE_ses-01_task-rest_acq-TR2500_run-1_bold.nii.gz
Please visit https://neurostars.org/search?q=SLICE_TIMING_NOT_DEFINED for existing conversations about this issue.
2: [WARN] The recommended file /README is missing. See Section 03 (Modality agnostic files) of the BIDS specification. (code: 101 - README_FILE_MISSING)
Please visit https://neurostars.org/search?q=README_FILE_MISSING for existing conversations about this issue.
3: [WARN] The Authors field of dataset_description.json should contain an array of fields - with one author per field. This was triggered based on the presence of only one author field. Please ignore if all contributors are already properly listed. (code: 102 - TOO_FEW_AUTHORS)
Please visit https://neurostars.org/search?q=TOO_FEW_AUTHORS for existing conversations about this issue.
Summary: Available Tasks: Available Modalities:
85 Files, 1.57GB rest MRI
21 - Subjects
1 - Session
If you have any questions, please post on https://neurostars.org/tags/bids .
Relevant log outputs (up to 20 lines):
PASTE LOG OUTPUT HERE
260512-10:19:52,785 nipype.workflow IMPORTANT:
Building fMRIPrep's workflow:
* BIDS dataset path: /scratch4/brapp1/WORDLLI/scripts/../bids_datasets_old/a1/nifti.
* Participants and sessions: sub-ARE ses-01.
* Run identifier: 20260512-101934_a4235daa-7a1f-4b9c-bfcd-c4b77f18f293.
* Output spaces: MNI152NLin2009cAsym:res-2.
* Pre-run FreeSurfer's SUBJECTS_DIR: /scratch4/brapp1/WORDLLI/scripts/../output_fmriprep25.2.5_test/sourcedata/freesurfer.
260512-10:19:53,762 nipype.workflow INFO:
ANAT Stage 1: Adding template workflow
260512-10:19:54,132 nipype.workflow INFO:
ANAT Stage 2: Preparing brain extraction workflow
260512-10:19:54,216 nipype.workflow INFO:
ANAT Stage 3: Preparing segmentation workflow
260512-10:19:54,219 nipype.workflow INFO:
ANAT Stage 4: Preparing normalization workflow for ['MNI152NLin2009cAsym']
260512-10:19:54,227 nipype.workflow INFO:
ANAT Skipping Stages 5+
260512-10:19:54,474 nipype.workflow INFO:
No single-band-reference found for sub-ARE_ses-01_task-rest_acq-TR2500_run-1_bold.nii.gz.
260512-10:19:54,536 nipype.workflow INFO:
Stage 1: Adding HMC boldref workflow
260512-10:19:54,544 nipype.workflow INFO:
Stage 2: Adding motion correction workflow
260512-10:19:54,550 nipype.workflow INFO:
No fieldmap correction - skipping Stage 3
260512-10:19:54,550 nipype.workflow INFO:
Stage 4: Adding coregistration boldref workflow
Process Process-2:
Traceback (most recent call last):
File "/app/.pixi/envs/fmriprep/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/app/.pixi/envs/fmriprep/lib/python3.12/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/app/.pixi/envs/fmriprep/lib/python3.12/site-packages/fmriprep/cli/workflow.py", line 116, in build_workflow
retval['workflow'] = init_fmriprep_wf()
^^^^^^^^^^^^^^^^^^
File "/app/.pixi/envs/fmriprep/lib/python3.12/site-packages/fmriprep/workflows/base.py", line 108, in init_fmriprep_wf
single_subject_wf = init_single_subject_wf(subject_id, sessions, name=wf_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.pixi/envs/fmriprep/lib/python3.12/site-packages/fmriprep/workflows/base.py", line 875, in init_single_subject_wf
bold_wf = init_bold_wf(
^^^^^^^^^^^^^
File "/app/.pixi/envs/fmriprep/lib/python3.12/site-packages/fmriprep/workflows/bold/base.py", line 248, in init_bold_wf
bold_fit_wf = init_bold_fit_wf(
^^^^^^^^^^^^^^^^^
File "/app/.pixi/envs/fmriprep/lib/python3.12/site-packages/fmriprep/workflows/bold/fit.py", line 561, in init_bold_fit_wf
enhance_boldref_wf = init_enhance_and_skullstrip_bold_wf(omp_nthreads=omp_nthreads)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.pixi/envs/fmriprep/lib/python3.12/site-packages/niworkflows/func/util.py", line 453, in init_enhance_and_skullstrip_bold_wf
ApplyTransforms(
File "/app/.pixi/envs/fmriprep/lib/python3.12/site-packages/nipype/interfaces/ants/base.py", line 76, in __init__
super().__init__(**inputs)
File "/app/.pixi/envs/fmriprep/lib/python3.12/site-packages/nipype/interfaces/base/core.py", line 633, in __init__
super().__init__(**inputs)
File "/app/.pixi/envs/fmriprep/lib/python3.12/site-packages/nipype/interfaces/base/core.py", line 204, in __init__
self.inputs.trait_set(**inputs)
File "/app/.pixi/envs/fmriprep/lib/python3.12/site-packages/traits/has_traits.py", line 1458, in trait_set
setattr(self, name, value)
File "/app/.pixi/envs/fmriprep/lib/python3.12/site-packages/nipype/interfaces/base/traits_extension.py", line 325, in validate
value = super().validate(objekt, name, value, return_pathlike=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.pixi/envs/fmriprep/lib/python3.12/site-packages/nipype/interfaces/base/traits_extension.py", line 135, in validate
self.error(objekt, name, str(value))
File "/app/.pixi/envs/fmriprep/lib/python3.12/site-packages/traits/base_trait_handler.py", line 74, in error
raise TraitError(
traits.trait_errors.TraitError: The 'input_image' trait of a _FixTraitApplyTransformsInputSpec instance must be a pathlike object or string representing an existing file, but a value of '[]' <class 'str'> was specified.