-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
Occasional BadZipFile
error when running cargo test
#706
Comments
@0-wiz-0 It would be helpful if you can upload the |
Sorry, I had deleted the checkout with the failure. I've just retried and it didn't fail. Here's the wheel (zipped, because otherwise github wouldn't let me attach it) anyway, I hope it's useful. I'll try a couple more times. |
So I ran
wheel-error.zip |
I don't have much to add to help debug this (couldn't reproduce myself yet), but our automated testing ran into something I believe is the same in https://bugs.gentoo.org/825242, aka develop_pyo3_pure + |
❯ file cffi_mixed-0.1.0-py3-none-netbsd_9_99_92_amd64.zip
cffi_mixed-0.1.0-py3-none-netbsd_9_99_92_amd64.zip: Zip archive data, at least v2.0 to extract, compression method=deflate
~/Downloads
❯ unzip cffi_mixed-0.1.0-py3-none-netbsd_9_99_92_amd64.zip
Archive: cffi_mixed-0.1.0-py3-none-netbsd_9_99_92_amd64.zip
inflating: cffi_mixed-0.1.0.dist-info/METADATA
inflating: cffi_mixed-0.1.0.dist-info/WHEEL
inflating: cffi_mixed.pth
inflating: cffi_mixed-0.1.0.dist-info/RECORD Looks like it is a valid zip file. Python 3.9.2 (default, Mar 20 2021, 21:34:09)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from zipfile import ZipFile
>>> f = ZipFile('cffi_mixed-0.1.0-py3-none-netbsd_9_99_92_amd64.zip', allowZip64=True)
>>> f.namelist()
['cffi_mixed-0.1.0.dist-info/METADATA', 'cffi_mixed-0.1.0.dist-info/WHEEL', 'cffi_mixed.pth', 'cffi_mixed-0.1.0.dist-info/RECORD']
>>> The error from |
Is it possible it's not the issue of maturin built wheel but the issue of their dependencies get corrupted somehow? |
I'm unable to open https://bugs.gentoo.org/show_bug.cgi?id=825242, it gives me 500 Internal Server Error. |
Sorry, link is fine but ended up being bad timing (down right now) https://infra-status.gentoo.org/ Edit: think still having intermittent issues, not that there's much to see on the bug beside the unhelpful log |
We will have a better understanding about this once pypa/pip#10535 released in a new pip version. |
I tried with pip install from git, it doesn't give much more information:
Both wheels are actually valid and can be installed. |
My rough guess is that there's some kind of race condition happening that mis-detects a failure, I'm never able to reproduce if I use |
I hopefully fixed it in 28d273a, we were writing to the same wheel from different threads |
Closing for now, feel free to reopen if it still occurs. |
I did try
cargo build
, which was successful, and thencargo test
. The first time it seems I was missing virtualenv, so I installed that. Now it mostly works but I have two test failures:Am I missing another dependency or is there a bug here?
Originally posted by @0-wiz-0 in #703 (comment)
https://github.com/PyO3/maturin/runs/4329769684?check_suite_focus=true
The text was updated successfully, but these errors were encountered: