Skip to content
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

Error on ARM architecture Macs while importing #117

Open
siddharthfcb opened this issue Jul 1, 2023 · 4 comments
Open

Error on ARM architecture Macs while importing #117

siddharthfcb opened this issue Jul 1, 2023 · 4 comments

Comments

@siddharthfcb
Copy link

siddharthfcb commented Jul 1, 2023

'/lib/python3.10/site-packages/openseespymac/opensees.so' (no such file), '/lib/python3.10/site-packages/openseespymac/opensees.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

During handling of the above exception, another exception occurred:

RuntimeError Traceback (most recent call last)
Cell In[4], line 8
6 import numpy.matlib as mtlib
7 import scipy.linalg as slin
----> 8 import openseespy.opensees as ops

File ~/anaconda3/lib/python3.10/site-packages/openseespy/opensees/init.py:30
27 from openseespymac.opensees import *
29 except:
---> 30 raise RuntimeError('Failed to import openseespy on Mac.')
33 else:
35 raise RuntimeError(sys.platform+' is not supported yet')

RuntimeError: Failed to import openseespy on Mac.

I think I am working on Anaconda/Jupyter for M1/M2 Macs and that might be the reason. Worked fine on intel Mac versions.

Installing with Anaconda installer older that 2022.10 supported for intel architecture helps prevent this problem. However need to run through rosetta.

@zhuminjie
Copy link
Owner

OpenSeesPy is not running on M1/M2.

@UzoUwaoma
Copy link

Hi @zhuminjie,

So what does the procedure detailed in this Opensees community post do?

@cedavidyang
Copy link

Hi @zhuminjie, is there any update on the M1/M2 compatibility of OpenseesPy? Also, @serkanhasanoglu, how did you make it work with the conda environment? I tried conda install openseespy, but conda can't find openseespy. Although I can pip install openseespy, I can't import it with import openseespy.opensees as ops. I got RuntimeError: Failed to import openseespy on Mac.

@Omar-A-M
Copy link

Omar-A-M commented Jan 15, 2024

Hey cedavidyang, have you found a solution? I am also having the same issue when I try to use opensees.so that I compiled after adding a new material. But when I use pip install openseespy and import it to the script it works on [email protected].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants