Fmriprep: error: argument --fs-license-file: expected one argument

Hi everyone,

I’m running fmriprep on a Linux subsystem in Windows.
However, I keep getting a freeserver license error (fmriprep: error: argument --fs-license-file: expected one argument).

This is what I type in:
docker run -it --rm -v /mnt/c/Users/Gebruiker/Desktop/testBIDS:/data:ro -v /mnt/c/Users/Gebruiker/Desktop/testPrep:/out nipreps/fmriprep:20.2.0 /data /out participant --participant_label p1478 --ignore fieldmaps --fs-license-file -v /mnt/c/Users/Gebruiker/Desktop/FreeSurferReg/license.txt

I hope you are able to help me. Thanks so much.

The path to the txt file should precede the -v.

Dear Steven, thanks for your response.
Unfortunately, when I put -v after the path, it says the path does not exist. Is there perhaps another solution?

You need to bind the drive containing the license to Docker. Similar to how you bind the BIDS directory at first.

Dear Steven,

I got it working by putting -v pathToLicense:/opt/freesurfer/license.txt before the niprep term.

Thanks again for your help, I appreciate it!

Best

Hans

1 Like