-
Notifications
You must be signed in to change notification settings - Fork 471
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
ModuleNotFoundError: No module named 'pychrono' on M1 Mac #470
Comments
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. |
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? Similarly, the commands |
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. |
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 |
Trying again on Mac;
If anyone has resolved this issue with an M# mac, please let me know how it was done. |
Hi, I'm running into issues running pychrono after following the installation guide here. I have a simple python file (test.py) where I'm just trying to import pychrono to start
import pychrono as chrono
I get the following error
ModuleNotFoundError: No module named 'pychrono'
Things I've checked/verified:
echo $PYTHONPATH
returns.../opt/anaconda3/envs/chrono/share/chrono/python
conda list -n chrono
shows that pychrono is installed in the chrono envAdditional information
Chip: Apple M1 Pro
macOS: 13.5.2
Python Version in chrono: 3.9.18
I was not able to run the following lines as directed in the instructions:
conda install -c conda-forge mkl=2020
conda install -c conda-forge pythonocc-core=7.4.1
conda install -c nvidia/label/cuda-11.7.0 cuda-toolkit
for mkl, I was not able to find the package using the anaconda GUI. Is this compatible with macOS? Is there an alternative I should use?
for pythonocc, I installed the following version via the anaconda GUI:
pythonocc-core 7.7.2
for nvidia/label/cuda-11.7.0 cuda-toolkit I also was not able to find this in anaconda. Is this compatible with macOS? Is there an alternative I should use?
In issue #431 it seems TIE666 was able to get the import pychrono statement working with an M1 mac, so I have to believe I've installed something incorrectly or something.
Can you please advise as to how I can get this project up and running?
Happy to provide more info as needed, and very excited to use Pychrono!
The text was updated successfully, but these errors were encountered: