anaconda/docker-images

Upgrading above 4.8.2 adds Ruamel.yaml to fresh environments and causes conflicts

glassresistor opened this issue · 2 comments

The most recent update to the miniconda docker image is causing us to have this error with ruamel.yaml

I'm not sure where this got added to the base dependency tree but my experience with conda outside of this environment is that base install doesnt install ruamel.yaml.

We hit this as soon as your released so i suspect others will as well. Pinning to 4.8.2 fixed it but id like to upgrade eventually.

Requirement already satisfied: chardet<4,>=3.0.2 in /opt/conda/lib/python3.7/site-packages (from requests->coreapi==2.3.3->-r requirements/app.txt (line 28)) (3.0.4)
Requirement already satisfied: urllib3>=1.23 in /opt/conda/lib/python3.7/site-packages (from in10t-api-client==1.0.4->-r requirements/app.txt (line 44)) (1.25.11)
Collecting ruamel.yaml>=0.16.12
  Downloading ruamel.yaml-0.16.12-py2.py3-none-any.whl (111 kB)
     |████████████████████████████████| 111 kB 17.9 MB/s eta 0:00:01
Requirement already satisfied: ruamel.yaml.clib>=0.1.2 in /opt/conda/lib/python3.7/site-packages (from ruamel.yaml>=0.16.12->drf-yasg2==1.19.2->-r requirements/app.txt (line 27)) (0.2.2)
Requirement already satisfied: botocore<1.20.0,>=1.19.25 in /opt/conda/lib/python3.7/site-packages (from boto3~=1.16.2->-r requirements/app.txt (line 1)) (1.19.25)
Requirement already satisfied: numpy>=1.15.4 in /opt/conda/lib/python3.7/site-packages (from pandas~=1.1.3->-r requirements/app.txt (line 16)) (1.19.2)
Requirement already satisfied: pyparsing>=2.0.2 in /opt/conda/lib/python3.7/site-packages (from packaging>=18.0->drf-yasg2==1.19.2->-r requirements/app.txt (line 27)) (2.4.7)
Requirement already satisfied: ipython-genutils in /opt/conda/lib/python3.7/site-packages (from traitlets>=4.2->ipython~=7.18.1->-r requirements/app.txt (line 18)) (0.2.0)
Requirement already satisfied: yarl in /opt/conda/lib/python3.7/site-packages (from vcrpy>=2.0.1->pytest-recording~=0.10.0->-r requirements/dev.txt (line 15)) (1.6.3)
Requirement already satisfied: six>=1.15.0 in /opt/conda/lib/python3.7/site-packages (from drf-yasg2==1.19.2->-r requirements/app.txt (line 27)) (1.15.0)
Requirement already satisfied: wrapt in /opt/conda/lib/python3.7/site-packages (from vcrpy>=2.0.1->pytest-recording~=0.10.0->-r requirements/dev.txt (line 15)) (1.12.1)
Requirement already satisfied: PyYAML~=5.3 in /opt/conda/lib/python3.7/site-packages (from -r requirements/app.txt (line 19)) (5.3.1)
Requirement already satisfied: idna<3,>=2.5 in /opt/conda/lib/python3.7/site-packages (from requests->coreapi==2.3.3->-r requirements/app.txt (line 28)) (2.10)
Requirement already satisfied: multidict>=4.0 in /opt/conda/lib/python3.7/site-packages (from yarl->vcrpy>=2.0.1->pytest-recording~=0.10.0->-r requirements/dev.txt (line 15)) (5.0.2)
Requirement already satisfied: typing-extensions>=3.7.4 in /opt/conda/lib/python3.7/site-packages (from yarl->vcrpy>=2.0.1->pytest-recording~=0.10.0->-r requirements/dev.txt (line 15)) (3.7.4.3)
Installing collected packages: ruamel.yaml
  Attempting uninstall: ruamel.yaml
    Found existing installation: ruamel-yaml 0.15.87
ERROR: Cannot uninstall 'ruamel-yaml'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

What are you trying to install? Knowing that will help make it easier to track down this issue.

I haven't tracked down which package it is but just trying to upgrade from the systems version of ruamel-yaml should cause the issue. So just running this should trigger the same issue.

pip install ruamel-yaml --upgrade

I think the solution is to just make sure ruamel-yaml is not preinstalled on a conda env on this docker image and that the envs more closely resemble vanilla ones.