Install Qt Binding hook installs PySide2 on Windows for Python 3.11+
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
Research direction
Start in client/ayon_equalizer/hooks/pre_install_qt_bindings.py, following the Windows call to install_pyside_windows() and its parameters near the lines cited in the issue. Compare it with install_pyside() on Linux and macOS. Pass the selected binding through the Windows install path, then confirm the hook uses PySide6 for Python 3.11 or newer and PySide2 for older versions.
Written by the indexing model from the issue text.
Description
Problem
The Install Qt Binding launch hook always installs PySide2 on Windows, even when the Python of 3DE is 3.11 or newer and the hook itself decided that PySide6 is needed.
The hook picks the binding from the Python version:
and checks for that binding:
On Linux and macOS, pyside_name is passed on to the install:
On Windows, install_pyside_windows() doesn't get pyside_name:
and installs PySide2 unconditionally:
Expected
With 3DE Python 3.11 or newer on Windows, the hook installs PySide6, as it does on Linux and macOS.
Actual (from reading the code)
- PySide2 has no wheels for Python 3.11 and newer, so the pip install fails, or installs a binding the AYON tools don't use.
- The next launch checks for PySide6 again, finds it missing, and asks for administrator rights again, on every launch.
Suggested fix
Pass pyside_name to install_pyside_windows() and use it in parameters, like install_pyside() does.
Found in 0.2.3 (0c027d0); develop has the same code.
- Dominant language
- Python
- Stars
- 3
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ynput/ayon-equalizer
-
workfile publishOpencommunity type: enhancement
Difficulty 5/5 Over a week Newbie friendliness 30/100
ynput/ayon-equalizer#39 · 1 comment ·
-
community type: feature
Difficulty 5/5 Over a week Newbie friendliness 28/100
ynput/ayon-equalizer#22 ·
-
community type: enhancement
Difficulty 3/5 1-2 days Newbie friendliness 45/100
ynput/ayon-equalizer#14 ·
All issues in ynput/ayon-equalizer
Similar issues
-
bug feature request
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Qiskit/qiskit-obp#156 ·
-
action-item enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
getcommunityone/open-navigator#1658 ·
Maintainers usually reply within 1 day
-
review-panel severity:low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
kristovatlas/coin-accounting#636 ·
Maintainers usually reply within 1 day