wonderful-iron-54019
09/16/2020, 10:11 PMsetuptools
dependency version issueswonderful-iron-54019
09/16/2020, 10:12 PMModuleNotFoundError: No module named 'pkg_resources.py31compat'
in my build container
pex --interpreter-constraint='CPython>=3.7' -i <https://artifactory.us-east-1.com/pypi/simple> thanos[cli]==11.3.2 setuptools==45.2.0 -o thanos.pex -m thanos
wonderful-iron-54019
09/16/2020, 10:12 PMwonderful-iron-54019
09/16/2020, 10:13 PMmanylinux2014_x86_64-cp-37-cp37m
wonderful-iron-54019
09/16/2020, 10:13 PMwonderful-iron-54019
09/16/2020, 10:14 PM>>>
# pip list | grep setuptools
setuptools 45.2.0
setuptools-scm 3.4.3
# # python
Python 3.7.9 (default, Aug 18 2020, 06:24:24)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import pkg_resources.py31compat
>>>
wonderful-iron-54019
09/16/2020, 10:14 PMhundreds-father-404
09/16/2020, 10:16 PMthanos
might be a red herring. With the Pex CLI, try installing just that bad transitive dep and nothing else
If that works, could you please copy the command youβre using? Itβll help us to reproducewonderful-iron-54019
09/16/2020, 10:22 PMpex --interpreter-constraint='CPython>=3.7' -i <https://artifactory.us-east-1.bamgrid.net/api/pypi/dataengineering-pypi/simple> boto3 -o boto3.pex -m boto3
witty-crayon-22786
09/16/2020, 10:25 PMwonderful-iron-54019
09/16/2020, 10:26 PMdatabricksruntime/python-virtualenv:latest
public imagewonderful-iron-54019
09/16/2020, 10:26 PMwonderful-iron-54019
09/16/2020, 10:27 PMwitty-crayon-22786
09/16/2020, 10:29 PM~/src/venvs/pex/bin/pex --interpreter-constraint='CPython>=3.7' boto3
and ~/src/venvs/pex/bin/pex --interpreter-constraint='CPython>=3.7' boto3 setuptools==45.2.0
are both finewitty-crayon-22786
09/16/2020, 10:30 PMimport pkg_resources.py31compat
successfully)witty-crayon-22786
09/16/2020, 10:31 PMwitty-crayon-22786
09/16/2020, 10:32 PMwitty-crayon-22786
09/16/2020, 10:33 PMpex
that ships with pants 1.30 i think?wonderful-iron-54019
09/16/2020, 10:34 PMwonderful-iron-54019
09/16/2020, 10:35 PMwitty-crayon-22786
09/16/2020, 10:41 PMwonderful-iron-54019
09/16/2020, 10:42 PMwonderful-iron-54019
09/16/2020, 10:42 PMwitty-crayon-22786
09/16/2020, 10:42 PMwitty-crayon-22786
09/16/2020, 10:43 PMhundreds-father-404
09/16/2020, 10:47 PMwonderful-iron-54019
09/16/2020, 10:48 PMhundreds-father-404
09/16/2020, 10:49 PMwonderful-iron-54019
09/16/2020, 10:49 PMhundreds-father-404
09/16/2020, 10:49 PMwonderful-iron-54019
09/16/2020, 10:49 PMwonderful-iron-54019
09/16/2020, 10:51 PMwonderful-iron-54019
09/16/2020, 10:52 PM# pip install boto3
Collecting boto3
Downloading boto3-1.14.63.tar.gz (97 kB)
|ββββββββββββββββββββββββββββββββ| 97 kB 2.0 MB/s
Collecting botocore<1.18.0,>=1.17.63
Downloading botocore-1.17.63-py2.py3-none-any.whl (6.6 MB)
|ββββββββββββββββββββββββββββββββ| 6.6 MB 4.2 MB/s
Collecting jmespath<1.0.0,>=0.7.1
Downloading jmespath-0.10.0-py2.py3-none-any.whl (24 kB)
Collecting s3transfer<0.4.0,>=0.3.0
Downloading s3transfer-0.3.3-py2.py3-none-any.whl (69 kB)
|ββββββββββββββββββββββββββββββββ| 69 kB 5.7 MB/s
Collecting urllib3<1.26,>=1.20; python_version != "3.4"
Downloading urllib3-1.25.10-py2.py3-none-any.whl (127 kB)
|ββββββββββββββββββββββββββββββββ| 127 kB 17.4 MB/s
Collecting docutils<0.16,>=0.10
Downloading docutils-0.15.2-py3-none-any.whl (547 kB)
|ββββββββββββββββββββββββββββββββ| 547 kB 16.0 MB/s
Collecting python-dateutil<3.0.0,>=2.1
Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
|ββββββββββββββββββββββββββββββββ| 227 kB 5.8 MB/s
Collecting six>=1.5
Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Building wheels for collected packages: boto3
Building wheel for boto3 (setup.py) ... done
Created wheel for boto3: filename=boto3-1.14.63-py2.py3-none-any.whl size=127856 sha256=236c64173f95a8916dfc182ae1e27bbb2bff95c7c9997b686211288b62a7794e
Stored in directory: /root/.cache/pip/wheels/23/8c/0f/3bc284d5679e59e94fb5606c3e3f086a539e9e26ec61311fe8
Successfully built boto3
Installing collected packages: urllib3, jmespath, docutils, six, python-dateutil, botocore, s3transfer, boto3
Successfully installed boto3-1.14.63 botocore-1.17.63 docutils-0.15.2 jmespath-0.10.0 python-dateutil-2.8.1 s3transfer-0.3.3 six-1.15.0 urllib3-1.25.10
#
wonderful-iron-54019
09/16/2020, 10:52 PMwitty-crayon-22786
09/16/2020, 10:55 PMwitty-crayon-22786
09/16/2020, 10:55 PMwitty-crayon-22786
09/16/2020, 10:59 PMhundreds-father-404
09/16/2020, 11:00 PMwitty-crayon-22786
09/16/2020, 11:01 PMwitty-crayon-22786
09/16/2020, 11:01 PMwitty-crayon-22786
09/16/2020, 11:28 PMwitty-crayon-22786
09/16/2020, 11:29 PMwonderful-iron-54019
09/16/2020, 11:32 PMwitty-crayon-22786
09/16/2020, 11:33 PMwonderful-iron-54019
09/16/2020, 11:34 PMwonderful-iron-54019
09/16/2020, 11:34 PMwitty-crayon-22786
09/16/2020, 11:35 PMwitty-crayon-22786
09/16/2020, 11:37 PM--system-site-packages
would do that for now. iβll validate that the second workaround is an actual fix.witty-crayon-22786
09/16/2020, 11:42 PMhundreds-father-404
09/17/2020, 12:37 AM--system-site-packagesI donβt follow this recommendation. Where is this being set atm? Either workaround, I think that we need to make changes to the core
PexRequest
type in the Plugin API. Weβll cherry-pick that into 1.30witty-crayon-22786
09/17/2020, 12:37 AMwitty-crayon-22786
09/17/2020, 12:38 AMwitty-crayon-22786
09/17/2020, 12:38 AMhundreds-father-404
09/17/2020, 1:00 AMwonderful-iron-54019
09/17/2020, 12:16 PMwonderful-iron-54019
09/17/2020, 12:16 PMwonderful-iron-54019
09/17/2020, 12:33 PM--system-site-packages
flag, will run the container through the rest of the build stepswonderful-iron-54019
09/17/2020, 5:46 PMwonderful-iron-54019
09/17/2020, 5:46 PMwitty-crayon-22786
09/17/2020, 5:47 PMwonderful-iron-54019
09/17/2020, 5:47 PM