cmt-dtu-energy / MagTense

MagTense - a micromagnetism and magnetostatic framework
http://www.MagTense.org
GNU General Public License v3.0
28 stars 12 forks source link

Can't run the code on M1 chip macbook pro #24

Closed wongsihan closed 2 years ago

wongsihan commented 2 years ago

ImportError: dlopen(/Users/envy/Documents/GitHub/MagTense/python/magtense/lib/magtensesource.cpython-39-darwin.so, 0x0002): tried: '/Users/envy/Documents/GitHub/MagTense/python/magtense/lib/magtensesource.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))

spollok commented 2 years ago

@wongsihan Sorry for the long wait. Unfortunately, we do not have an M1 mac in our group in order to reproduce the error. I guess that you were following the instructions from python/, and installed gfortran and the Make utility as pointed out in Step 2 for MacOS. I could be that the error originates from the f2py command in the Makefile, which might have some problems with the ARM-architecture of the M1 chip. Maybe you can give miniforge a try, as suggested here and here.

wongsihan commented 2 years ago

@spollok Thank you very much for your patient reply. I will try this solution. If there is any new progress, I will update it under this issue.