Python Forum
PyQt5 : Could not load the Qt platform plugin "xcb"
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyQt5 : Could not load the Qt platform plugin "xcb"
#1
Hi

I have had to reinstall my Ubutu 20.04 distro. In this process I reinstalled PyQt5 with PIP. In running a script which used to be fonctionnal I received the following message :

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Abandon (core dumped)


I don't know how to solve this failure.

Arbiel
Reply
#2
Please post the solution you found.
Reply
#3
Install Ubu 22.04, it's the latest LTS version I believe. (To make compiz work well use Unity Desktop. Then you can use those lovely Wobbly Windows and other Eye Candy!) Also, you will have the 6-series kernels.

Then use uv to make yourself a nice Virtual Environment of any Python version you want, as snippsat, moderator here, advises.

Then, in the Virtual Environment you made, install PyQt5 and test!

I have only ever t-tinkered with t-kinter, but Cuty5 should work ok.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Huge code problems (buttons(PyQt5),PyQt5 Threads, Windows etc) ZenWoR 0 4,035 Apr-06-2019, 11:15 PM
Last Post: ZenWoR
  PyQt5 can't load video DecaK 6 14,711 Sep-04-2018, 01:03 PM
Last Post: Axel_Erfurt

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020