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

The same problem still exists in the Openseespymac version. Is it possible to solve the issue in macs? #128

Open
serkanhasanoglu opened this issue Jan 25, 2024 · 11 comments

Comments

@serkanhasanoglu
Copy link

The same problem still exists in the Openseespymac version. Is it possible to solve the issue in macs?

Originally posted by @serkanhasanoglu in #121 (comment)

@zhuminjie
Copy link
Owner

Is it a mac issue or OpenSeesPy issue?

@volkanozsarac
Copy link
Contributor

volkanozsarac commented Jan 25, 2024 via email

@zhuminjie
Copy link
Owner

I see. I am planning to update the mac version for arm64 processors, but not sure how many users are still using intel

@volkanozsarac
Copy link
Contributor

volkanozsarac commented Jan 25, 2024

Since people started finding other workarounds such as use of Rosetta terminal, I think the update would still be super useful!

@serkanhasanoglu
Copy link
Author

Openseespy currently doesn't work with mac version for arm64 processors. Hence, as i mac user, i use Rosetta terminal which provides the ability to use intel-based applications on new Macs with arm64 processors. It would be great if you update the Mac version for arm64 processors.

@ihsanenginbal
Copy link

ihsanenginbal commented Feb 13, 2024

This can be solved with a workaround because Miniconda also creates x86 environments.

  • Install miniconda
  • Create an environment configured for x86, follow the below steps in the terminal:

conda create -n my_x86_env -y
conda activate my_x86_env
conda config --env --set subdir osx-64

  • Install the Python version (stay compatible with Spyder if you will continue with Spyder later, so at the time of writing this entry, do not go above Python v11!)

conda install python=3.10

  • Install packages using conda or pip

conda install numpy
pip install networkx

pip install also the openseespy for mac

Once this environment is active, whatever you pip install will always be pulled from x86 architecture.

The rest is easier for Anaconda users. Once this environment is created, it will automatically appear in the "Environments" list of the Anaconda. Click that environment, then go to Home of Anaconda and install Spyder over that environment. The rest is business as usual.

I think the same can be done also in PyCharm by using this new environment, but I have not tried that one.

x86 version of course runs slower, by the way.

P.S.: A part of my solution was taken from here:
https://stackoverflow.com/questions/71691598/how-to-run-python-as-x86-with-rosetta2-on-arm-macos-machine

@serkanhasanoglu
Copy link
Author

@ihsanenginbal thanks for the information. Using a conda environment finds solutions to using openseespy in macs. The problem here actually is that the latest "openseespymac" version has not been updated since Jul 22, 2022. Hence, new changes in openseespy commands that were implemented after this date, cannot be used and cause problems.

@cschthy
Copy link

cschthy commented Mar 6, 2024

Is it a mac issue or OpenSeesPy issue?

I see. I am planning to update the mac version for arm64 processors, but not sure how many users are still using intel

Hello,the openseesmac on M1 has been solved?

@edddieeeee
Copy link

@ihsanenginbal thanks for the information. Using a conda environment finds solutions to using openseespy in macs. The problem here actually is that the latest "openseespymac" version has not been updated since Jul 22, 2022. Hence, new changes in openseespy commands that were implemented after this date, cannot be used and cause problems.

hi i saw your solution before but i can not apply can you explain more with photo

@odarroyo
Copy link

I see. I am planning to update the mac version for arm64 processors, but not sure how many users are still using intel

Hi! I definitively see it as a worthy endeavor. The base use for OpenSeesPy using Intel is probably small by now, given that the M1 processor was launched in 2020. Moreover, even through Rosetta, OpenSeesPy runs pretty fast on the M1/M2/M3 Macs that I think they deserve their native version.

@odarroyo
Copy link

This can be solved with a workaround because Miniconda also creates x86 environments.

  • Install miniconda
  • Create an environment configured for x86, follow the below steps in the terminal:

conda create -n my_x86_env -y conda activate my_x86_env conda config --env --set subdir osx-64

  • Install the Python version (stay compatible with Spyder if you will continue with Spyder later, so at the time of writing this entry, do not go above Python v11!)

conda install python=3.10

  • Install packages using conda or pip

conda install numpy pip install networkx

pip install also the openseespy for mac

Once this environment is active, whatever you pip install will always be pulled from x86 architecture.

The rest is easier for Anaconda users. Once this environment is created, it will automatically appear in the "Environments" list of the Anaconda. Click that environment, then go to Home of Anaconda and install Spyder over that environment. The rest is business as usual.

I think the same can be done also in PyCharm by using this new environment, but I have not tried that one.

x86 version of course runs slower, by the way.

P.S.: A part of my solution was taken from here: https://stackoverflow.com/questions/71691598/how-to-run-python-as-x86-with-rosetta2-on-arm-macos-machine

Thank you for posting that solution, it was really useful.

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

7 participants