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

Closed
borco opened this issue Dec 20, 2024 · 4 comments
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).

@charliermarsh charliermarsh added bug Something isn't working duplicate This issue or pull request already exists labels Dec 20, 2024
jeertmans added a commit to jeertmans/manim-slides that referenced this issue Jan 2, 2025
jeertmans added a commit to jeertmans/manim-slides that referenced this issue Jan 2, 2025
jeertmans added a commit to jeertmans/manim-slides that referenced this issue Jan 2, 2025
* fix(deps): bump ManimGL>=1.7.2

This bumps and fixes issues related to latest ManimGL version, as it includes breaking changes.

* fix(docs): PR number

* fix(deps): PySide6 issue

See astral-sh/uv#10056

* fix(ci): headers
jeertmans added a commit to jeertmans/manim-slides that referenced this issue Jan 3, 2025
* feat(cli): document config options

* chpre(docs): add changelog entry

* fixes

* chore(deps): remove restriction

* fix(deps): PySide6 issue

See astral-sh/uv#10056

* chore(docs): document config options

* chore(fmt): auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fox(docs): deps

* chore(tests): remove old test

* chore(fmt): auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@cbrnr
Copy link

cbrnr commented Jan 8, 2025

I agree that this is really a packaging issue, and the list of packages that misuse the system is kind of shocking! Is there any workaround for this particular case that we could use in the meantime?

Related issue: https://bugreports.qt.io/browse/PYSIDE-2971

@cbrnr
Copy link

cbrnr commented Jan 8, 2025

They've uploaded the missing packages so this issue can be closed.

@charliermarsh
Copy link
Member

Oh great, thank you!

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

3 participants