ReactionMechanismGenerator / RMG-Py

Python version of the amazing Reaction Mechanism Generator (RMG).
http://reactionmechanismgenerator.github.io/RMG-Py/
Other
400 stars 228 forks source link

bug installing RMG on M3 chip following step by step instructions. #2721

Open tripash30 opened 1 month ago

tripash30 commented 1 month ago

Bug Description

Hello, I am having an issue installing RMG following the developer install instructions

['/Users/ayushmaantripathi/miniforge3/envs/rmg_env/bin/python', '-m', 'pip', 'install', '-U', '-r', '/Users/ayushmaantripathi/RMG-Py/condaenv.qx4fndti.requirements.txt', '--exists-action=b']                                                                                                    
Pip subprocess output:                                                                                                                           

Pip subprocess error:                                                                                                                            
/Users/ayushmaantripathi/miniforge3/envs/rmg_env/.tmpjbkujj0b: line 3: /Users/ayushmaantripathi/miniforge3/envs/rmg_env/bin/python: Bad CPU type in executable         

failed

How To Reproduce

By following instructions "Installation by Source Using Anaconda Environment for Unix-based Systems: Linux and Mac OSX"

Installation Information

Describe your installation method and system information.

Additional Context

Add any other context about the problem here.

ChrisBNEU commented 1 month ago

I was trying to help ash with the install, and as a minimum working example, I tried this:

conda create -n test
conda activate test
conda config --env --set subdir osx-64

then, I tried entering the python REPL by typing python. it gave the bad cpu error as well.

JacksonBurns commented 1 month ago

Are you using zsh? I ask because of this SO thread.

JacksonBurns commented 1 month ago

Also ensure that you have Rosetta installed, see here.

rwest commented 1 month ago

Likely didn't have Rosetta. @tripash30 please update the instructions, perhaps at https://github.com/ReactionMechanismGenerator/RMG-Py/blob/main/documentation/source/users/rmg/installation/anacondaDeveloper.rst (maybe there are other spots). See https://support.apple.com/en-us/102527 and try softwareupdate --install-rosetta

ChrisBNEU commented 1 month ago

So it is sort of an edge case, but it is something that could easily happen if someone has a new Mx chip laptop, so I think we should update the instructions. His PC is very new, so there were no apps that required rosetta, thus it was never installed. xcode tools didn't prompt to install it either.