cool-easter-32542
07/01/2023, 7:24 PME WARNING: Skipping page <https://pypi.org/simple/psutil/> because the GET request got Content-Type: Unknown. The only supported Content-Types are application/vnd.pypi.simple.v1+json, application/vnd.pypi.simple.v1+html, and text/html
E ERROR: Could not find a version that satisfies the requirement psutil==5.9.1 (from versions: none)
E ERROR: No matching distribution found for psutil==5.9.1
In particular this very much looks like a PyPI issue on the surface due to the claim of Content-Type: Unknown by Pip:
WARNING: Skipping page <https://pypi.org/simple/psutil/> because the GET request got Content-Type: Unknown. The only supported Content-Types are application/vnd.pypi.simple.v1+json, application/vnd.pypi.simple.v1+html, and text/html
I happened upon this though just now: pypa/pip#11340 (comment) and that certainly would explain this issue since CI tests many versions of Pip spanning 20.3.4 <-> 23.1.2 currently but Pex uses a single directory for the Pip cache here:
pex/pex/pip/tool.py
Lines 304 to 305 in </pantsbuild/pex/commit/c2fa8130d3dfb38f19f550a5bb0a3c69b7459f0d|c2fa813>
pantsbuild/pexcool-easter-32542
07/02/2023, 2:44 PM