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

conda-frontend: mamba fails from profiles/default #377

Closed
adrienmellot opened this issue May 13, 2024 · 2 comments · Fixed by #378
Closed

conda-frontend: mamba fails from profiles/default #377

adrienmellot opened this issue May 13, 2024 · 2 comments · Fixed by #378
Labels
bug Something isn't working

Comments

@adrienmellot
Copy link
Contributor

What happened?

When running profiles/conda snakemake fails and returns the output below.

Two work arounds:

  1. Comment the line condo-frontend: mamba in profiles/default/config.yaml
  2. run with --conda-frontend conda from the command line

Version

1.2.0.dev

Relevant log output

snakemake --profile profiles/conda --configfile="config/minimal.yaml" all --cores 1
Using profiles profiles/conda and workflow specific profile profiles/default for setting default command line arguments.
Config file config/default.yaml is extended by additional config specified via the command line.
Assuming unrestricted shared filesystem usage.
Building DAG of jobs...
CreateCondaEnvironmentException:
The 'mamba' command is not available in the shell /bin/bash that will be used by Snakemake. You have to ensure that it is in your PATH, e.g., first activating the conda base environment with `conda activate base`.The mamba package manager (https://github.com/mamba-org/mamba) is a fast and robust conda replacement. It is the recommended way of using Snakemake's conda integration. It can be installed with `conda install -n base -c conda-forge mamba`. If you still prefer to use conda, you can enforce that by setting `--conda-frontend conda`.
@adrienmellot adrienmellot added the bug Something isn't working label May 13, 2024
@timtroendle
Copy link
Member

This is a regression introduced in #361

@timtroendle
Copy link
Member

It is based on the missunderstanding that global profiles aren't overriding workflow profiles, but the other way round. That's why Snakemake is expecting mamba even if the conda profile is chosen.

The easiest solution is Adrien's (1) workaround. Mamba is the default choice of Snakemake, so there is actually no need to explicitly set that parameter value. The intention of setting the value was to be explicit about it and to override any Snakemake defaults but both aren't essential.

@timtroendle timtroendle mentioned this issue May 13, 2024
5 tasks
@timtroendle timtroendle changed the title condo-frontend: mamba fails from profiles/default conda-frontend: mamba fails from profiles/default May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants