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

conda env update fails when notices are enabled and the base environment's python is being updated #11847

Closed
2 tasks done
travishathaway opened this issue Sep 15, 2022 · 0 comments · Fixed by #11852
Closed
2 tasks done
Assignees
Labels
duplicate::primary if an issue/PR has duplicates, this is the consolidated, primary issue/PR in-progress issue is actively being worked on locked [bot] locked due to inactivity severity::2 critical; broken functionality with an unacceptably complex workaround source::community catch-all for issues filed by community members type::bug describes erroneous operation, use severity::* to classify the type

Comments

@travishathaway
Copy link
Contributor

travishathaway commented Sep 15, 2022

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

This was first reported in this mamba issue:

The bug appears when updating conda's (or mamba's) root/base environment's Python version. We have been able to successfully recreate this in linux Docker containers.

How to recreate

Using this Dockerfile (or whatever other Dockerfile that has the latest conda installed)

FROM --platform=linux/amd64 debian:stable-slim

RUN apt update -y && apt upgrade -y
RUN apt install curl -y
RUN cd /tmp/ && curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
RUN bash /tmp/Miniconda3-latest-Linux-x86_64.sh -p /opt/conda -b
RUN /opt/conda/bin/conda init --all
RUN /opt/conda/bin/conda install -y -c defaults python conda-build

Build and run this docker image...

Once on the command line:

$ python --version  # let's see which python version we have
Python 3.7.13
$ echo "name: base
channels:
  - defaults
dependencies:
  - python=3.10" > /tmp/environment.yml  # create an environment.yml file with a newer version of Python
$ conda env update -f /tmp/environment.yml
💥  # same error pops up

The following command will also trigger this error (do this instead of running conda env update)

$ conda install python=3.10

How to fix

We should look at how CondaSession and the requests library handles loading TLS root certificates. There's a chance we may be able to load these ahead of time in memory to avoid these situations.

Experimentation for a better solution is encouraged as well.

@travishathaway travishathaway added type::bug describes erroneous operation, use severity::* to classify the type severity::2 critical; broken functionality with an unacceptably complex workaround backlog issue has been triaged but has not been earmarked for any upcoming release labels Sep 15, 2022
travishathaway added a commit to travishathaway/conda that referenced this issue Sep 16, 2022
@travishathaway travishathaway self-assigned this Sep 19, 2022
@kenodegard kenodegard added source::community catch-all for issues filed by community members duplicate::primary if an issue/PR has duplicates, this is the consolidated, primary issue/PR labels Sep 22, 2022
jezdez pushed a commit to travishathaway/conda that referenced this issue Oct 5, 2022
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Oct 6, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate::primary if an issue/PR has duplicates, this is the consolidated, primary issue/PR in-progress issue is actively being worked on locked [bot] locked due to inactivity severity::2 critical; broken functionality with an unacceptably complex workaround source::community catch-all for issues filed by community members type::bug describes erroneous operation, use severity::* to classify the type
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants