Skip to content

Instantly share code, notes, and snippets.

@honnix
Created June 6, 2020 12:08
Show Gist options
  • Save honnix/6a51bacad4da2d715e95d613d5b74f40 to your computer and use it in GitHub Desktop.
Save honnix/6a51bacad4da2d715e95d613d5b74f40 to your computer and use it in GitHub Desktop.
pip transitive dependency resolution issue reproduce
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y python3 python3-dev python3-pip
RUN pip3 install -U pip setuptools
RUN pip3 install grpcio==1.8.1
# pip3 install google-cloud-kms
Collecting google-cloud-kms
Downloading google_cloud_kms-1.4.0-py2.py3-none-any.whl (66 kB)
|################################| 66 kB 605 kB/s
Collecting grpc-google-iam-v1<0.13dev,>=0.12.3
Downloading grpc-google-iam-v1-0.12.3.tar.gz (13 kB)
Collecting google-api-core[grpc]<2.0.0dev,>=1.14.0
Downloading google_api_core-1.19.1-py2.py3-none-any.whl (90 kB)
|################################| 90 kB 1.6 MB/s
Requirement already satisfied: grpcio<2.0.0dev,>=1.0.0 in /usr/local/lib/python3.6/dist-packages (from grpc-google-iam-v1<0.13dev,>=0.12.3->google-cloud-kms) (1.8.1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Collecting googleapis-common-protos[grpc]<2.0.0dev,>=1.5.2
Downloading googleapis_common_protos-1.52.0-py2.py3-none-any.whl (100 kB)
|################################| 100 kB 5.7 MB/s
Requirement already satisfied: protobuf>=3.4.0 in /usr/local/lib/python3.6/dist-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-kms) (3.12.2)
Requirement already satisfied: six>=1.10.0 in /usr/lib/python3/dist-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-kms) (1.11.0)
Requirement already satisfied: setuptools>=34.0.0 in /usr/local/lib/python3.6/dist-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-kms) (47.1.1)
Collecting requests<3.0.0dev,>=2.18.0
Downloading requests-2.23.0-py2.py3-none-any.whl (58 kB)
|################################| 58 kB 7.8 MB/s
Collecting pytz
Downloading pytz-2020.1-py2.py3-none-any.whl (510 kB)
|################################| 510 kB 8.1 MB/s
Collecting google-auth<2.0dev,>=1.14.0
Downloading google_auth-1.16.1-py2.py3-none-any.whl (90 kB)
|################################| 90 kB 7.0 MB/s
Requirement already satisfied: idna<3,>=2.5 in /usr/lib/python3/dist-packages (from requests<3.0.0dev,>=2.18.0->google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-kms) (2.6)
Collecting certifi>=2017.4.17
Downloading certifi-2020.4.5.1-py2.py3-none-any.whl (157 kB)
|################################| 157 kB 8.6 MB/s
Collecting chardet<4,>=3.0.2
Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
|################################| 133 kB 8.1 MB/s
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
Downloading urllib3-1.25.9-py2.py3-none-any.whl (126 kB)
|################################| 126 kB 9.0 MB/s
Collecting cachetools<5.0,>=2.0.0
Downloading cachetools-4.1.0-py3-none-any.whl (10 kB)
Collecting rsa<4.1,>=3.1.4
Downloading rsa-4.0-py2.py3-none-any.whl (38 kB)
Collecting pyasn1-modules>=0.2.1
Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
|################################| 155 kB 10.1 MB/s
Collecting pyasn1>=0.1.3
Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
|################################| 77 kB 8.1 MB/s
Building wheels for collected packages: grpc-google-iam-v1
Building wheel for grpc-google-iam-v1 (setup.py) ... done
Created wheel for grpc-google-iam-v1: filename=grpc_google_iam_v1-0.12.3-py3-none-any.whl size=15434 sha256=90b07fb679feba5ef3638c9e90dc5e77de05896408b21a5dc1d9c5f102afb63b
Stored in directory: /root/.cache/pip/wheels/76/65/cd/392da05e43270f143b6c5076ba88d39144abff586792593e7c
Successfully built grpc-google-iam-v1
Installing collected packages: googleapis-common-protos, grpc-google-iam-v1, certifi, chardet, urllib3, requests, pytz, cachetools, pyasn1, rsa, pyasn1-modules, google-auth, google-api-core, google-cloud-kms
Successfully installed cachetools-4.1.0 certifi-2020.4.5.1 chardet-3.0.4 google-api-core-1.19.1 google-auth-1.16.1 google-cloud-kms-1.4.0 googleapis-common-protos-1.52.0 grpc-google-iam-v1-0.12.3 pyasn1-0.4.8 pyasn1-modules-0.2.8 pytz-2020.1 requests-2.23.0 rsa-4.0 urllib3-1.25.9
$ docker build .
$ docker run --rm -it <image> bash
> pip3 install google-cloud-kms
# pip3 install google-cloud-kms
Collecting google-cloud-kms
Downloading google_cloud_kms-1.4.0-py2.py3-none-any.whl (66 kB)
|################################| 66 kB 558 kB/s
Collecting google-api-core[grpc]<2.0.0dev,>=1.14.0
Downloading google_api_core-1.19.1-py2.py3-none-any.whl (90 kB)
|################################| 90 kB 1.6 MB/s
Collecting grpc-google-iam-v1<0.13dev,>=0.12.3
Downloading grpc-google-iam-v1-0.12.3.tar.gz (13 kB)
Collecting googleapis-common-protos<2.0dev,>=1.6.0
Downloading googleapis_common_protos-1.52.0-py2.py3-none-any.whl (100 kB)
|################################| 100 kB 6.3 MB/s
Requirement already satisfied: setuptools>=34.0.0 in /usr/local/lib/python3.6/dist-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-kms) (47.1.1)
Collecting requests<3.0.0dev,>=2.18.0
Downloading requests-2.23.0-py2.py3-none-any.whl (58 kB)
|################################| 58 kB 7.5 MB/s
Requirement already satisfied: six>=1.10.0 in /usr/lib/python3/dist-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-kms) (1.11.0)
Collecting google-auth<2.0dev,>=1.14.0
Downloading google_auth-1.16.1-py2.py3-none-any.whl (90 kB)
|################################| 90 kB 5.5 MB/s
Collecting pytz
Downloading pytz-2020.1-py2.py3-none-any.whl (510 kB)
|################################| 510 kB 5.1 MB/s
Requirement already satisfied: protobuf>=3.4.0 in /usr/local/lib/python3.6/dist-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-kms) (3.12.2)
Collecting grpcio<2.0dev,>=1.29.0; extra == "grpc"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Downloading grpcio-1.29.0-cp36-cp36m-manylinux2010_x86_64.whl (3.0 MB)
|################################| 3.0 MB 5.9 MB/s
Collecting chardet<4,>=3.0.2
Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
|################################| 133 kB 9.5 MB/s
Requirement already satisfied: idna<3,>=2.5 in /usr/lib/python3/dist-packages (from requests<3.0.0dev,>=2.18.0->google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-kms) (2.6)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
Downloading urllib3-1.25.9-py2.py3-none-any.whl (126 kB)
|################################| 126 kB 9.2 MB/s
Collecting certifi>=2017.4.17
Downloading certifi-2020.4.5.1-py2.py3-none-any.whl (157 kB)
|################################| 157 kB 9.2 MB/s
Collecting cachetools<5.0,>=2.0.0
Downloading cachetools-4.1.0-py3-none-any.whl (10 kB)
Collecting pyasn1-modules>=0.2.1
Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
|################################| 155 kB 7.7 MB/s
Collecting rsa<4.1,>=3.1.4
Downloading rsa-4.0-py2.py3-none-any.whl (38 kB)
Collecting pyasn1<0.5.0,>=0.4.6
Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
|################################| 77 kB 6.0 MB/s
Building wheels for collected packages: grpc-google-iam-v1
Building wheel for grpc-google-iam-v1 (setup.py) ... done
Created wheel for grpc-google-iam-v1: filename=grpc_google_iam_v1-0.12.3-py3-none-any.whl size=15434 sha256=0592ae6347b487dd0a2f04fd0c58d5398e5de743d1cb49d007d2a4c4255d783a
Stored in directory: /root/.cache/pip/wheels/76/65/cd/392da05e43270f143b6c5076ba88d39144abff586792593e7c
Successfully built grpc-google-iam-v1
Installing collected packages: googleapis-common-protos, chardet, urllib3, certifi, requests, cachetools, pyasn1, pyasn1-modules, rsa, google-auth, pytz, grpcio, google-api-core, grpc-google-iam-v1, google-cloud-kms
Attempting uninstall: grpcio
Found existing installation: grpcio 1.8.1
Uninstalling grpcio-1.8.1:
Successfully uninstalled grpcio-1.8.1
Successfully installed cachetools-4.1.0 certifi-2020.4.5.1 chardet-3.0.4 google-api-core-1.19.1 google-auth-1.16.1 google-cloud-kms-1.4.0 googleapis-common-protos-1.52.0 grpc-google-iam-v1-0.12.3 grpcio-1.29.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 pytz-2020.1 requests-2.23.0 rsa-4.0 urllib3-1.25.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment