Hi Liz, Can you try adding a `-B <path to freesurfer license.txt>` to the `singularity run` command?
-Paul ________________________________________ From: freesurfer-boun...@nmr.mgh.harvard.edu <freesurfer-boun...@nmr.mgh.harvard.edu> on behalf of Ayoub, Lizbeth <lay...@mgh.harvard.edu> Sent: Monday, June 3, 2024 2:53 PM To: Freesurfer support list Subject: Re: [Freesurfer] Freesurfer license Thank you Paul, I am using fmriprep-32.1.4.simg, and built it using this command: singularity build ./fmriprep-23.1.4.simg docker://nipreps/fmriprep:23.1.4 I use this command to run fMRIprep: singularity run --nv --cleanenv -B <bids directory> -B <path to fmriprep_temp folder> -B <path to scratch folder> -B <path to cache folder> <path to fmriprep-23.1.4.simg> -w <path to fmriprep_temp folder> --output-spaces {MNI152NLin2009cAsym:res-1,T1w:res-1} --ignore slicetiming --fs-license-file <path to freesurfer license.txt> <bids directory> <output directory> participant --participant_label <subj> --skip-bids-validation The only error I am getting is for the freesurfer license file location: --fs-license-file <path to freesurfer license.txt> 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 thank you!! L ________________________________ From: freesurfer-boun...@nmr.mgh.harvard.edu <freesurfer-boun...@nmr.mgh.harvard.edu> on behalf of Wighton, Paul <pwigh...@mgh.harvard.edu> Sent: Monday, June 3, 2024 12:33 PM To: Freesurfer support list <freesurfer@nmr.mgh.harvard.edu> Subject: Re: [Freesurfer] Freesurfer license Hi Liz, What fmriprep container are you using and what are the full commands that are not working? Are you bind-mounting the freesurfer license file into the container via `singularity exec --bind`? -Paul ________________________________________ From: freesurfer-boun...@nmr.mgh.harvard.edu <freesurfer-boun...@nmr.mgh.harvard.edu> on behalf of Ayoub, Lizbeth <lay...@mgh.harvard.edu> Sent: Monday, June 3, 2024 11:48 AM To: freesurfer@nmr.mgh.harvard.edu Subject: [Freesurfer] Freesurfer license Hi, I am using singularity to run fmriprep, and it seems that it is not recognizing the location of my freesurfer license ( it is a new license). I have tried all three options for location, and none work: 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 I appreciate any insights on how to fix this error :) Thank you so much, Liz _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline <https://www.massgeneralbrigham.org/complianceline> . Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.