I´m trying to integrate Salsa2 into my workflow. Since this tool runs on python 2.7 I definitely want to create a separate conda environment for this purpose. My yaml file looks like this:
channels:
- conda-forge
- anaconda
- bioconda
dependencies:
- python = 2.7.18
- salsa2 = 2.3.
- boost = 1.70.0
- boost-cpp = 1.74.0
- networkx = 1.11
However when I run my code snakemake --use-conda --cores 15
I receive the following error:
Creating conda environment envs/salsa2.yaml...
Downloading and installing remote packages.
CreateCondaEnvironmentException:
Could not create conda environment from /buffer/path/to/my/assembly_downstream/workflow/rules/../envs/salsa2.yaml:
Command:
mamba env create --quiet --file "/buffer/path/to/my/assembly_downstream/workflow/.snakemake/conda/bf0438d2754e7799a3cb353c72e2ed4b.yaml" --prefix "/buffer/path/to/my/assembly_downstream/workflow/.snakemake/conda/bf0438d2754e7799a3cb353c72e2ed4b"
Output:
Encountered problems while solving:
- nothing provides openssl >=1.1.1,<1.1.2.0a0 needed by python-3.6.7-h0371630_0
The simple solution would probably be to add openssl 1.1.1 to my yaml. Like this:
channels:
- conda-forge
- anaconda
- bioconda
dependencies:
- python = 2.7.18
- salsa2 = 2.3.
- boost = 1.70.0
- boost-cpp = 1.74.0
- networkx = 1.11
- openssl = 1.1.1
But this fixes nothing and I still receive the error. Creating this exact environment manually works as expected, therefore I guess it's a conflict with snakemake since it runs on python3. But my normal snakemake environment is properly configured and I thought the conda envs are only used for separated rules? Does anyone know what could cause this error?