Closed pbousquets closed 12 months ago
Hey @pbousquets!
Thanks for the issue! I've solved it in https://github.com/Wytamma/snk/releases/tag/v0.16.0. the conda
flags will only be added if the conda
command is available. You can require conda
(pipeline won't run without conda
) by adding require_conda: true
to the snk.yaml config.
-W
Hi @Wytamma,
I've decided to create clean issue related to my previous comment (https://github.com/Wytamma/snk/issues/20#issuecomment-1781025618_).
I developed the code in a server where I had conda and mamba, so I never encountered any problem. However, when I moved to another computer with no conda installation, it didn't work. The error is this one, and is coming from snakemake:
The reason why I think it is related to snk is because of this piece of code: https://github.com/Wytamma/snk/blob/45ef4297e4efc1b327a251e27dd5ea66341116e0/snk/cli/subcommands/run.py#L173-L179
I ran the pipeline in verbose mode and, indeed, it is asking snakemake to activate conda, even if I don't add any conda environment in my Snakefile:
Could you have a look and check if the same happens on any of your packages? I think that the fix could even be easily automated, by checking if conda or mamba binaries are available in $PATH. If so, you can activate the piece of code I referenced above, and deactivate it otherwise. This way the user wouldn't even need to explicitly activate it.
Thanks a lot!
Pablo