Skip to content

How to fix plugin could not be loaded on Linux - PySide6 #588

@SteampunkIslande

Description

@SteampunkIslande

Sometimes, when running a PySide6 module, you may get an error:

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" 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: vnc, xcb, wayland, minimalegl, offscreen, minimal, wayland-egl, eglfs, vkkhrdisplay, linuxfb.

Fatal Python error: Aborted

To fix:

sudo apt install libxcb-xinerama0 libxcb-cursor0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions