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

Issue installing AMPtk (Mac OS - M1 chip) #100

Open
cpbivins28 opened this issue May 11, 2023 · 2 comments
Open

Issue installing AMPtk (Mac OS - M1 chip) #100

cpbivins28 opened this issue May 11, 2023 · 2 comments

Comments

@cpbivins28
Copy link

Hi,

I'm currently unable to successfully install AMPtk.

Following the installation instructions on https://amptk.readthedocs.io/en/latest/ - I type in the first three commands:

conda config --add channels defaults
conda config --add channels bioconda
conda config --add channels conda-forge

No problems here - everything seems to be fine.

Then I run:

conda create -n amptk amptk

And I get this:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: |
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed

UnsatisfiableError:

And that's it. My computer is not actually telling me what the unsatisfiable error is. I then tried running the following:

conda install -c conda-forge amptk

And get this:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: /
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed

UnsatisfiableError: The following specifications were found to be incompatible with each other:

At least now it's telling me that there are some incompatibilities, but again the computer does not actually list what the incompatibilities are.

I would greatly appreciate anyone's help with this!

-C

@nicolereynolds2
Copy link

nicolereynolds2 commented Jun 13, 2023

Hi,

I am also using a Mac M1. I don't have an answer (I ran into the same problem when trying to install using conda), but I was able to install amptk using the GitHub repository instructions

#clone the repository
git clone https://github.com/nextgenusfs/amptk.git

#then install, optional add --prefix to control location
python setup.py install --prefix /User/Tools/amptk

Another option I came across is setting up an alternate version of terminal that operates through Rosetta (that can help get around the ARM incompatibility issues) e.g. https://taylorreiter.github.io/2022-04-05-Managing-multiple-architecture-specific-installations-of-conda-on-apple-M1/

Amptk has been working so far after using the github instructions on the native terminal (after also installing a lot of the dependencies separately).

hope that helps!

UPDATE
Amptk was working after using the github instructions on the native terminal until I tried to assign taxonomy. Then I kept getting an error about MAFFT/FastTree (even though I installed MAFFT), but unfortunately I didn't save the specific error text. I tried a number of different ways to fix this, but I couldn't get it to work.

Then I went back to the idea of using Rosetta. I used these commands

CONDA_SUBDIR=osx-64 conda create -n rosetta python   # create a new environment called rosetta with intel packages.
conda activate rosetta
python -c "import platform;print(platform.machine())"
conda config --env --set subdir osx-64  # make sure that conda commands in this environment use intel packages

from conda-forge/miniforge#165 (comment)
then used the conda commands to install amptk and make an environment.

#setup your conda env with bioconda, type the following in order to setup channels
conda config --add channels defaults
conda config --add channels bioconda
conda config --add channels conda-forge

#create amptk env (optional)
conda create -n amptk amptk

Now I have been able to complete all processing steps in amptk (pre-processing through taxonomy assignment)

@seqing-answers
Copy link

Did you ever find a work-around for this issue? I am currently running into this problem on my M2 Macbook pro.

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

3 participants