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

"uv add PySide6" fails when the latest version doesn't have a wheel for the current platform #10056

Open
borco opened this issue Dec 20, 2024 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@borco
Copy link

borco commented Dec 20, 2024

At the time of writing this, the latest version of PySide6 is 6.8.1.1. I assume this is a patch release only for macos, as there is only one wheel for macos in it.

When I try to install PySide6 on Windows, I get an error that no source or wheel is available:

$ uv add pyside6
Resolved 5 packages in 6ms
error: Distribution `pyside6==6.8.1.1 @ registry+https://pypi.org/simple` can't be installed 
because it doesn't have a source distribution or wheel for the current platform

However, the older release 6.8.1 contains wheels for many other platforms. If I blacklist the 6.8.1.1 version, then installing on Windows works:

$ uv add "pyside6>=6.8.1,!=6.8.1.1"
Resolved 5 packages in 257ms
Installed 4 packages in 1.05s
 + pyside6==6.8.1
 + pyside6-addons==6.8.1
 + pyside6-essentials==6.8.1
 + shiboken6==6.8.1

Is it possible to automatically detect such a case and install from the older version without having to explicitly blacklist the latest version that only contains wheels for other platform(s)?

PySide 6.8.1.1 files

PySide 6.8.1 files

Image

Image

@charliermarsh
Copy link
Member

This is tracked in #9711 (though this is really a package issue -- they should be uploading a consistent set of wheels, the system isn't designed to be used this way).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants