calm-artist-46894
01/22/2020, 12:37 AM1.23.0
Trying to run unit test with compatibility="CPython>=2.7,<3"
and start seeing issues like this today:
Failed to execute PEX file, missing linux_x86_64-cp-27-cp27mu compatible dependencies for:
importlib-metadata
zipp
With verbose:
pex: Failed to resolve a requirement: The 'zipp>=0.5' distribution was not found and is required by importlib-metadata
pex: Activating PEX virtual environment from /home/zxiong/cruise/mlp-ark/.pants.d/test/pytest-prep/CPython-2.7.15/88508bc93f076e9344b70c0dbc1c3bca526914f7 :: Resolving unittest2>=1.1$0; python_version < "3"
pex: Unresolved requirements:
pex: - importlib-metadata
pex: - zipp
pex: Distributions contained within this pex:
pex: - more_itertools-5.0.0-py2-none-any.whl
pex: - pathlib2-2.3.5-py2.py3-none-any.whl
pex: - configparser-4.0.2-py2.py3-none-any.whl
pex: - six-1.14.0-py2.py3-none-any.whl
pex: - pytest_mock-1.10.4-py2.py3-none-any.whl
pex: - argparse-1.4.0-py2.py3-none-any.whl
pex: - linecache2-1.0.0-py2.py3-none-any.whl
pex: - py-1.8.1-py2.py3-none-any.whl
pex: - scandir-1.10.0-cp27-cp27mu-linux_x86_64.whl
pex: - zipp-0.0.0-py2-none-any.whl
pex: - coverage-5.0.3-cp27-cp27mu-manylinux1_x86_64.whl
pex: - traceback2-1.4.0-py2.py3-none-any.whl
pex: - flaky-3.6.1-py2.py3-none-any.whl
pex: - funcsigs-1.0.2-py2.py3-none-any.whl
pex: - atomicwrites-1.3.0-py2.py3-none-any.whl
pex: - pluggy-0.13.1-py2.py3-none-any.whl
pex: - contextlib2-0.6.0.post1-py2.py3-none-any.whl
pex: - wcwidth-0.1.8-py2.py3-none-any.whl
pex: - importlib_metadata-1.4.0-py2.py3-none-any.whl
pex: - unittest2-1.1.0-py2.py3-none-any.whl
pex: - pytest-4.6.9-py2.py3-none-any.whl
pex: - attrs-19.3.0-py2.py3-none-any.whl
pex: - mock-3.0.5-py2.py3-none-any.whl
pex: - packaging-20.0-py2.py3-none-any.whl
pex: - pytest_timeout-1.3.4-py2.py3-none-any.whl
pex: - pyparsing-2.4.6-py2.py3-none-any.whl
pex: - pytest_cov-2.8.1-py2.py3-none-any.whl
Note that the included zipp version is zipp-0.0.0-py2-none-any.whl
zipp released version 2.0.0 2 days ago which only supports python 3. Could this be related?
Any recommendation for how to do further investigation?hundreds-father-404
01/22/2020, 12:38 AM[pytest]
pytest_plugins: +["zipp==1.0.0"]
calm-artist-46894
01/22/2020, 12:43 AMzipp-0.0.0-py2-none-any.whl
being added the .pants.d/pyprep/requirements/CPython-2.7.15/2c00180c58220438068394d843c654e7fa7bc346/.depshundreds-father-404
01/22/2020, 12:57 AM./pants clean-all
if you haven’t done so yet. I think that 1.23.0 had an issue with fingerprinting that we fixed in 1.24.0calm-artist-46894
01/22/2020, 12:58 AM1.24.0rc1
hundreds-father-404
01/22/2020, 1:04 AMcalm-artist-46894
01/22/2020, 1:35 AMhundreds-father-404
01/22/2020, 1:35 AMcalm-artist-46894
01/22/2020, 1:36 AMHuh, what do you mean by pinning the BUILD target?Pin zipp’s version in the requirment.txt and add zipp to my BUILD target