Skip to content

Recurring "unexpected keyword argument 'skip_file_prefixes'" Error #3478

@jwrobertson86

Description

@jwrobertson86

What happened?

I've been trying to process a longitudinal fMRI dataset for a while now. Most of the issues I've run into have been fixable with more hard drive space but I don't understand how to handle this specific error, because it doesn't seem obviously tied to a lack of computing resources (i.e., drive space or memory).

What command did you use?

fmriprep-docker esmi_fMRI_long/ esmi_fMRI_long/derivatives/ participant -w ~/ext_hdd/temp/ --longitudinal --fs-license-file license.txt
RUNNING: docker run --rm -e DOCKER_VERSION_8395080871=28.1.1+1 -it -v /home/jason/Documents/work/fmri/license.txt:/opt/freesurfer/license.txt:ro -v /home/jason/Documents/work/fmri/esmi_fMRI_long:/data:ro -v /home/jason/Documents/work/fmri/esmi_fMRI_long/derivatives:/out -v /home/jason/ext_hdd/temp:/scratch nipreps/fmriprep:25.1.1 /data /out participant --longitudinal -w /scratch

What version of fMRIPrep are you running?

25.1.1

How are you running fMRIPrep?

Docker

Is your data BIDS valid?

Yes

Are you reusing any previously computed results?

FreeSurfer, Anatomical derivatives, Work directory

Please copy and paste any relevant log output.

[Node] Error on "fmriprep_25_1_wf.sub_ESS38731375X_wf.bold_ses_05_task_rs_wf.carpetplot_wf.conf_plot" (/scratch/fmriprep_25_1_wf/sub_ESS38731375X_wf/bold_ses_05_task_rs_wf/carpetplot_wf/conf_plot)
250704-19:47:15,982 nipype.workflow ERROR:
	 Node conf_plot failed to run on host 149765c001e5.
250704-19:47:15,990 nipype.workflow ERROR:
	 Saving crash info to /out/sub-ESS38731375X/log/20250703-212238_31483d2f-a6eb-4694-b2d9-5715aa688093/crash-20250704-194715-root-conf_plot-b671f62f-b348-4944-9f2f-5fe1b84efb23.txt
Traceback (most recent call last):
  File "/opt/conda/envs/fmriprep/lib/python3.12/site-packages/nipype/pipeline/plugins/multiproc.py", line 67, in run_node
    result["result"] = node.run(updatehash=updatehash)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/fmriprep/lib/python3.12/site-packages/nipype/pipeline/engine/nodes.py", line 525, in run
    result = self._run_interface(execute=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/fmriprep/lib/python3.12/site-packages/nipype/pipeline/engine/nodes.py", line 643, in _run_interface
    return self._run_command(execute)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/fmriprep/lib/python3.12/site-packages/nipype/pipeline/engine/nodes.py", line 769, in _run_command
    raise NodeExecutionError(msg)
nipype.pipeline.engine.nodes.NodeExecutionError: Exception raised while executing Node conf_plot.

Traceback:
	Traceback (most recent call last):
	  File "/opt/conda/envs/fmriprep/lib/python3.12/site-packages/nipype/interfaces/base/core.py", line 401, in run
	    runtime = self._run_interface(runtime)
	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	  File "/opt/conda/envs/fmriprep/lib/python3.12/site-packages/fmriprep/interfaces/confounds.py", line 591, in _run_interface
	    ).plot()
	      ^^^^^^
	  File "/opt/conda/envs/fmriprep/lib/python3.12/site-packages/nireports/reportlets/modality/func.py", line 105, in plot
	    figure = plt.figure(figsize=(19.2, sum(height_ratios)))
	             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	  File "/opt/conda/envs/fmriprep/lib/python3.12/site-packages/matplotlib/pyplot.py", line 1033, in figure
	    _api.warn_external(
	  File "/opt/conda/envs/fmriprep/lib/python3.12/site-packages/matplotlib/_api/__init__.py", line 391, in warn_external
	    warnings.warn(message, category, **kwargs)
	TypeError: _warn() got an unexpected keyword argument 'skip_file_prefixes'

Additional information / screenshots

I'm running this on a Linux laptop (Ubuntu 24.04.2 LTS), 12 cores, 16 GB RAM, partition currently has 57 GB free of 315 GB. There's 45 subjects with 175 total datapoints, of which only one has generated an HTML summary file to date, meaning presumably the other 44 still need one or more sessions to still be preprocessed.

I've been reusing everything I can because I assume that's the most efficient route, but if I can clear out old scratch files etc., that would definitely be useful to know.

Also, this error seems to occur when running many different modules, not just conf_plot specifically. I'd upload those logs as well but GitHub isn't allowing it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions