Srill no problem I think.
Now it’s a matter of knowing your packages.
A day or two ago i was looking at the folders
where PySide6 lives in both system and user space,
(in a btrfs snapshot with python3.10)
and noticed that only one of them had “shiboken6-generator”.
Don’t remember which one.
This result tells me that only the system has shiboken6-generator
(because its version matches the system’s PySide6)
while PySide6_Essentials etc in user space never had (and don’t need) the generator.
So the previous “error”:
shiboken6-generator 6.5.0 has requirement shiboken6==6.5.0, but you have shiboken6 6.5.1.1.
was a false alert, because
shiboken6-generator 6.5.0 and shiboken6 6.5.0 both exist in system space,
and have no need to relate to what’s in user space,
while your shiboken6 6.5.1.1 is in and only for user space.
I’ll have to check details again to make sure I’m right,
but for now don’t worry about it.
EDIT:
shiboken6-generator 6.5.0 and shiboken6_generator 6.5.0
are definitely both in system python.
These (and PySide6 6.5.0) are from Manjaro repo.
EDIT2:
The generator is bundled with shiboken6, it’s not a separate package.
See (Arch Linux - shiboken6 6.7.0-3 (x86_64)) in ‘Package Contents’.
I’m 90% sure that everything is OK with your setup.
EDIT3:
From (Package Details - Qt for Python)
The package shiboken6-generator
is not a dependency, and it’s not available on PyPi.
The reason, is that it depends on libclang
, which is a large library that we don’t package
It’s for generating Python bindings in C++ libraries, which we “users” don’t normally do.
I have installed PySide6_Essentials with pip, and get the same error as you.
I have run a PySide app that I built, and it runs fine.
I have a test script that shows where it imports modules from.
This is from a normal run, importing from user space:
sys.executable : /usr/bin/python3.11
PySide6.__version__: 6.5.1.1
PySide6.__file__ : /home/jh/.local/lib/python3.11/site-packages/PySide6/__init__.py
QtCore.__file__ : /home/jh/.local/lib/python3.11/site-packages/PySide6/QtCore.abi3.so
QtGui.__file__ : /home/jh/.local/lib/python3.11/site-packages/PySide6/QtGui.abi3.so
QtWidgets.__file__ : /home/jh/.local/lib/python3.11/site-packages/PySide6/QtWidgets.abi3.so
Qt imported OK
When I tweak the path so that it cannot import from user space,
it works fine in system space:
sys.executable : /usr/bin/python3.11
PySide6.__version__: 6.5.0
PySide6.__file__ : /usr/lib/python3.11/site-packages/PySide6/__init__.py
QtCore.__file__ : /usr/lib/python3.11/site-packages/PySide6/QtCore.abi3.so
QtGui.__file__ : /usr/lib/python3.11/site-packages/PySide6/QtGui.abi3.so
QtWidgets.__file__ : /usr/lib/python3.11/site-packages/PySide6/QtWidgets.abi3.so
Qt imported OK