Node: fmriprep_23_0_wf.single_subject_25_wf.func_preproc_ses_01_task_moraljudgment_run_06_wf.initial_boldref_wf.enhance_and_skullstrip_bold_wf.n4_correct Working directory: /gpfs/milgram/scratch60/chang/mc2835/GMJ/GMJ_Preprocessing/fmriprep_workdir/fmriprep_23_0_wf/single_subject_25_wf/func_preproc_ses_01_task_moraljudgment_run_06_wf/initial_boldref_wf/enhance_and_skullstrip_bold_wf/n4_correct Node inputs: args = bias_image = bspline_fitting_distance = 200.0 bspline_order = convergence_threshold = copy_header = True dimension = 3 environ = {'NSLOTS': '1'} histogram_sharpening = input_image = /gpfs/milgram/scratch60/chang/mc2835/GMJ/GMJ_Preprocessing/fmriprep_workdir/fmriprep_23_0_wf/single_subject_25_wf/func_preproc_ses_01_task_moraljudgment_run_06_wf/initial_boldref_wf/gen_avg/sub-25_ses-01_task-moraljudgment_run-06_bold_average.nii mask_image = n_iterations = num_threads = 1 output_image = rescale_intensities = True save_bias = False shrink_factor = weight_image = /gpfs/milgram/scratch60/chang/mc2835/GMJ/GMJ_Preprocessing/fmriprep_workdir/fmriprep_23_0_wf/single_subject_25_wf/func_preproc_ses_01_task_moraljudgment_run_06_wf/initial_boldref_wf/enhance_and_skullstrip_bold_wf/check_hdr/tpl-MNI152NLin2009cAsym_res-01_label-brain_probseg_trans_hdr.nii.gz Traceback (most recent call last): File "/opt/conda/lib/python3.9/site-packages/nipype/pipeline/plugins/multiproc.py", line 67, in run_node result["result"] = node.run(updatehash=updatehash) File "/opt/conda/lib/python3.9/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run result = self._run_interface(execute=True) File "/opt/conda/lib/python3.9/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface return self._run_command(execute) File "/opt/conda/lib/python3.9/site-packages/nipype/pipeline/engine/nodes.py", line 771, in _run_command raise NodeExecutionError(msg) nipype.pipeline.engine.nodes.NodeExecutionError: Exception raised while executing Node n4_correct. Cmdline: N4BiasFieldCorrection --bspline-fitting [ 200 ] -d 3 --input-image /gpfs/milgram/scratch60/chang/mc2835/GMJ/GMJ_Preprocessing/fmriprep_workdir/fmriprep_23_0_wf/single_subject_25_wf/func_preproc_ses_01_task_moraljudgment_run_06_wf/initial_boldref_wf/gen_avg/sub-25_ses-01_task-moraljudgment_run-06_bold_average.nii --output sub-25_ses-01_task-moraljudgment_run-06_bold_average_corrected.nii -r --weight-image /gpfs/milgram/scratch60/chang/mc2835/GMJ/GMJ_Preprocessing/fmriprep_workdir/fmriprep_23_0_wf/single_subject_25_wf/func_preproc_ses_01_task_moraljudgment_run_06_wf/initial_boldref_wf/enhance_and_skullstrip_bold_wf/check_hdr/tpl-MNI152NLin2009cAsym_res-01_label-brain_probseg_trans_hdr.nii.gz Stdout: Stderr: Traceback: Traceback (most recent call last): File "/opt/conda/lib/python3.9/site-packages/nipype/interfaces/base/core.py", line 453, in aggregate_outputs setattr(outputs, key, val) File "/opt/conda/lib/python3.9/site-packages/nipype/interfaces/base/traits_extension.py", line 330, in validate value = super(File, self).validate(objekt, name, value, return_pathlike=True) File "/opt/conda/lib/python3.9/site-packages/nipype/interfaces/base/traits_extension.py", line 135, in validate self.error(objekt, name, str(value)) File "/opt/conda/lib/python3.9/site-packages/traits/base_trait_handler.py", line 74, in error raise TraitError( traits.trait_errors.TraitError: The 'output_image' trait of a _FixN4BiasFieldCorrectionOutputSpec instance must be a pathlike object or string representing an existing file, but a value of '/gpfs/milgram/scratch60/chang/mc2835/GMJ/GMJ_Preprocessing/fmriprep_workdir/fmriprep_23_0_wf/single_subject_25_wf/func_preproc_ses_01_task_moraljudgment_run_06_wf/initial_boldref_wf/enhance_and_skullstrip_bold_wf/n4_correct/sub-25_ses-01_task-moraljudgment_run-06_bold_average_corrected.nii' was specified. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/conda/lib/python3.9/site-packages/nipype/interfaces/base/core.py", line 398, in run runtime = self._post_run_hook(runtime) File "/opt/conda/lib/python3.9/site-packages/nipype/interfaces/mixins/fixheader.py", line 127, in _post_run_hook outputs = self.aggregate_outputs(runtime=runtime).get_traitsfree() File "/opt/conda/lib/python3.9/site-packages/nipype/interfaces/base/core.py", line 460, in aggregate_outputs raise FileNotFoundError(msg) FileNotFoundError: No such file or directory '/gpfs/milgram/scratch60/chang/mc2835/GMJ/GMJ_Preprocessing/fmriprep_workdir/fmriprep_23_0_wf/single_subject_25_wf/func_preproc_ses_01_task_moraljudgment_run_06_wf/initial_boldref_wf/enhance_and_skullstrip_bold_wf/n4_correct/sub-25_ses-01_task-moraljudgment_run-06_bold_average_corrected.nii' for output 'output_image' of a FixN4BiasFieldCorrection interface