Git Product home page Git Product logo

Comments (11)

volkanozsarac avatar volkanozsarac commented on August 22, 2024 1

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

from openseespy.

zhuminjie avatar zhuminjie commented on August 22, 2024

Is it a mac issue or OpenSeesPy issue?

from openseespy.

volkanozsarac avatar volkanozsarac commented on August 22, 2024

from openseespy.

zhuminjie avatar zhuminjie commented on August 22, 2024

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

from openseespy.

serkanhasanoglu avatar serkanhasanoglu commented on August 22, 2024

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.

from openseespy.

ihsanenginbal avatar ihsanenginbal commented on August 22, 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

from openseespy.

serkanhasanoglu avatar serkanhasanoglu commented on August 22, 2024

@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.

from openseespy.

cschthy avatar cschthy commented on August 22, 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?

from openseespy.

edddieeeee avatar edddieeeee commented on August 22, 2024

@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

from openseespy.

odarroyo avatar odarroyo commented on August 22, 2024

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.

from openseespy.

odarroyo avatar odarroyo commented on August 22, 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

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

from openseespy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.