-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
unzip
and zipfile
disagree on CRC validity for a wheel
#132526
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
Comments
I’ll look into this later. BTW gh uses backticks for code in titles, it displays wrong on some pages. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I think the file may be corrupted. 7zip also says There are a few different differences between the local header and central directory for Central directory: Looks like The rest of the files in that zip look fine. |
Thanks for the detailed investigation. Based on what you found, I would not fault Python for rejecting the file. IMO, it could even reject the file just based on disagreement between local header and central directory. I also wonder how the file got to be corrupted in the first place. It is the result of a fairly standard Github workflow that uses https://github.com/pypa/cibuildwheel/. |
I've identified a likely culprit:
Sorry about the noise everyone, and thanks for helping get me pointed in the right direction! |
Bug report
Bug description:
This concerns the file at:
https://files.pythonhosted.org/packages/42/a7/bd659e33e10c62b4acabaa1d5da2efa496434a021f8792ab1f23f6fb5514/islpy-2025.1.3-cp313-cp313-macosx_11_0_arm64.whl
(sha256sum:
d4821572531e1035727200c0fb8adabeea1d127ead69d75a3e5f5677f5510e7c
)If I download it manually,
unzip
seems to like the data OK:But
zipfile
does not seem to like the file:Coincidentally, a
pip install
that tries to use this file will also fail.uv pip install
will succeed; I am guessing this uses a different (Rust?) implementation of zip's CRC checking?x-ref: inducer/islpy#162
CPython versions tested on:
3.13
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: