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

CI install-conda.sh is raising EnvironmentLocationNotFound #158

Closed
leehart opened this issue Nov 4, 2024 · 1 comment
Closed

CI install-conda.sh is raising EnvironmentLocationNotFound #158

leehart opened this issue Nov 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@leehart
Copy link
Collaborator

leehart commented Nov 4, 2024

E.g. when removing pinned env files and upgrading malariagen_data package (as usual) #157 https://github.com/malariagen/mgenv/actions/runs/11666157311/job/32480463432?pr=157

Downloading and Extracting Packages: ...working... done
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Python 3.12.2
conda 24.9.2
# packages in environment at /home/runner/work/mgenv/mgenv/deps/conda:
#
# Name                    Version                   Build  Channel
conda-libmamba-solver     24.9.0             pyhd8ed1ab_0    conda-forge

EnvironmentLocationNotFound: Not a conda environment: /home/runner/work/mgenv/mgenv/deps/conda/envs/mgenv-68c5276

Error: Process completed with exit code 1.

This is blocking other PRs, e.g. #153

@leehart leehart added the bug Something isn't working label Nov 4, 2024
@leehart
Copy link
Collaborator Author

leehart commented Nov 14, 2024

It looks like the install-conda.sh is currently failing because the line:

conda env remove -v --name=$CONDANAME

...assumes that $CONDANAME exists. I guess because it would usually have been created on a previous run. However, when it does not exist (for whatever reason) any attempt to remove a non-existent env will raise an error, such as:

EnvironmentLocationNotFound: Not a conda environment: /home/runner/work/mgenv/mgenv/deps/conda/envs/mgenv-b0a4b9e

...where $CONDANAME has been set to mgenv-b0a4b9e.

@leehart leehart closed this as completed Nov 15, 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

No branches or pull requests

1 participant