Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sporadic Pip HTTP errors in CI #2163

Closed
jsirois opened this issue Jul 1, 2023 · 0 comments · Fixed by #2164
Closed

Sporadic Pip HTTP errors in CI #2163

jsirois opened this issue Jul 1, 2023 · 0 comments · Fixed by #2164
Assignees
Labels

Comments

@jsirois
Copy link
Member

jsirois commented Jul 1, 2023

This has actually been happening a while (~1 year): https://github.com/pantsbuild/pex/actions/runs/5432519810/jobs/9879610414#step:8:1734

It looks like so:

E       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:
https://github.com/pantsbuild/pex/blob/c2fa8130d3dfb38f19f550a5bb0a3c69b7459f0d/pex/pip/tool.py#L304-L305

@jsirois jsirois added the bug label Jul 1, 2023
@jsirois jsirois mentioned this issue Jul 1, 2023
2 tasks
@jsirois jsirois self-assigned this Jul 1, 2023
jsirois added a commit to jsirois/pex that referenced this issue Jul 2, 2023
jsirois added a commit that referenced this issue Jul 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant