-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use Fastsurfer with Apple M3 Pro #551
Comments
Hi the issue here is, that your bash version is outdated. Please update bash. Please note, that we have changed the code so that future releases will be compatible with earlier versions of bash. |
See also issue #528 , you may need to modify the bash shebang #! (first line ) in all bash scripts so that they actually use the manually installed bash version (which you can get e.g. via home brew). Or you can just try the dev version which we will release pretty soon. |
Did you update all the first lines in all bash scripts (with ending .sh) like recommended here: #528 (comment) What version of FastSurfer exactly are you using anyway? |
Hi ! Thanks for your quick reply. I have already used Bash 5.2 to run the commands, but I'm still encountering the same issue.
|
Can you answer the questions to help us debug this:
And what I said in my posts above: it is not sufficient to install a newer bash in addition to the system bash. The problem is that the script will still use the system bash. This is because in each bash script the first line says: |
Hi, the version I used was 2.2.0+818acf1, and the version of Bash was installed via Homebrew. I have changed the first line and ran FastSurfer again, but a new issue occurred.
|
Please post the new error (I cannot see any attached images here). |
Hi, I've made the changes you suggested by updating all occurrences of 'bin/bash' to 'opt/homebrew/bin/bash'. Similarly, I updated 'bin/python3' to 'opt/homebrew/bin/python3'. However, I’ve encountered a new issue.When I run FastSurfer, I get the following error:
File "/Users/wuhaoting/Fastsurfer/FastSurferCNN/run_prediction.py", line 23, in import numpy as npModuleNotFoundError: No module named ‘numpy’
I then checked the Python environment and found that numpy is located at /Users/wuhaoting/python-envs/fastsurfer/lib/python3.10/site-packages/numpy.
|
Hi, our install notes https://deep-mi.org/FastSurfer/overview/INSTALL.html#macos |
This means your installation does not have numpy installed. Which makes sense, because your python is now the python in At this point I would suggest you try waiting until the next version is released or switching to the dev-version of FastSurfer (the latter should probably only be used for testing as this is not a proper release). |
I installed FastSurfer natively on a Mac with an Apple M3 Pro, and encountered the following errors when using run_fastsurfer.sh:
The text was updated successfully, but these errors were encountered: