Hello - I have run one subject through fmriprep 1.5.0 multiple times, all of which have failed. What is odd is that the errors I’ve received are inconsistent to some extent. That is, the specific types or classes of errors are consistent but the runs in which the errors appear are (somewhat) inconsistent. There are many errors, not just one or two.
There are two types of errors that I receive:
-
FileNotFoundError: [Errno 2] No such file or directory: 'result_merger.pklz'
orresult_transforms.pklz
AttributeError: 'NoneType' object has no attribute 'outputs'
Errors for one round of fmriprepping:
Errors
Node Name: fmriprep_wf.single_subject_M16_wf.func_preproc_ses_wordclouds01_task_wordclouds_rec_prospective_run_01_wf.bold_confounds_wf.add_motion_headers
Node Name: fmriprep_wf.single_subject_M16_wf.func_preproc_ses_sentences01_task_sentences_rec_prospective_run_03_wf.func_derivatives_wf.ds_bold_native_ref
Node Name: fmriprep_wf.single_subject_M16_wf.func_preproc_ses_wordclouds01_task_wordclouds_rec_prospective_run_10_wf.bold_reg_wf.bbreg_wf.lta_ras2ras
Node Name: fmriprep_wf.single_subject_M16_wf.func_preproc_ses_wordclouds01_task_wordclouds_rec_prospective_run_03_wf.bold_t1_trans_wf.merge_xforms
Node Name: fmriprep_wf.single_subject_M16_wf.func_preproc_ses_pictures01_task_pictures_rec_prospective_run_05_wf.bold_reg_wf.bbreg_wf.lta_ras2ras
Node Name: fmriprep_wf.single_subject_M16_wf.func_preproc_ses_sentences01_task_sentences_rec_prospective_run_05_wf.bold_t1_trans_wf.bold_reference_wf.enhance_and_skullstrip_bold_wf.check_hdr
Node Name: fmriprep_wf.single_subject_M16_wf.func_preproc_ses_sentences01_task_sentences_rec_prospective_run_06_wf.func_derivatives_wf.ds_bold_t1_ref
Node Name: fmriprep_wf.single_subject_M16_wf.func_preproc_ses_sentences01_task_sentences_rec_prospective_run_04_wf.bold_t1_trans_wf.bold_reference_wf.calc_dummy_scans
Node Name: fmriprep_wf.single_subject_M16_wf.func_preproc_ses_pictures01_task_pictures_rec_prospective_run_04_wf.bold_t1_trans_wf.bold_reference_wf.enhance_and_skullstrip_bold_wf.check_hdr
Errors for another round of fmriprepping:
Errors
Node Name: fmriprep_wf.single_subject_M16_wf.func_preproc_ses_wordclouds01_task_wordclouds_rec_prospective_run_10_wf.bold_reg_wf.bbreg_wf.lta_ras2ras
Node Name: fmriprep_wf.single_subject_M16_wf.func_preproc_ses_wordclouds01_task_wordclouds_rec_prospective_run_06_wf.bold_reg_wf.bbreg_wf.lta_ras2ras
Node Name: fmriprep_wf.single_subject_M16_wf.func_preproc_ses_wordclouds01_task_wordclouds_rec_prospective_run_02_wf.func_derivatives_wf.ds_bold_aseg_t1
Node Name: fmriprep_wf.single_subject_M16_wf.func_preproc_ses_pictures01_task_pictures_rec_prospective_run_03_wf.bold_reg_wf.bbreg_wf.lta_ras2ras
Node Name: fmriprep_wf.single_subject_M16_wf.func_preproc_ses_wordclouds01_task_wordclouds_rec_prospective_run_01_wf.bold_t1_trans_wf.bold_reference_wf.calc_dummy_scans
Node Name: fmriprep_wf.single_subject_M16_wf.func_preproc_ses_sentences01_task_sentences_rec_prospective_run_03_wf.bold_surf_wf.update_metadata
Node Name: fmriprep_wf.single_subject_M16_wf.func_preproc_ses_pictures01_task_pictures_rec_prospective_run_04_wf.bold_surf_wf.update_metadata
Node Name: fmriprep_wf.single_subject_M16_wf.func_preproc_ses_wordclouds01_task_wordclouds_rec_prospective_run_09_wf.func_derivatives_wf.ds_bold_aparc_std
Here are the crash logs of two sample errors:
Node: fmriprep_wf.single_subject_M16_wf.func_preproc_ses_wordclouds01_task_wordclouds_rec_prospective_run_10_wf.bold_reg_wf.bbreg_wf.lta_ras2ras
Working directory: /scratch/dmoracze/KRNS/wrk/fmriprep_wf/single_subject_M16_wf/func_preproc_ses_wordclouds01_task_wordclouds_rec_prospective_run_10_wf/bold_reg_wf/bbreg_wf/lta_ras2ras
Node inputs:
args = <undefined>
environ = {}
in_fsl = <undefined>
in_itk = <undefined>
in_lta = <undefined>
in_mni = <undefined>
in_niftyreg = <undefined>
in_reg = <undefined>
invert = <undefined>
ltavox2vox = <undefined>
out_fsl = <undefined>
out_itk = <undefined>
out_lta = True
out_mni = <undefined>
out_reg = <undefined>
source_file = <undefined>
target_conform = <undefined>
target_file = <undefined>
Traceback (most recent call last):
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/plugins/multiproc.py", line 269, in _send_procs_to_workers
num_subnodes = self.procs[jobid].num_subnodes()
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 1204, in num_subnodes
self._get_inputs()
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 1219, in _get_inputs
super(MapNode, self)._get_inputs()
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 521, in _get_inputs
outputs = _load_resultfile(results_file)[0].outputs
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/utils.py", line 300, in load_resultfile
result = loadpkl(results_file)
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/utils/filemanip.py", line 687, in loadpkl
pkl_file = pklopen(infile.name, 'rb')
File "/usr/local/miniconda/lib/python3.7/gzip.py", line 53, in open
binary_file = GzipFile(filename, gz_mode, compresslevel)
File "/usr/local/miniconda/lib/python3.7/gzip.py", line 163, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'result_transforms.pklz'
Node: fmriprep_wf.single_subject_M16_wf.func_preproc_ses_wordclouds01_task_wordclouds_rec_prospective_run_02_wf.func_derivatives_wf.ds_bold_aseg_t1
Working directory: /scratch/dmoracze/KRNS/wrk/fmriprep_wf/single_subject_M16_wf/func_preproc_ses_wordclouds01_task_wordclouds_rec_prospective_run_02_wf/func_derivatives_wf/ds_bold_aseg_t1
Node inputs:
base_directory = /scratch/dmoracze/KRNS/out
check_hdr = True
compress = <undefined>
desc = aseg
extra_values = <undefined>
in_file = <undefined>
keep_dtype = False
meta_dict = <undefined>
source_file = /scratch/dmoracze/KRNS/rawdata/sub-M16/ses-wordclouds01/func/sub-M16_ses-wordclouds01_task-wordclouds_rec-prospective_run-02_bold.nii.gz
space = T1w
suffix = dseg
Traceback (most recent call last):
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/plugins/multiproc.py", line 316, in _send_procs_to_workers
self.procs[jobid].run(updatehash=updatehash)
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 411, in run
cached, updated = self.is_cached()
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 297, in is_cached
hashed_inputs, hashvalue = self._get_hashval()
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 494, in _get_hashval
self._get_inputs()
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 521, in _get_inputs
outputs = _load_resultfile(results_file)[0].outputs
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/utils.py", line 311, in load_resultfile
if resolve and result.outputs:
AttributeError: 'NoneType' object has no attribute 'outputs'
There are many other errors such as this, but they fall into the same classes as the above. Please let me know if you’d like to see the other errors. I have also uploaded the stderr, which is pretty extensive:
KRNS_37795518_0.e.txt (61.7 KB)
Here are the environment preparation and fmriprep commands I am using. The evironment prep and fmriprep commands are given to slurm as one line, I just made it easier to parse by adding returns here.
export TMPDIR=/scratch/dmoracze/data &&
export SINGULARITY_BINDPATH=/gs3,/gs4,/gs5,/gs6,/gs7,/gs8,/gs9,/gs10,/gs11,/spin1,/scratch,/fdb,/data,/lscratch &&
export SINGULARITYENV_TEMPLATEFLOW_HOME=/home/fmriprep/.cache/templateflow &&
mkdir -p $TMPDIR/out &&
mkdir -p $TMPDIR/wrk &&
singularity run --cleanenv
-B /data/DSST/containers/TemplateFlow:/home/fmriprep/.cache/templateflow
-B /home/dmoracze/.cache/fmriprep:/home/fmriprep/.cache/fmriprep
/data/DSST/containers/fmriprep_1.5.0_DN.simg
/scratch/dmoracze/data/rawdata $TMPDIR/out
participant --participant_label sub-M16
-w $TMPDIR/wrk
--nthreads $SLURM_CPUS_PER_TASK
--mem_mb $SLURM_MEM_PER_NODE
--fs-license-file /home/dmoracze/license.txt
--output-spaces T1w func fsaverage6 MNI152NLin6Asym
--longitudinal --use-aroma --error-on-aroma-warnings