timothycrosley / streamdeck-ui

A Linux compatible UI for the Elgato Stream Deck.
https://timothycrosley.github.io/streamdeck-ui/
MIT License
1.15k stars 239 forks source link

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" #51

Closed pcolonna closed 3 years ago

pcolonna commented 4 years ago

Hi everyone,

I'm running a freshly installed ubuntu 20.04 except for Anaconda and a few python packages. I installed streamdeck-ui following the steps on the readme, add it to my path following instructions in issue #21

When i try to run streamdeck, i got the following message

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, minimal, minimalegl, offscreen, vnc, xcb.

Aborted (core dumped)

I tried uninstalling and re-install everything, but it didn't change anything.
I installed xcb with

sudo apt install xcb

still no changes.

I'm looking into re-installing Qt but no luck yet.

Any idea? Thank you very much!

bertabus-zz commented 4 years ago

I was getting the same error on ubuntu 20.04 and finally got it to run using the below command

sudo apt install --reinstall libxcb-xinerama0
dodgyrabbit commented 3 years ago

Hi @pcolonna and @bertabus I can confirm the issue you are experiencing. Detailing it here in case it's useful to someone:

The pyside2 python package (5.15.2) is supposed to install QT5 and things should just work. However, on Debian based systems like Ubuntu, there is an issue with a missing library.

https://bugreports.qt.io/browse/PYSIDE-1473 Workaround (same as per @bertabus): https://forum.qt.io/topic/116347/fresh-install-5-15-could-not-load-the-qt-platform-plugin-xcb

As a side note, README.txt and install in scripts/ubuntu_install.sh diverged a bit in the past, so depending which method you used, you would have either explicitly installed QT5 (using the script) or not (using the readme).

While we're waiting for PySide2 v5.15.3 to be released, I've updated the scripts for Debian/Ubuntu to install only the missing package.

Closing this issue.

jolinux commented 3 years ago

Hello, thanks for answer. But

I do sudo apt install --reinstall libxcb-xinerama0

Error is the same

I download the script (copy/paste) start the script as sudo and user . Script install something or not (because the system has the files before installed)

The print ############################################ echo 'Installing libraries' Installing libraries

Error is the same. Debian 10 Buster is not Ubuntu -)) No idea to fix a Debian system ??

Which lib is the problem ?

Hope a user has a solution

brentpicasso commented 3 months ago

If anyone is still having problems, this may help:

sudo apt-get install libxcb-cursor0