I am trying to download and install FSL but I am having some difficulties. Once I have downloaded, the fslinstaller.py, I execute the code:
cd ~/Downloads
python fslinstaller.py
The message I obtain is the following one:
FSL 6.0.7.6 selected for installation
**Where do you want to install FSL?**
Press enter to install to the default location [/Users/joancarrerasdz/fsl]
**FSL installation directory [/Users/joancarrerasdz/fsl]:**
Downloading FSL environment specification from https://fsl.fmrib.ox.ac.uk/fsldownloads/fslconda/releases/fsl-6.0.7.6_macos-64.yml...
**Installing FSL in /Users/joancarrerasdz/fsl**
Downloading miniconda from https://github.com/conda-forge/miniforge/releases/download/23.1.0-3/Mambaforge-23.1.0-3-MacOSX-x86_64.sh...
[#############################################################] 59.6 / 59.6 MB /
Installing miniconda at /Users/joancarrerasdz/fsl...
[################################################################] 100 / 100 % -
Installing FSL into /Users/joancarrerasdz/fsl...
[################################################################] 100 / 100 % \
**ERROR occurred during installation!**
This command returned an error: /Users/joancarrerasdz/fsl/bin/mamba env update -n base -f /private/var/folders/v3/6cj35d497rj1hq0k0rjpfmj40000gn/T/tmpxv8cvnlb/fsl-6.0.7.6_macos-64.yml
Removing failed installation directory /Users/joancarrerasdz/fsl
**FSL installation failed!**
**Please check the log file - it may contain some more information to help you diagnose the problem: /Users/joancarrerasdz/fsl_installation_20231221175704.log**
Yes, of course, I believe you are talking about this file. I have uploaded in .txt because I couldn’t do it using .log fsl_installation_20231221175704.txt (836.3 KB)
This looks like some sort of issue with mamba, the package manager. Could you try re-running the installer with the --conda option, which will cause it to use conda instead of mamba? e.g.:
python fslinstaller.py --conda
P.S. @Steven I suspect that the other issue is simply due to the installation taking longer than people expect as, despite it being reported numerous times, nobody has actually provided me with any further information (the few people who did provide me with a log file were affected by other issues).
Yes, using the --conda option causes the installation to take a very long time for me. Does your macbook have a M1/M2/M3 processor by any chance?
edit: On my intel macbook when using --conda, the installation does eventually succeed, but is stuck at 10% for over two hours. This is because conda is much slower than mamba at solving the environment specification.
I have installed ondir as it was said in the Warning message. After that, I have tried again to install the FSL. This time, I had to wait two hours and a half and the installation stopped on the 71%.
Are you able to use a faster internet connection for the installation? The installation needs to download about 4GB of data, and can fail when attempted over poorer connections.
P.S. The ‘onda’ / ‘ondir’ packages are unrelated - the fslinstaller script only requires a python interpreter - I’m fairly sure that the installation is failing due to an unreliable network connection./
Are you able to share the log file that is mentioned? This is probably due to an issue with mamba which is still outstanding, and which can hopefully be avoided by running the installer script with the --conda option, e.g.:
Dear Paul,
obviously there was an env conflict in my base, I resolved the problem with creating a new env dedicated for fsl, then it worked,
Thank you so much!!
Best,
Aymen