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

Possible wheel issue or a uv bug. #13

Open
jefftriplett opened this issue Mar 8, 2024 · 4 comments
Open

Possible wheel issue or a uv bug. #13

jefftriplett opened this issue Mar 8, 2024 · 4 comments

Comments

@jefftriplett
Copy link

I can't tell if this is a uv issue or a valid issue:

/code# uv pip install just-bin
Resolved 1 package in 1ms
error: Failed to install: just_bin-1.24.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl (just-bin==1.24.0)
  Caused by: The wheel is invalid: Line 5 of the WHEEL file is invalid

Running pip install just-bin without uv works, but I thought I would pass this along just in case because I see 100s of other packages work as expected, but this the first I have seen reliable not install.

@justin-yan
Copy link
Owner

Thanks for sharing!

I haven't used uv before, but looking at astral-sh/uv#2149 - I'll double-check at some point to see whether the wheels I'm generating are invalid in some way.

@justin-yan
Copy link
Owner

Finally got around to playing with uv a bit and can confirm that this installs fine now.

However, will leave this issue open as I'm not sure the tag entries I'm producing in the WHEEL file are technically correct (currently the platform specs are on one line, . delimited, but I think technically they may need to be on separate tag lines).

From the linked issue, it seems that neither pip nor uv (now) will bother validating these entries, but will still track this as being technically not correct.

@jefftriplett
Copy link
Author

Thank you for the update. I am seeing a slightly different error now:

root@0a8419e1f29d:/code# uv pip install --system just-bin
Resolved 1 package in 3ms
error: Failed to install: just_bin-1.26.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.http.whl (just-bin==1.26.0)
  Caused by: The wheel is invalid: Line 5 of the WHEEL file is invalid

My workaround is to let pip install just-bin on the same line that it's installing/upgrading pip and uv. This is fine, but I wanted to bring it up in case it trips anyone else up.

@justin-yan
Copy link
Owner

What version of uv are you using?

~$ uv pip install --system just-bin
Resolved 1 package in 146ms
Installed 1 package in 2ms
 + just-bin==1.26.0

Is what I see

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants