Comments (11)
Since people started finding other workarounds such as use of Rosetta terminal, I think the update would still be super useful!
from openseespy.
Is it a mac issue or OpenSeesPy issue?
from openseespy.
from openseespy.
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.
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.
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.
@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.
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.
@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.
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.
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)
- module 'openseespy.opensees' has no attribute 'getEleClassTags'
- Error on ARM architecture Macs while importing HOT 4
- Updated Opensees not compatible with old script HOT 11
- limitCurve('Axial') not available
- limitCurve('ThreePoint') HOT 6
- Linux: opensees.so: cannot open shared object file: No such file or directory HOT 5
- recorder PVD for element stress and strain HOT 4
- RuntimeError: Failed to import openseespy on Windows HOT 2
- The MPCO recorder can't work in OpenSeespy HOT 1
- Error importing compiled openseespy on Mac M2 HOT 4
- libquadmath - missing dependency? HOT 2
- printModel command produces invalid json file when there's no elements in the model HOT 1
- openseespy.save command doesn't save uniaxial materials HOT 1
- Recorder command problem HOT 2
- "Remove" code snippet that prints IMKBilin material tags to console. HOT 1
- Need an explanation about plotting -> I must not use Matplotlib HOT 5
- Examples for Timber
- Changing the value of a specific parameter of a material HOT 8
- Geotechnical geometry model problem HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openseespy.