-
-
Notifications
You must be signed in to change notification settings - Fork 641
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
Pants 2.19 fails to download WHLs with URL-escaped chars #20474
Comments
I tried to bisect with:
and ended up at pex-tool/pex@45eea4b |
Thanks @cburroughs. Wonder if this is something Pants does wrong when invoking Pex or if it's a Pex issue. I see a few added unquote f.ex., which would lead to the issues observed if not quoted on-use. For clarity, can you show the same regression with extra-indexes as well? Or is this find-links specific code paths? |
If someone knows of a package on PyPi that uses the |
It's a local version specifier, and I don't think PyPi would accept them -- they're meant for distro patches, primarily. Torch using them for API spec is... a stretch, semantically. I did a test myself using torch's extra index and couldn't repro, so seems like find-links is the issue. |
Changelogs: * https://github.com/pantsbuild/pex/releases/tag/v2.1.160 * https://github.com/pantsbuild/pex/releases/tag/v2.1.161 * https://github.com/pantsbuild/pex/releases/tag/v2.1.162 ``` Lockfile diff: 3rdparty/python/user_reqs.lock [python-default] == Upgraded dependencies == certifi 2023.11.17 --> 2024.2.2 cryptography 41.0.7 --> 42.0.2 pex 2.1.159 --> 2.1.162 pluggy 1.3.0 --> 1.4.0 pydantic 1.10.13 --> 1.10.14 python-dotenv 1.0.0 --> 1.0.1 urllib3 2.1.0 --> 2.2.0 ``` Further support relative to pantsbuild#15704 Fixes pantsbuild#20474
Describe the bug
Pants 2.19 fails to download WHL files hosted on URLs that contain URL-escaped characters. This applies to both URLs already present in the lockfile and to URLs retrieved during
generate-lockfiles
.For example, instead of:
https://download.pytorch.org/whl/cpu/torch-2.0.1%2Bcpu-cp311-cp311-linux_x86_64.whl
it attempts (and fails) to download:
https://download.pytorch.org/whl/cpu/torch-2.0.1+cpu-cp311-cp311-linux_x86_64.whl
Seems to be related to the
v2.1.148
PEX version, as downgrading tov2.1.137
resolves the issuePants version
2.19.0
OS
Both MacOS and Linux
Additional info
Minimalist example to reproduce:
The text was updated successfully, but these errors were encountered: