External Email - Use Caution
Hi developers,
I'm Using freesurfer-darwin-macOS-dev.pkg (the ) which is developed in march 2023. Also my system is Apple M1 max (MacOS Ventura 13.2.1).
When I run synthsr, I receive an error:
mri_synthsr --i /Users/Hyperfine/028 --o /Users/Hyperfine/028/synthsr --threads 2 --lowfield Traceback (most recent call last): File "/Applications/freesurfer/dev/python/scripts/mri_synthsr", line 10, in <module> import surfa as sf File "/Applications/freesurfer/dev/python/lib/python3.8/site-packages/surfa/__init__.py", line 19, in <module> from .image import Volume File "/Applications/freesurfer/dev/python/lib/python3.8/site-packages/surfa/image/__init__.py", line 1, in <module> from .framed import FramedImage File "/Applications/freesurfer/dev/python/lib/python3.8/site-packages/surfa/image/framed.py", line 24, in <module> from surfa.image.interp import interpolate File "surfa/image/interp.pyx", line 1, in init surfa.image.interp ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 80 from PyObject
Have you had a similar issue before? Any advice? Many thanks in advance.
Regards Hengameh
This is because of a change in the C API starting in numpy 1.20.0https://numpy.org/doc/stable/release/1.20.0-notes.html#size-of-np-ndarray-and-np-void-changed. You likely have a numpy version <1.20.0 installed in your python environment. Can you upgrade your numpy installation and try synthsr again: fspython -m pip install numpy==1.20.3 Best, Avnish ________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of hmarzban@student.ubc.ca hmarzban@student.ubc.ca Sent: Wednesday, March 29, 2023 6:54 PM To: freesurfer@nmr.mgh.harvard.edu freesurfer@nmr.mgh.harvard.edu Subject: [Freesurfer] error with synthsr in Mac M1
External Email - Use Caution
Hi developers,
I'm Using freesurfer-darwin-macOS-dev.pkg (the ) which is developed in march 2023. Also my system is Apple M1 max (MacOS Ventura 13.2.1).
When I run synthsr, I receive an error:
mri_synthsr --i /Users/Hyperfine/028 --o /Users/Hyperfine/028/synthsr --threads 2 --lowfield Traceback (most recent call last): File "/Applications/freesurfer/dev/python/scripts/mri_synthsr", line 10, in <module> import surfa as sf File "/Applications/freesurfer/dev/python/lib/python3.8/site-packages/surfa/__init__.py", line 19, in <module> from .image import Volume File "/Applications/freesurfer/dev/python/lib/python3.8/site-packages/surfa/image/__init__.py", line 1, in <module> from .framed import FramedImage File "/Applications/freesurfer/dev/python/lib/python3.8/site-packages/surfa/image/framed.py", line 24, in <module> from surfa.image.interp import interpolate File "surfa/image/interp.pyx", line 1, in init surfa.image.interp ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 80 from PyObject
Have you had a similar issue before? Any advice? Many thanks in advance.
Regards Hengameh
freesurfer@nmr.mgh.harvard.edu