This is because of a change in the C API starting in numpy 1.20.0<https://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-boun...@nmr.mgh.harvard.edu <freesurfer-boun...@nmr.mgh.harvard.edu> on behalf of hmarz...@student.ubc.ca <hmarz...@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 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.