Summary of what happened:
Hi all,
I’m getting a StopIteration when trying to start fMRIPrep. We have a pipeline for preprocessing that we scripted, and it calls fMRIPrep, and it had been working fine until about a week ago. Nothing has changed - same fmriprep container, this data had been run successfully before, etc…
Command used (and if a helper script was used, a link to the helper script or the command generated):
export OMP_NUM_THREADS=64
export APPTAINERENV_TEMPLATEFLOW_HOME=/opt/templateflow
unset PYTHONPATH; singularity run -e \
--bind </path/to/inputDir>/ \
--bind </path/to/opt/templateflow:/opt/templateflow> \
--bind </path/to/workflowDir> \
</path/to/container/${fmriprepversion}.sif> \
</path/to/inputDir> <path/to/outputDir> participant \
--participant-label sub-${participantid} \
-w </path/to/workflowDir> \
--fs-license-file </path/to/license.txt> \
-v \
--skip_bids_validation \
--bids-filter-file </path/to/filterfiles.json> \
--stop-on-first-crash \
--mem-mb 190000 --nthreads ${OMP_NUM_THREADS} \
--output-spaces MNI152NLin2009cAsym:res-2 MNI152NLin2009cAsym
Version:
fmriprepv23.2.0
Environment (Docker, Singularity / Apptainer, custom installation):
Using Apptainer
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):
Traceback (most recent call last):
File "/opt/conda/envs/fmriprep/bin/fmriprep", line 8, in <module>
sys.exit(main())
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/fmriprep/cli/run.py", line 40, in main
parse_args()
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/fmriprep/cli/parser.py", line 802, in parse_args
config.from_dict({})
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/fmriprep/config.py", line 691, in from_dict
execution.load(settings, init=initialize('execution'), ignore=ignore)
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/fmriprep/config.py", line 235, in load
cls.init()
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/fmriprep/config.py", line 485, in init
cls._layout = BIDSLayout(
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/bids/layout/layout.py", line 177, in __init__
_indexer(self)
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/bids/layout/index.py", line 147, in __call__
all_bfs, all_tag_dicts = self._index_dir(self._layout._root, self._config)
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/bids/layout/index.py", line 232, in _index_dir
dir_bfs, dir_tag_dicts = self._index_dir(d, config, force=force)
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/bids/layout/index.py", line 232, in _index_dir
dir_bfs, dir_tag_dicts = self._index_dir(d, config, force=force)
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/bids/layout/index.py", line 206, in _index_dir
_, dirnames, filenames = next(os.walk(path))
StopIteration
Thanks for any help!
Wade