You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building DAG of jobs...
CreateCondaEnvironmentException:
The 'conda' 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`.
File "/usr/local/lib/python3.7/site-packages/snakemake/deployment/conda.py", line 232, in create
File "/usr/local/lib/python3.7/site-packages/snakemake/deployment/conda.py", line 343, in __new__
File "/usr/local/lib/python3.7/site-packages/snakemake/deployment/conda.py", line 356, in __init__
File "/usr/local/lib/python3.7/site-packages/snakemake/deployment/conda.py", line 396, in _check
Possible solution
Is there a way to include a conda installation in the Docker image?
Your environment: if running Nextstrain locally
Operating system: Debian GNU/Linux 10 (buster)
Version (e.g. auspice 2.7.0): nextstrain/base:build-20210413T201712Z
Additional context
I'd like to get this working so I could potentially run Pangolin on the build (without installing it in a place that's already cramped for space).
The text was updated successfully, but these errors were encountered:
The ultimate issue of whether to include Conda in the base Docker image is trickier. We currently view Docker and Conda as mutually exclusive solutions to environment management such that including Conda in the Docker image defeats the original purpose of the image. However, since some tools like Pangolin are most readily installed through Conda and need to be available through the Docker image, it is possible we'll need to support Conda anyway.
I don't think we want to support Snakemake's --use-conda in the Docker runtime. There's been updates to Nextstrain since this issue was created, and we now have more runtimes options. --use-conda falls under the advanced use case of managing Conda environments, which we recommend the ambient runtime for.
Current Behavior
When I run
nextstrain
with the--use-conda
option, snakemake complains about the absence of a conda executable.Expected behavior
This command should be able to install and use the conda environment.
How to reproduce
Steps to reproduce the current behavior:
nextstrain check-setup --set-default
should return withSetting default environment to docker.
nextstrain build ncov/ --use-conda --profile path/to/profile -p
Possible solution
Is there a way to include a conda installation in the Docker image?
Your environment: if running Nextstrain locally
auspice 2.7.0
):nextstrain/base:build-20210413T201712Z
Additional context
I'd like to get this working so I could potentially run Pangolin on the build (without installing it in a place that's already cramped for space).
The text was updated successfully, but these errors were encountered: