magellanmapper icon indicating copy to clipboard operation
magellanmapper copied to clipboard

Miniconda setup failure with Mac M1 chip

Open kaparna126 opened this issue 3 years ago • 1 comments

When running setup_conda, setup doesn't finish. The error given is:

./Miniconda3-latest-MacOSX-x86.sh: line 253: /Users/aparnakumar/miniconda3/pkgs/python-3.4.3-0/bin/python: Bad CPU type in executable
ERROR:
cannot execute native osx-32 binary, output from 'uname -a' is:
Darwin Aparnas-MacBook-Air.local 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:27 PDT 2021; root:xnu-7195.141.2~5/RELEASE_ARM64_T8101 arm64
Desktop/magellanmapper-1.4.0/bin/setup_conda: line 116: /Users/aparnakumar/miniconda3/bin/conda: No such file or directory
Desktop/magellanmapper-1.4.0/bin/setup_conda: line 117: conda: command not found
Desktop/magellanmapper-1.4.0/bin/setup_conda: line 118: conda: command not found
Desktop/magellanmapper-1.4.0/bin/setup_conda: line 125: conda: command not found
Creating new Conda environment from environment.yml...
Installing dependencies (may take awhile and appear to hang after the
  "Executing transaction" step because of additional downloads/installs)...
Desktop/magellanmapper-1.4.0/bin/setup_conda: line 142: conda: command not found
Confirming mag Conda environment...
Desktop/magellanmapper-1.4.0/bin/setup_conda: line 147: conda: command not found
mag could not be found, exiting.

Could also be related to default running in zsh instead of bash. Downloaded Miniconda3-latest-MacOSX-x86.sh

kaparna126 avatar Aug 24 '21 02:08 kaparna126

Thanks for reporting this, @kaparna126 ! Looks like the source code installer is picking up the wrong version of Miniconda to download on ARM platforms. Will look into the platform detection to fix this.

yoda-vid avatar Aug 24 '21 03:08 yoda-vid