Ubuntu 20.04 xcb
I started getting the following when running my app from PyCharm:
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: vkkhrdisplay, linuxfb, wayland-egl, minimalegl, wayland, minimal, xcb, offscreen, vnc, eglfs.
I am able to run the app from the command line using python3 (3.10.6).
I dont recall changing anything other than doing an software update to the whole OS. Can anyone provide any guidance please or direct me to any posts that would be helpful?
请先登录再写评论。
Finally solved!
Using "
export QT_DEBUG_PLUGINS=1
" I found libxcb-cursor.so.0 was missing, so I used:sudo apt install libxcb-cursor0
When I try this solution "sudo apt install libxcb-cursor0, the program is work.
Thank you
Fucking awesome dude, thank you for the solution.
sudo apt install libxcb-cursor0
thank you so much for solving the problem