Giter Site home page Giter Site logo

Comments (5)

rserban avatar rserban commented on June 2, 2024

I have not tried installing the conda PyChrono in a while, but just looking on anaconda.org I can see that some of those packages are available:

Not sure what your "anaconda GUI" finds or does not find, but maybe you should try to do this from the command line as listed in the PyChrono installation instructions.

Note that Chrono can only work with Cascade 7.4 (see comments here), so installing a newer version (7.7.2) will not fly.

Finally, the MacOS PyChrono conda packages do not include any of the Chrono modules that rely on GPU computing through CUDA because Apple does not use NVIDIA GPUs anymore. So, no need to worry about installing the cuda conda package.

from chrono.

e-chesoni avatar e-chesoni commented on June 2, 2024

Thanks for the response @rserban! Good to know CUDA is not needed.

I should mention, I tried installing mkl and pythonocc in the anaconda GUI (navigator?) because the command line method failed. When I use the navigator to search on a windows machine I do indeed find the mkl package, but not on an M1 mac. Does this mean pychrono is only compatible with intel macs?

Screenshot 2023-11-06 at 6 13 23 PM

Similarly, the commands conda install -c conda-forge pythonocc-core=7.4.1 or conda install pythonocc-core=7.4.1 did not work for me, so I tried using anaconda navigator to install. The only available version searching on an M1 mac is 7.7.2.

from chrono.

rserban avatar rserban commented on June 2, 2024

I checked the scripts we use to generate the conda packages and it turns out that the Chrono::PardisoMKL module is not included in the MacOS PyChrono package. So MKL is also not needed.

OCC support is included though and, as I mentioned before, the Chrono::Cascade module is only compatible with an older OCC version. The lack of a corresponding pythonocc conda package is an issue.

To answer your question, because Apple does not use Intel processors anymore, we have recently decided to only generate and offer conda packages for ARM Macs. Now, it looks like we need to reconsider the inclusion of Cascade support in the PyChrono conda package for Macs.

Having said that, I think the rest of PyChrono functionality should work anyway and yet it appears you cannot even load the core Chrono module. So there are likely additional issues here. I do not have access to a Mac, so this is as far as I can help. Hopefully a Mac user can chime in and provide some additional insights.

from chrono.

e-chesoni avatar e-chesoni commented on June 2, 2024

Ok, good to know MKL is not required for MacOS. I will try reinstalling pychrono with only the required packages in a new env and see how that works.

I'll keep checking here if any M1 Mac users have some advice.

Thanks for your help @rserban

from chrono.

e-chesoni avatar e-chesoni commented on June 2, 2024

Trying again on Mac;
I re-installed the pychrono in a new env following the instructions here
I was able to install all packages as directed with the exception of conda install -c conda-forge pythonocc-core=7.4.1. Had to install from source using the instructions here. I only needed to install swig (which I did through Anaconda) to successfully install pythonocc-core version 7.4.1.
Screenshot 2023-11-13 at 5 39 14 PM
Finally, I installed Spyder through Anaconda, and tried running demo_CH_coords.py. Again, I run into the import error:

runfile('/Users/elainechesoni/anaconda3/pkgs/osx-arm64_pychrono-8.0.0-py310_3631/share/chrono/python/pychrono/demos/core/demo_CH_coords.py', wdir='/Users/elainechesoni/anaconda3/pkgs/osx-arm64_pychrono-8.0.0-py310_3631/share/chrono/python/pychrono/demos/core')
First tutorial for PyChrono: vectors, matrices etc.
Traceback (most recent call last):

  File ~/anaconda3/envs/chrono/lib/python3.9/site-packages/spyder_kernels/py3compat.py:356 in compat_exec
    exec(code, globals, locals)

  File ~/anaconda3/pkgs/osx-arm64_pychrono-8.0.0-py310_3631/share/chrono/python/pychrono/demos/core/demo_CH_coords.py:17
    import pychrono as chrono

ModuleNotFoundError: No module named 'pychrono'

If anyone has resolved this issue with an M# mac, please let me know how it was done.

from chrono.

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.