-
Notifications
You must be signed in to change notification settings - Fork 66
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 importing compiled openseespy on Mac M2 #127
Comments
If you already compiled opensees.so, you can put it on your python path and import opensees as ops directly. |
Hey zhuminjie, thank you for your quick response. But the issue is not closed so kindly open it again. I added opensees.so to the python path but when I import opensees.so to my script as import openseespy.opensees it gives me the errors shown up. If I put back the opensees.so I got from pip3 install openseespy then it works. Which is confusing as why the new opensees.so can't be imported the same way. |
I believe it’s because the current openseespymac is built on intel based mac os. Even if you replace the opensees.so, the dependencies shipped are still based on intel, which caused the errors. So I advised you to import opensees.so directly, which will link to dependencies on your machine. We are working on the updates to the mac version to support arm64 based processors. Probably release in a couple months. |
Thank you so much for your help. |
I want to add a new material in opensees. I managed to compile opensees and openseespy. I used pip3 install openseespy and it works fine but when I change the opensees.so in the root directory with the new opensees.so I get the following error:
I tried also installing openseespy on python3.11 which is what I used to compile openseespy I still get the same error just different directory as shown bellow:
Is there any solution for that?
Thanks in advance
The text was updated successfully, but these errors were encountered: