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

Creating a conda environment fails due to outdated env command #1396

Closed
ivirshup opened this issue Apr 11, 2024 · 0 comments
Closed

Creating a conda environment fails due to outdated env command #1396

ivirshup opened this issue Apr 11, 2024 · 0 comments

Comments

@ivirshup
Copy link

ivirshup commented Apr 11, 2024

If conda>=24.3 is used, asv's creation of a conda environment fails with:

·· Error running /mnt/workspace/mambaforge/bin/conda env create -f /mnt/workspace/tmp/tmpd4g2uh44.yml -p /mnt/workspace/repos/anndata/benchmarks/.asv/env/64c601b255f4a31e6994caef8c345b33 --force (exit status 2)
   STDOUT -------->
   
   STDERR -------->
   usage: conda [-h] [-v] [--no-plugins] [-V] COMMAND ...
   conda: error: unrecognized arguments: --force

In conda 24.3, --force was replace with --yes to be more consistent with other conda commands:

Initially discovered when trying to use conda for env creation now that it uses mamba's solver by default:

I think this line just needs to be changed to use --yes, but am not sure what range of conda versions asv is meant to be compatible with

'-p', self._path, '--force'],

trexfeathers added a commit to trexfeathers/iris that referenced this issue Apr 29, 2024
stephenworsley pushed a commit to SciTools/iris that referenced this issue Apr 29, 2024
* Temporary fix for airspeed-velocity/asv#1396 .

* Add missing return statement.
HaoZeke pushed a commit to h-mayorquin/asv that referenced this issue Jun 3, 2024
HaoZeke pushed a commit to h-mayorquin/asv that referenced this issue Jun 3, 2024
@HaoZeke HaoZeke closed this as completed in e411c0b Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant