Hi everyone,
I’m new to fmriprep which I’m trying to run using a singularity image. Unfortunately, I get the following error:
File "/usr/local/miniconda/lib/python3.7/site-packages/niworkflows/utils/bids.py", line 181, in collect_data
subj_data.update({"bold": ses_uids})
UnboundLocalError: local variable 'ses_uids' referenced before assignment
Here’s my call:
unset PYTHONPATH; singularity run --cleanenv -B /data:/data /data/pt_01902/Scripts/Singularity/fmriprep-1.2.6.simg /data/pt_01902/Data/BIDS/sourcedata/ /data/pt_01902/Data/BIDS/derivatives/fmriprep/ participant --participant-label 01 --fs-no-reconall --fs-license-file /data/pt_01902/Scripts/FreeSurfer/license.txt -w /data/pt_01902/Data/BIDS/derivatives/fmriprep/temp
And the full report:
Making sure the input data is BIDS compliant (warnings can be ignored in most cases).
This dataset appears to be BIDS compatible.
Summary: Available Tasks: Available Modalities:
1239 Files, 167.27GB AudLoc T1w
41 - Subjects FJT bold
1 - Session LDT fieldmap
MotLoc
If you have any questions please post on https://neurostars.org/tags/bids
/usr/local/miniconda/lib/python3.7/importlib/_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
return f(*args, **kwds)
/usr/local/miniconda/lib/python3.7/importlib/_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
return f(*args, **kwds)
/usr/local/miniconda/lib/python3.7/importlib/_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
return f(*args, **kwds)
/usr/local/miniconda/lib/python3.7/site-packages/nilearn/datasets/neurovault.py:16: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import Container
/usr/local/miniconda/lib/python3.7/site-packages/skimage/__init__.py:80: ResourceWarning: unclosed file <_io.TextIOWrapper name='/usr/local/miniconda/lib/python3.7/site-packages/pytest.py' mode='r' encoding='utf-8'>
imp.find_module('pytest')
/usr/local/miniconda/lib/python3.7/importlib/_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
return f(*args, **kwds)
190119-00:13:02,860 nipype.workflow IMPORTANT:
Running fMRIPREP version 1.2.6:
* BIDS dataset path: /data/pt_01902/Data/BIDS/sourcedata.
* Participant list: ['01'].
* Run identifier: 20190119-001302_9f9afef5-0937-4934-b78c-91e1c7063117.
/usr/local/miniconda/lib/python3.7/site-packages/networkx/classes/reportviews.py:95: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import Mapping, Set, Iterable
/usr/local/miniconda/lib/python3.7/site-packages/bids/layout/bids_layout.py:121: ResourceWarning: unclosed file <_io.TextIOWrapper name='/data/pt_01902/Data/BIDS/sourcedata/dataset_description.json' mode='r' encoding='UTF-8'>
self.description = json.load(open(target, 'r'))
/usr/local/miniconda/lib/python3.7/site-packages/grabbit/core.py:436: ResourceWarning: unclosed file <_io.TextIOWrapper name='/usr/local/miniconda/lib/python3.7/site-packages/bids/layout/config/bids.json' mode='r' encoding='UTF-8'>
domain = json.load(open(domain, 'r'))
Process Process-2:
Traceback (most recent call last):
File "/usr/local/miniconda/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/usr/local/miniconda/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/cli/run.py", line 740, in build_workflow
ignore_aroma_err=opts.ignore_aroma_denoising_errors,
File "/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/workflows/base.py", line 217, in init_fmriprep_wf
ignore_aroma_err=ignore_aroma_err,
File "/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/workflows/base.py", line 383, in init_single_subject_wf
subject_data, layout = collect_data(bids_dir, subject_id, task_id, echo_idx)
File "/usr/local/miniconda/lib/python3.7/site-packages/niworkflows/utils/bids.py", line 181, in collect_data
subj_data.update({"bold": ses_uids})
UnboundLocalError: local variable 'ses_uids' referenced before assignment
Any ideas? Thanks a lot in advance!
All the best,
Phil