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

KeyError when doing conda-lock #67

Closed
itamarst opened this issue Nov 18, 2020 · 2 comments
Closed

KeyError when doing conda-lock #67

itamarst opened this issue Nov 18, 2020 · 2 comments

Comments

@itamarst
Copy link

$ conda-lock -p linux-64
generating lockfile for linux-64

Traceback (most recent call last):
  File "/home/itamarst/.local/bin/conda-lock", line 8, in <module>
    sys.exit(main())
  File "/home/itamarst/.local/lib/python3.9/site-packages/conda_lock/conda_lock.py", line 400, in main
    run_lock(
  File "/home/itamarst/.local/lib/python3.9/site-packages/conda_lock/conda_lock.py", line 389, in run_lock
    make_lock_files(
  File "/home/itamarst/.local/lib/python3.9/site-packages/conda_lock/conda_lock.py", line 200, in make_lock_files
    lockfile_contents = create_lockfile_from_spec(
  File "/home/itamarst/.local/lib/python3.9/site-packages/conda_lock/conda_lock.py", line 251, in create_lockfile_from_spec
    url = fetch_by_dist_name[pkg["dist_name"]]["url"]
KeyError: '_libgcc_mutex-0.1-conda_forge'

Happens with both install via pip and install via conda install; should be latest version in both cases (0.7.2).

environment.yml:

name: example
channels:
  - conda-forge
dependencies:
  - python=3.8
  - pandas=1.0

.condarc:

channel_priority: strict

I also tried with Docker mode, but... that didn't seem to run a Docker container, to my confusion (#66) so can't tell if that'd fix it.

Deleting .condarc had no effect. --no-mamba had no effect. -p mac-64 fails with a different package.

@itamarst
Copy link
Author

Next, I tried doing it inside a 8-month-old continuumio/miniconda3 Docker image I had lying around. Looks like it's the 4.8.2 one. That did work!

One difference:

  1. The failure happened with Conda 4.9.1.
  2. Success happened with Conda 4.8.2.

So in the miniconda container I upgraded to Conda 4.9.2... and it worked there too.

So at least now I have a workaround, but I'm still confused as why it's not working.

@mariusvniekerk
Copy link
Collaborator

There was an issue in the json output for the solver for 4.9.1

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

No branches or pull requests

2 participants