# Pyside6 on Rocky Linux 9.6 is missing xcb plugin

**URL:** <https://forums.rockylinux.org/t/pyside6-on-rocky-linux-9-6-is-missing-xcb-plugin/19828>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [November 3, 2025, 3:58am UTC](https://forums.rockylinux.org/t/pyside6-on-rocky-linux-9-6-is-missing-xcb-plugin/19828 "2025-11-03T03:58:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![frueter](https://avatars.discourse-cdn.com/v4/letter/f/a183cd/32.png) [@frueter](https://forums.rockylinux.org/u/frueter)\
**Post date:** [November 3, 2025, 3:58am UTC](https://forums.rockylinux.org/t/pyside6-on-rocky-linux-9-6-is-missing-xcb-plugin/19828/1 "2025-11-03T03:58:48Z")

</div>

On Rocky Linux 9.6 I disabled Wayland by editing /etc/gdm/custom.conf.

I then instyalled PySide6 into a venv but when I try to use it I get this error:

```auto
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “/mnt/home/frank_rocky/Documents/dev/virtual_envs/cut_detector_ui/lib64/python3.11/site-packages/cv2/qt/plugins” even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

```

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, wayland-brcm, wayland-egl, wayland, xcb.

Based on info on the web I successively tried:

`dnf install epel-release`

`dnf install mesa-libGLU.x86_64`

`dnf install mesa-libGL-devel`

```auto

dnf install libfontconfig1-dev libfreetype-dev libgtk-3-dev libx11-dev libx11-xcb-dev libxcb-cursor-dev libxcb-glx0-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-render-util0-dev libxcb-shape0-dev libxcb-shm0-dev libxcb-sync-dev libxcb-util-dev libxcb-xfixes0-dev libxcb-xkb-dev libxcb1-dev libxext-dev libxfixes-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev libxrender-dev

```

`dnf install xcb-cursor*`

`dnf install xcb-util-*`

But nothing worked.

Can somebody help please?

Cheers,

frank

---

<div class="post-metadata">

**Author:** ![0x0](https://avatars.discourse-cdn.com/v4/letter/0/6bbea6/32.png) [@0x0](https://forums.rockylinux.org/u/0x0)\
**Post date:** [November 4, 2025, 12:13am UTC](https://forums.rockylinux.org/t/pyside6-on-rocky-linux-9-6-is-missing-xcb-plugin/19828/2 "2025-11-04T00:13:16Z")

</div>

Hi frueter,

do you have QT6 installed on system ?

> [@frueter](#):
>
> `This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.`

I usually do “dnf install qt6-qtwebengine” and rest of QT6 platform gets pulled in to system.

---

<div class="post-metadata">

**Author:** ![frueter](https://avatars.discourse-cdn.com/v4/letter/f/a183cd/32.png) [@frueter](https://forums.rockylinux.org/u/frueter)\
**Post date:** [November 4, 2025, 12:39am UTC](https://forums.rockylinux.org/t/pyside6-on-rocky-linux-9-6-is-missing-xcb-plugin/19828/3 "2025-11-04T00:39:27Z")

</div>

OMG, I feel stupid now. That did the trick of course.  
I realise now why I thought this was already installed:  
With PySide2 (which I had to stick to for the longest time) I could use dnf to install which pulled QT as well.  
With PySide6 I had to use pip and my muscle memory made my brain go “all done” and never look back.

Thanks!! I was too far down the rabbit hole to realise.

Frank

---

<div class="post-metadata">

**Author:** ![0x0](https://avatars.discourse-cdn.com/v4/letter/0/6bbea6/32.png) [@0x0](https://forums.rockylinux.org/u/0x0)\
**Post date:** [November 4, 2025, 12:42am UTC](https://forums.rockylinux.org/t/pyside6-on-rocky-linux-9-6-is-missing-xcb-plugin/19828/4 "2025-11-04T00:42:55Z")

</div>

No problems. Glad you fixed it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [January 3, 2026, 12:43am UTC](https://forums.rockylinux.org/t/pyside6-on-rocky-linux-9-6-is-missing-xcb-plugin/19828/5 "2026-01-03T00:43:39Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
