nipreps / fmriprep

fMRIPrep is a robust and easy-to-use pipeline for preprocessing of diverse fMRI data. The transparent workflow dispenses of manual intervention, thereby ensuring the reproducibility of the results.
https://fmriprep.org
Apache License 2.0
638 stars 294 forks source link

ERROR: a valid license file is required for FreeSurfer to run. #3104

Closed AnnJingLyu closed 1 year ago

AnnJingLyu commented 1 year ago

What happened?

The code is error. But I couldn't find the same problem in google. So I want to ask for help in here.

What command did you use?

fmriprep-docker /home/lijiayue/fearspace/bids /home/lijiayue/fearspace/output  --participant-label YANGPENG  --output-spaces
MNI152NLin6Asym:res-2  --fs-license-file/home/lijiayue/license.txt

What version of fMRIPrep are you running?

20.2.1

How are you running fMRIPrep?

Docker

Is your data BIDS valid?

Yes

Are you reusing any previously computed results?

Work directory

Please copy and paste any relevant log output.

ERROR: a valid license file is required for FreeSurfer to run. fMRIPrep looked for an existing license file at several paths, in this order: 1) command line argument ``--fs-license-file``; 2) ``$FS_LICENSE`` environment variable; and 3) the ``$FREESURFER_HOME/license.txt`` path. Get it (for free) by registering at https://surfer.nmr.mgh.harvard.edu/registration.html
fMRIPrep: Please report errors to https://github.com/nipreps/fmriprep/issues

Additional information / screenshots

ddc7689a3cfaf807b9d9f3db8a438c7 a6a27b9db34df6f72f930fa0bb4e45b

effigies commented 1 year ago

You're missing a space or equals:

- --fs-license-file/home/lijiayue/license.txt
+ --fs-license-file /home/lijiayue/license.txt
AnnJingLyu commented 1 year ago

您缺少一个空格或等于:

- --fs-license-file/home/lijiayue/license.txt
+ --fs-license-file /home/lijiayue/license.txt

Thank you for your answer. I plus the spacing. But it still same error.

effigies commented 1 year ago

Try:

fmriprep-docker /home/lijiayue/fearspace/bids /home/lijiayue/fearspace/output --participant-label YANGPENG --output-spaces MNI152NLin6Asym:res-2 --fs-license-file /home/lijiayue/license.txt
AnnJingLyu commented 1 year ago

尝试:

fmriprep-docker /home/lijiayue/fearspace/bids /home/lijiayue/fearspace/output --participant-label YANGPENG --output-spaces MNI152NLin6Asym:res-2 --fs-license-file /home/lijiayue/license.txt

I'm so sorry. I busied in other projects this week. I try again in your way, and it's running. I can't thank you enough for your help.