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 importing compiled openseespy on Mac M2 #127

Closed
Omar-A-M opened this issue Jan 15, 2024 · 4 comments
Closed

Error importing compiled openseespy on Mac M2 #127

Omar-A-M opened this issue Jan 15, 2024 · 4 comments

Comments

@Omar-A-M
Copy link

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:

image

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:
image

Is there any solution for that?

Thanks in advance

@zhuminjie
Copy link
Owner

If you already compiled opensees.so, you can put it on your python path and import opensees as ops directly.

@Omar-A-M
Copy link
Author

Omar-A-M commented Jan 15, 2024

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.

@zhuminjie
Copy link
Owner

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.

@Omar-A-M
Copy link
Author

Thank you so much for your help.

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

2 participants