I'm hitting an issue which I suspect is related to...
# general
b
I'm hitting an issue which I suspect is related to a recent update of my local
pip
(details in thread)
Untitled
This is the output when I try to run a test, I get similar results on other commands as well since it fails at the pex build step
It looks like every version in pypi is being rejected
the dependency is just specified as
pytest_plugins.add =["ipdb"]
Another thing that may be a contributor is that I've also installed a couple of new python versions under
pyenv
. I've also deleted both
~/.cache/pants
and
.pants.d
to no avail
I've seen this on both
2.6.0.dev0
and
2.6.0.dev1
, both of these were working fine for me a few days ago
w
Pants uses PEX, which vendors pip
so it shouldn’t be affected by your local pip version.
it could be affected by other changes to your python install(s) though. that seems more likely.
you should check whether any of the newly installed pythons might be matched by your interpreter constraints: https://www.pantsbuild.org/docs/python-interpreter-compatibility
and if so, consider either 1) changing your interpreter constraints, 2) changing the search path that is used: https://www.pantsbuild.org/docs/python-interpreter-compatibility#changing-the-interpreter-search-path
b
I tried both, even going so far as to pin to an interpreter patch version i know is present and this didn't change anything
yeah, something with pyenv is borked - once I remove the pyenv init code from
.zshrc
/`.bashrc` , everything works again
h
It's kind of amazing how Python is so widely used and yet robust deployment of interpreters and of binaries are basically still unsolved problems.
e
FWICT the logs were saying the pyenv 3.7.7 interpreter is busted:
Copy code
WARNING: Discarding <https://files.pythonhosted.org/packages/7d/2b/04d05aafa6c07c8823a8b0b644855131f8a9e4c0024f6d14fb7b8a83a8ff/ipdb-0.1.tar.gz#sha256=b69ac2cf3101a008cc73d177db551ad04ccbaffd34b76810d5af29a8867c97bd> (from <https://pypi.org/simple/ipdb/>). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement ipdb
ERROR: No matching distribution found for ipdb
pid 159186 -> /home/nathan/.cache/pants/named_caches/pex_root/venvs/d8e5e9b222cbb0506ad915e4c2c72a50c5a61701/caa44f9cc54fd93d5e3e7d8a5d1dc00abb997a70/pex --disable-pip-version-check --no-python-version-warning --exists-action a --isolated -q --cache-dir /home/nathan/.cache/pants/named_caches/pex_root --log /tmp/process-executioniKfJN3/.tmp/tmps6eotp73/pip.log download --dest /tmp/process-executioniKfJN3/.tmp/tmpusbhgfk0/home.nathan..pyenv.versions.3.7.7.bin.python3.7 --constraint requirements.txt ipdb pytest-cov>=2.10.1,<2.12 pytest-django==3.10.0 pytest-mock==1.10.1 pytest>=6.0.1,<6.3 --index-url <https://pypi.org/simple/> --retries 5 --timeout 15 exited with 1 and STDERR:
None
IOW: Lots of Pip log lines of the form "... Discarding because python setup.py egg_info failed ..." Followed by the last line where Pex reveals the Python being used is probably pyenv Python 3.7.7 (--dest /tmp/process-executioniKfJN3/.tmp/tmpusbhgfk0/home.nathan..pyenv.versions.3.7.7.bin.python3.7).