faircloth-lab / phyluce

software for UCE (and general) phylogenomics
http://phyluce.readthedocs.org/
Other
80 stars 49 forks source link

Issues Installing Phyluce on M2 MacOS #317

Closed Anoplogaster closed 1 year ago

Anoplogaster commented 1 year ago

Hello,

I am running into the same error when installing phyluce at different locations (both at /user and various /applications /documents) using the installing with MacOS - M-Series CPU instructions.

At the command conda env update --name phyluce-1.7.3-x86 --file phyluce-1.7.3-py36-macOS-conda.yml --prune, I always run into the error below:

Collecting package metadata (repodata.json): done Solving environment: failed

ResolvePackageNotFound:

I have installed and reinstalled python 3.6 and messed with some other things but still manage to get this same error. Not sure if this is a M2 issue or something else. Any help is greatly appreciated!

Thanks

Anoplogaster commented 1 year ago

A simple yet frustrating error that caused this was due to this line:

the next line must be run at the same time (e.g. do not split it up) - this sets up an x86 environment

CONDA_SUBDIR=osx-64 conda create -n phyluce-1.7.2-x86 python=3.6 conda activate phyluce-1.7.2-x86 conda config --env --set subdir osx-64

I was trying to run all three lines in one go, which led to the errors I've been seeing on some other MacOS with M chips, but if you run each line individually:

CONDA_SUBDIR=osx-64 conda create -n phyluce-1.7.2-x86 python=3.6

conda activate phyluce-1.7.2-x86

conda config --env --set subdir osx-64

It runs and installs all dependencies without any issues.

brantfaircloth commented 1 year ago

This is meant to imply you should run the first line all at once versus splitting it into separate components (e.g. do not run CONDA_SUBDIR=osx-64 followed by conda create -n phyluce-1.7.2-x86 python=3.6)