Could not load the Qt platform plugin "xcb" in "" even though it was found. (WSL on Windows 10)
aPeter1 opened this issue · comments
Describe the bug
Attempting to install using WSL on windows 10 gave me an error. I'll take a deeper look at this tonight. It did work using PowerShell so it's something weird about using WSL.
Console output
Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
Cannot load library /usr/local/lib/python3.8/dist-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory)
QLibraryPrivate::loadPlugin failed on "/usr/local/lib/python3.8/dist-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so" : "Cannot load library /usr/local/lib/python3.8/dist-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory)"
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.
Aborted
sudo apt-get update -y
sudo apt-get install -y libxcb-icccm4
Tried running beams again and it said we were missing libxcb-image.so.0 so:
sudo apt-get install -y libxcb-image0
Tried running beams again and it said we were missing libxcb-keysyms.so.1 so:
sudo apt-get install -y libxcb-keysyms1
Tried running beams again and it said we were missing libxcb-render-util.so.0 so:
sudo apt-get install -y libxcb-render-util0
(seeing a pattern?)
Tried running beams again and it said we were missing libxcb-xkb.so.1 so:
sudo apt-get install -y libxcb-xkb1
Tried running beams again and it said we were missing libxkbcommon-x11.so.0 so:
sudo apt-get install -y libxkbcommon-x11-0
And then finally got this newish error:
Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
loaded library "/usr/local/lib/python3.8/dist-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so"
qt.qpa.xcb: could not connect to display
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.
Aborted
I'm guessing this just won't work if you try to install with WSL, the linux subsystem might not be aware of the display or something, it might work with WSL2. Closing this as "install with powershell or the command prompt."