-
Notifications
You must be signed in to change notification settings - Fork 7.1k
0.14.0 Regression in wheel metadata #6869
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've discovered that the following steps corrects the issue.
|
thanks for clarifying this. The PDM install indeed fails with that error |
tried Hatch? |
Bazel also fails with the same error when using |
Looks like the fix would be using @groodt 's command and re-upload the binaries? |
Do we know what have caused the regression? |
I don’t think my “fix” would work exactly as is. It changes the wheel name. I’ve not looked too much into it, but something has changed that prevents this line from executing. I agree with finding the cause of the regression. vision/packaging/wheel/relocate.py Line 301 in b1f6c9e
|
Confirmed 0.13.1 works "python3 -m installer --destdir . torchvision-0.13.1-cp39-cp39-manylinux1_x86_64.whl", so indeed a regression. |
version 0.13.1 is still installed fail by pdm.
|
I'm running this now to see if I can identify any issues: I added some
Interestingly, the wheel built from master seems to install just fine.
The above command has no issues. I'll try with the specific Interestingly, this works as well. 🤷
Perhaps the uploaded wheel was just created incorrectly or uploaded incorrectly? |
This affects only binaries uploaded to official pypi index, which makes me suspect that it might be due to bug in https://github.com/pytorch/builder/blob/85fc34387957e3810602fdeea97c1a9687af04b3/release/pypi/prep_binary_for_pypi.sh#L93 |
Ah, @malfet That looks interesting. I didn't know about that script. I'll try it when I get a chance. Unless somebody else gets to it first. It does look like this PR could be a potential candidate for the regression: pytorch/builder#1164 |
I think you're on to something @malfet That script definitely corrupts the archive. I took the working wheel I produced above with
I then tried to use
Notice that I did need to remove the |
I believe I identified the issue and have submitted a PR with a proposed fix here: pytorch/builder#1215 The issue is that the |
The fix to the build script has been merged. Are there any plans to release a new version of torchvision? |
Yes, 1.13.1, which among another things will contain the change will likely be available tomorrow |
I can confirm this is now fixed in torch==1.13.1 and torchvision==0.14.1 |
🐛 Describe the bug
The wheel metadata for the 0.14.0 release seems corrupt. It is not installable through
installer
, which means that it probably isn't installable using Hatch or PDM either.The error is:
Full reproduction and traceback here:
Versions
0.14.0
The text was updated successfully, but these errors were encountered: