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

"package humann-3.0.0 is excluded by strict repo priority" #24

Open
emaxortiz opened this issue Jun 13, 2022 · 2 comments
Open

"package humann-3.0.0 is excluded by strict repo priority" #24

emaxortiz opened this issue Jun 13, 2022 · 2 comments

Comments

@emaxortiz
Copy link

emaxortiz commented Jun 13, 2022

Dear Nick,
Thank you so much for this tool. I tried the customized gtdb database (r202) in humann3 and It's improving my results by a lot.

Now, I'm trying to customize the last gtdb release (r207v2) using struo2. I managed to download everything and prepared the sample table and linked files. I also tested the snakemake dryrun mode and everything seems to be in order. However, when I run the pipeline using 5 genomes from the test data, I'm getting the following error:


CreateCondaEnvironmentException:
Your conda installation is not configured to use strict channel priorities. This is however crucial for having robust and correct environments (for details, see https://conda-forge.org/docs/user/tipsandtricks.html). Please configure strict priorities by executing 'conda config --set channel_priority strict'.


I changed it to strict priority and then, I'm getting this:


Creating conda environment bin/envs/humann3.yaml...
Downloading and installing remote packages.
CreateCondaEnvironmentException:
Could not create conda environment from /home/eortiz/Software/Struo2/bin/db_create/humann3/query/dmnd/../../../../envs/humann3.yaml:
Command:
mamba env create --quiet --file "/home/eortiz/Software/Struo2/.snakemake/conda/9ca7f54adf4ee41e2ed703f6dd2b2fc0.yaml" --prefix "/home/eortiz/Software/Struo2/.snakemake/conda/9ca7f54adf4ee41e2ed703f6dd2b2fc0"
Output:
Encountered problems while solving:
  - package humann-3.0.0-pyheec8a34_0 is excluded by strict repo priority

  - --------------------------------------------

Any suggestions to fix this?
Thank you.

@nick-youngblut
Copy link
Contributor

What is in your ~/.condarc? It should at least include:

channels:
  - conda-forge
  - bioconda

@emaxortiz
Copy link
Author

Here it is. I'm having the same exact error in 2 different Unix machines. If I "Skip" humann db, the pipeline is running but it's giving me other different errors later. I can come back to this later if I have to, we only need the customized humann db. Thanks.

channels:

  • bioconda
  • conda-forge
  • defaults
  • ursky
  • biobakery
    restore_free_channel: true
    channel_priority: strict

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

2 participants