Skip to content
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

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

Open
tripash30 opened this issue Oct 8, 2024 · 5 comments
Open

Comments

@tripash30
Copy link

tripash30 commented Oct 8, 2024

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.

  • macOS Version 15.0.1 (24A348)
  • hardware: apple M3
  • Installation method: (installation from source, with miniforge)
  • RMG version information:
    • RMG-Py:
    • RMG-database:

Additional Context

Add any other context about the problem here.

@ChrisBNEU
Copy link
Contributor

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
Copy link
Contributor

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

@JacksonBurns
Copy link
Contributor

JacksonBurns commented Oct 8, 2024

Also ensure that you have Rosetta installed, see here.

@rwest
Copy link
Member

rwest commented Oct 8, 2024

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants