Help resolving PySide6 install issues on Rocky Linux 8
-
@morimo
And you ran the suggested command?I do not know whether the mention of the xcb cursor stuff in the message means that is really the issue or whether that comes whenever you get "Could not load the Qt platform plugin ..." for any reason. You could try
export QT_DEBUG_PLUGINS=1
and then run your application and look at the diagnostic output to see whether that shows the reason clearly. -
@JonB yes, I ran the command and dnf told me nothing to do.
I've also already set the debug env variable, the plugin loader finds linuxfb, libqvnc, libqvkkhrdisplay, libwayland-generic, libqminimal, libqeglfs, libqoffscreen, libqwayland-egl, libqxcb and libqminimalegl, all not in debug mode and all located in the .cache directory of the (active) poetry-managed venv. Sorry I can't post the actual output right now.
edit: is it possible that I need to force-reinstall the python package after installing the xcb dependencies?
-
@morimo
I think it should be loading the
Have a look through the thread https://forum.qt.io/post/758603 is in. I know nothing about RHEL. Can you run some equivalent ofldd /home/user/.local/lib/python3.9/site-packages/PyQt6/Qt6/plugins/platforms/libqxcb.so
to find whether that still seems to be missing the cursor stuff per the error message?
Does anything in https://forums.rockylinux.org/t/about-xcb-util-cursor-availability-in-rocky-9/11761 help your situation?
-
ldd finds libxcb-cursor.so.0
I found more packages matching xcb-utils* (xcb-util-keysyms and xcb-util-wm) that I was missing.
After installing them, the application launches successfully.
when installing qt, should one generally just install xcb-util* and be done with it? I tried looking for documentation regarding platform plugin dependencies but didn't find anything that pointed me in the right direction.
Thank you for your time @JonB
-
@morimo said in Help resolving PySide6 install issues on Rocky Linux 8:
I found more packages matching xcb-utils* (xcb-util-keysyms and xcb-util-wm) that I was missing.
Sounds like
sudo dnf install xcb-util-*
would cover those as well as thexcb-util-cursor*
ones from the original problem, and would be the suggested command for RHEL distro?Those of us on Debian have to do something similar to pick up all the dotted around, possibly required packages too.
-
@JonB I don't know, I haven't been able to find any RHEL-specific docs for either the platform plugins or PySide6 itself. I would ideally only install what is actually required recommended but I couldn't find anything. Do you know somwhere where this information should/would be documented? I am homelabbing this because I will need to deploy a PySide6-based application in a secure envronment at some point in the future, so I am trying to make my installation/deployment steps as precise as I can.
-
@morimo said in Help resolving PySide6 install issues on Rocky Linux 8:
Do you know somwhere where this information should/would be documented?
If your distribution provides PySide package you can check its dependencies.
-
Hey @morimo
The dependencies will be Qt ones, that can be found here: https://doc.qt.io/qt-6/linux-requirements.html -
@CristianMaureira Thank you, this is exactly what I was looking for. I have no idea how I didn't find it while googling.