Skip to content

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

@borco

Description

@borco

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions