qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
-
Hi, I am trying to run paraview for OpenFOAM but I have that error:
mrt06@DESKTOP-JQP308P:~$ paraview 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, xcb. Aborted
Then I tried with QT_DEBUG_PLUGINS=1:
mrt06@DESKTOP-JQP308P:~$ export QT_DEBUG_PLUGINS=1 mrt06@DESKTOP-JQP308P:~$ paraview QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms" ... QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so" Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "eglfs" ] }, "archreq": 0, "className": "QEglFSIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("eglfs") QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so" Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "linuxfb" ] }, "archreq": 0, "className": "QLinuxFbIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("linuxfb") QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so" Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "minimal" ] }, "archreq": 0, "className": "QMinimalIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("minimal") QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so" Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "minimalegl" ] }, "archreq": 0, "className": "QMinimalEglIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("minimalegl") QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so" Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "offscreen" ] }, "archreq": 0, "className": "QOffscreenIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("offscreen") QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so" Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "vnc" ] }, "archreq": 0, "className": "QVncIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("vnc") QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so" Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "xcb" ] }, "archreq": 0, "className": "QXcbIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("xcb") QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ... loaded library "/usr/lib/x86_64-linux-gnu/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, xcb. Aborted
After that I wrote that line without any conscious and get that:
mrt06@DESKTOP-JQP308P:~$ ldd /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so linux-vdso.so.1 (0x00007fff2fbd8000) libQt5XcbQpa.so.5 => /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 (0x00007f10aff1b000) libQt5Gui.so.5 => /lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f10af83d000) libQt5Core.so.5 => /lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f10af2de000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f10af0b2000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f10aee88000) libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f10aee3e000) libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f10aed76000) libQt5DBus.so.5 => /lib/x86_64-linux-gnu/libQt5DBus.so.5 (0x00007f10aece2000) libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f10aecdd000) libxcb-icccm.so.4 => /lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x00007f10aecd6000) libxcb-image.so.0 => /lib/x86_64-linux-gnu/libxcb-image.so.0 (0x00007f10aecce000) libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f10aecc9000) libxcb-keysyms.so.1 => /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 (0x00007f10aecc4000) libxcb-randr.so.0 => /lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007f10aecb1000) libxcb-render-util.so.0 => /lib/x86_64-linux-gnu/libxcb-render-util.so.0 (0x00007f10aecaa000) libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f10aec9b000) libxcb-shape.so.0 => /lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007f10aec94000) libxcb-sync.so.1 => /lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f10aec8a000) libxcb-xfixes.so.0 => /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007f10aec80000) libxcb-xinerama.so.0 => /lib/x86_64-linux-gnu/libxcb-xinerama.so.0 (0x00007f10aec7b000) libxcb-xkb.so.1 => /lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x00007f10aec5d000) libxcb-xinput.so.0 => /lib/x86_64-linux-gnu/libxcb-xinput.so.0 (0x00007f10aec39000) libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f10aec0d000) libXrender.so.1 => /lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f10aec00000) libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f10aeac0000) libSM.so.6 => /lib/x86_64-linux-gnu/libSM.so.6 (0x00007f10aeab5000) libICE.so.6 => /lib/x86_64-linux-gnu/libICE.so.6 (0x00007f10aea98000) libxkbcommon-x11.so.0 => /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 (0x00007f10aea8d000) libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f10aea44000) libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f10ae90a000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f10ae823000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f10ae803000) libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f10ae77c000) libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f10ae73f000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f10ae723000) libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f10ae654000) libmd4c.so.0 => /lib/x86_64-linux-gnu/libmd4c.so.0 (0x00007f10ae642000) libdouble-conversion.so.3 => /lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x00007f10ae62d000) libicui18n.so.70 => /lib/x86_64-linux-gnu/libicui18n.so.70 (0x00007f10ae2fe000) libicuuc.so.70 => /lib/x86_64-linux-gnu/libicuuc.so.70 (0x00007f10ae101000) libpcre2-16.so.0 => /lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007f10ae077000) libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f10adfa8000) /lib64/ld-linux-x86-64.so.2 (0x00007f10b00b4000) libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f10adf77000) libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f10adf6e000) libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f10adf5e000) libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f10adf10000) libxcb-util.so.1 => /lib/x86_64-linux-gnu/libxcb-util.so.1 (0x00007f10adf07000) libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f10adf01000) libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f10adef9000) libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f10adedf000) libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f10ade69000) libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f10addb1000) libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f10add7d000) libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f10add56000) libicudata.so.70 => /lib/x86_64-linux-gnu/libicudata.so.70 (0x00007f10ac136000) libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f10ac113000) libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f10ac04c000) libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f10ac03f000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f10ac014000) liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f10abff2000) libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f10abfe7000) libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f10abea9000) libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f10abe83000)
I am using wsl2 Ubuntu and I have no idea with Linux. Can you please tell me what should I do? I tried to install libraries but nothing is changed
-
Had the same problem today. Activated QT_DEBUG_PLUGINS:
(.venv) raspifm@raspifm:~/Documents/src/raspiFM $ cd /home/raspifm/Documents/src/raspiFM ; /usr/bin/env /home/raspifm/Documents/src/raspiFM/.venv/bin/python /home/raspifm/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 37365 -- -m src.touchui qt.core.plugin.factoryloader: checking directory path "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms" ... qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqwayland-egl.so" qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqwayland-egl.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "wayland-egl" ] }, "archlevel": 0, "className": "QWaylandEglPlatformIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("wayland-egl") qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqoffscreen.so" qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqoffscreen.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "offscreen" ] }, "archlevel": 0, "className": "QOffscreenIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("offscreen") qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqlinuxfb.so" qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqlinuxfb.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "linuxfb" ] }, "archlevel": 0, "className": "QLinuxFbIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("linuxfb") qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so" qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "xcb" ] }, "archlevel": 0, "className": "QXcbIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("xcb") qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqvnc.so" qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqvnc.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "vnc" ] }, "archlevel": 0, "className": "QVncIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("vnc") qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqminimalegl.so" qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqminimalegl.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "minimalegl" ] }, "archlevel": 0, "className": "QMinimalEglIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimalegl") qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqvkkhrdisplay.so" qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqvkkhrdisplay.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "vkkhrdisplay" ] }, "archlevel": 0, "className": "QVkKhrDisplayIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("vkkhrdisplay") qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqwayland-generic.so" qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqwayland-generic.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "wayland" ] }, "archlevel": 0, "className": "QWaylandIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("wayland") qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqeglfs.so" qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqeglfs.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "eglfs" ] }, "archlevel": 0, "className": "QEglFSIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("eglfs") qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqminimal.so" qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqminimal.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "minimal" ] }, "archlevel": 0, "className": "QMinimalIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimal") qt.core.plugin.factoryloader: checking directory path "/usr/bin/platforms" ... qt.core.library: "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so" cannot load: Cannot load library /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so: (libxcb-cursor.so.0: cannot open shared object file: No such file or directory) qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so: (libxcb-cursor.so.0: 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: wayland-egl, offscreen, linuxfb, xcb, vnc, minimalegl, vkkhrdisplay, wayland, eglfs, minimal.
Installed package libxcb-cursor0 and now it works....
-
I just spun up a fresh Ubuntu 23.10 box with default options selected. From there, I tried installing Qt first thing.
I couldn't launch the Qt Maintenance tool / installer until I did this:
sudo apt-get install -y build-essential libx11-xcb-dev libglu1-mesa-dev libxcb-xinerama0
After installation, I still couldn't launch Creator, running into error "qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found."
So, I found this web page (which appears to be for the benefit of Stamford students working on something or another I didn't bother trying to figure out) on how to install Qt on Linux: https://web.stanford.edu/dept/cs_edu/resources/qt/install-linux They aren't explicit about the Qt version the instructions at targeting, but there is a screenshot showing v6.5. I was aiming for v6.6.1 using Creator v12.0.1 and this worked for that as well.
That link says before doing anything (including running the installer) do this:
sudo apt-get update && sudo apt-get upgrade
That's obvious, of course, since it's the first step to most every such problem!
Then, they say do this:
sudo apt-get -y install build-essential openssl libssl-dev libssl1.0 libgl1-mesa-dev libqt5x11extras5 '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
Once I ran that, the problem was resolved!
This is a shotgun approach, which I did rather blindly (as is common to do with cutting & pasting suggested solutions into Linux terminals when we just want to move forward without a deep dive!). I'm not sure that all of that is really needed (like qt 5 stuff?). It seems likely those are all the dependencies from whatever specifically those students needed for their project. If anyone wants to try this one-by-one and confirm the exact minimum requirements, that would be great! I figure I'll do that at some point, but not today...
-
This post is deleted!
-
root@beaglebone-yocto:/# cd usr/bin
root@beaglebone-yocto:/usr/bin# ./calculator
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: minimal, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
Aborted
root@beaglebone-yocto:/usr/bin#
i got same error,sir can you explain what is the error ? -
@_APM_ said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:
i got same error,sir can you explain what is the error ?
Is X11 server running?
-
I got this error when loading a QT6 program that didn't ship the required QT6 plugins. Instead, the plugin package loaded was a QT5 one, so there was a mismatch.
apt-get install qt6-qpa-plugins
will install thelibqxcb.so
file required along with libqeglfs.so, libqminimalegl.so, libqoffscreen.so, libqvnc.so, libqlinuxfb.so, libqminimal.so and libqvkkhrdisplay.so. -
same error
trying to run autolabelimg on my local machine
github repo - https://github.com/wufan-tb/AutoLabelImgwhile doing the same the error I am getting continuously while trying to open the software is -
(ano) workstation@workstation-HP-Z4-G4-Workstation:~/AutoLabelImg$ python labelImg.py
QObject::moveToThread: Current thread (0x5616f4c8c8c0) is not the object's thread (0x5616f9c826f0).
Cannot move to target thread (0x5616f4c8c8c0)qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/cv2/qt/plugins" 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: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.
Aborted (core dumped)
have tried reinstalling libxcb, i have tried export Qt platform plugin set command also, have tried the famous sudo apt-get install libxcb-xinerama0 command also, nothing is helping
using ubuntu 20.04, can someone please help
-
@ami01 You should really use the search function in this forum. This is asked very often.
To debug plug-in problems like yours do: set QT_DEBUG_PLUGINS env variable before ruinning your app, then inspect (or post here) its output. See https://doc.qt.io/qt-6/debug.html for details. -
@ami01 I laready provided this information to you here: https://forum.qt.io/topic/148718/qt-qpa-plugin-could-not-load-the-qt-platform-plugin-xcb-in-even-though-it-was-found/6
Did you actually try that? If not - why? -
@jsulm
I did try and now my terminal is showing the message -
(ano) workstation@workstation-HP-Z4-G4-Workstation:~/AutoLabelImg$ python labelImg.py
QFactoryLoader::QFactoryLoader() checking directory path "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/cv2/qt/plugins" ...
QFactoryLoader::QFactoryLoader() checking directory path "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins" ...
QFactoryLoader::QFactoryLoader() checking directory path "/home/workstation/anaconda3/envs/ano/bin" ...
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/2to3"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/2to3-3.7' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/2to3-3.7' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/2to3-3.7"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/2to3-3.7' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/2to3-3.7' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/c_rehash"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/c_rehash' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/c_rehash' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/captoinfo"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/tic'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/clear"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/clear'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/convert-caffe2-to-onnx"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/convert-caffe2-to-onnx' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/convert-caffe2-to-onnx' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/convert-onnx-to-caffe2"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/convert-onnx-to-caffe2' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/convert-onnx-to-caffe2' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/f2py"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/f2py' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/f2py' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/f2py3"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/f2py3' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/f2py3' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/f2py3.7"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/f2py3.7' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/f2py3.7' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/fonttools"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/fonttools' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/fonttools' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/idle3"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/idle3.7' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/idle3.7' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/idle3.7"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/idle3.7' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/idle3.7' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/imageio_download_bin"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/imageio_download_bin' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/imageio_download_bin' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/imageio_remove_bin"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/imageio_remove_bin' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/imageio_remove_bin' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/infocmp"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/infocmp'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/infotocap"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/tic'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/lsm2bin"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/lsm2bin' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/lsm2bin' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/lzcat"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/xz'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/lzcmp"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/xzdiff' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/xzdiff' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/lzdiff"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/xzdiff' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/xzdiff' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/lzegrep"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/xzgrep' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/xzgrep' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/lzfgrep"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/xzgrep' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/xzgrep' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/lzgrep"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/xzgrep' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/xzgrep' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/lzless"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/xzless' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/xzless' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/lzma"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/xz'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/lzmadec"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/lzmadec'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/lzmainfo"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/lzmainfo'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/lzmore"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/xzmore' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/xzmore' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/natsort"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/natsort' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/natsort' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/ncursesw6-config"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/ncursesw6-config' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/ncursesw6-config' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/normalizer"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/normalizer' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/normalizer' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/openssl"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/openssl'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/pip"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/pip' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/pip' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/pip3"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/pip3' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/pip3' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/pydoc"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/pydoc3.7' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/pydoc3.7' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/pydoc3"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/pydoc3.7' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/pydoc3.7' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/pydoc3.7"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/pydoc3.7' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/pydoc3.7' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/pyftmerge"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/pyftmerge' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/pyftmerge' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/pyftsubset"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/pyftsubset' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/pyftsubset' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/pylupdate5"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/pylupdate5' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/pylupdate5' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/pyrcc5"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/pyrcc5' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/pyrcc5' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/python"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/python3.7'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/python3"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/python3.7'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/python3-config"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/python3.7m-config' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/python3.7m-config' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/python3.7"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/python3.7'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/python3.7-config"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/python3.7m-config' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/python3.7m-config' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/python3.7m"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/python3.7'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/python3.7m-config"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/python3.7m-config' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/python3.7m-config' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/pyuic5"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/pyuic5' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/pyuic5' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/pyvenv"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/pyvenv-3.7' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/pyvenv-3.7' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/pyvenv-3.7"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/pyvenv-3.7' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/pyvenv-3.7' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/reset"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/tset'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/skivi"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/skivi' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/skivi' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/sqlite3"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/sqlite3'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/sqlite3_analyzer"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/sqlite3_analyzer' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/sqlite3_analyzer' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/tabs"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/tabs'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/tclsh"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/tclsh8.6'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/tclsh8.6"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/tclsh8.6'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/tic"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/tic'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/tiff2fsspec"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/tiff2fsspec' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/tiff2fsspec' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/tiffcomment"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/tiffcomment' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/tiffcomment' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/tifffile"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/tifffile' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/tifffile' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/toe"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/toe'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/torchrun"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/torchrun' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/torchrun' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/tput"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/tput'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/tqdm"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/tqdm' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/tqdm' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/tset"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/tset'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/ttx"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/ttx' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/ttx' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/unlzma"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/xz'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/unxz"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/xz'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/wheel"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/wheel' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/wheel' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/wish"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/wish8.6'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/wish8.6"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/wish8.6'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/x86_64-conda-linux-gnu-ld"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/x86_64-conda-linux-gnu-ld'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/x86_64-conda_cos7-linux-gnu-ld"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/x86_64-conda-linux-gnu-ld'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/xz"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/xz'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/xzcat"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/xz'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/xzcmp"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/xzdiff' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/xzdiff' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/xzdec"
"Failed to extract plugin meta data from '/home/workstation/anaconda3/envs/ano/bin/xzdec'"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/xzdiff"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/xzdiff' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/xzdiff' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/xzegrep"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/xzgrep' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/xzgrep' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/xzfgrep"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/xzgrep' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/xzgrep' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/xzgrep"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/xzgrep' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/xzgrep' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/xzless"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/xzless' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/xzless' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/bin/xzmore"
QElfParser: '/home/workstation/anaconda3/envs/ano/bin/xzmore' is not an ELF object
"'/home/workstation/anaconda3/envs/ano/bin/xzmore' is not an ELF object"
not a plugin
QFactoryLoader::QFactoryLoader() checking directory path "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/cv2/qt/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/cv2/qt/plugins/platforms/libqxcb.so"
Found metadata in lib /home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/cv2/qt/plugins/platforms/libqxcb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"xcb"
]
},
"archreq": 0,
"className": "QXcbIntegrationPlugin",
"debug": false,
"version": 331520
}Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqeglfs.so"
Found metadata in lib /home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqeglfs.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"eglfs"
]
},
"archreq": 0,
"className": "QEglFSIntegrationPlugin",
"debug": false,
"version": 331520
}Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqlinuxfb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"linuxfb"
]
},
"archreq": 0,
"className": "QLinuxFbIntegrationPlugin",
"debug": false,
"version": 331520
}Got keys from plugin meta data ("linuxfb")
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqminimal.so"
Found metadata in lib /home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqminimal.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimal"
]
},
"archreq": 0,
"className": "QMinimalIntegrationPlugin",
"debug": false,
"version": 331520
}Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqminimalegl.so"
Found metadata in lib /home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqminimalegl.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimalegl"
]
},
"archreq": 0,
"className": "QMinimalEglIntegrationPlugin",
"debug": false,
"version": 331520
}Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqoffscreen.so"
Found metadata in lib /home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqoffscreen.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"offscreen"
]
},
"archreq": 0,
"className": "QOffscreenIntegrationPlugin",
"debug": false,
"version": 331520
}Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqvnc.so"
Found metadata in lib /home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqvnc.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"vnc"
]
},
"archreq": 0,
"className": "QVncIntegrationPlugin",
"debug": false,
"version": 331520
}Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-egl.so"
Found metadata in lib /home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-egl.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"wayland-egl"
]
},
"archreq": 0,
"className": "QWaylandEglPlatformIntegrationPlugin",
"debug": false,
"version": 331520
}Got keys from plugin meta data ("wayland-egl")
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-generic.so"
Found metadata in lib /home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-generic.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"wayland"
]
},
"archreq": 0,
"className": "QWaylandIntegrationPlugin",
"debug": false,
"version": 331520
}Got keys from plugin meta data ("wayland")
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-xcomposite-egl.so"
Found metadata in lib /home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-xcomposite-egl.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"wayland-xcomposite-egl"
]
},
"archreq": 0,
"className": "QWaylandXCompositeEglPlatformIntegrationPlugin",
"debug": false,
"version": 331520
}Got keys from plugin meta data ("wayland-xcomposite-egl")
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-xcomposite-glx.so"
Found metadata in lib /home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-xcomposite-glx.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"wayland-xcomposite-glx"
]
},
"archreq": 0,
"className": "QWaylandXCompositeGlxPlatformIntegrationPlugin",
"debug": false,
"version": 331520
}Got keys from plugin meta data ("wayland-xcomposite-glx")
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwebgl.so"
Found metadata in lib /home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwebgl.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"webgl"
]
},
"archreq": 0,
"className": "QWebGLIntegrationPlugin",
"debug": false,
"version": 331520
}Got keys from plugin meta data ("webgl")
QFactoryLoader::QFactoryLoader() looking at "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so"
Found metadata in lib /home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"xcb"
]
},
"archreq": 0,
"className": "QXcbIntegrationPlugin",
"debug": false,
"version": 331520
}Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/home/workstation/anaconda3/envs/ano/bin/platforms" ...
loaded library "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/cv2/qt/plugins/platforms/libqxcb.so"
QObject::moveToThread: Current thread (0x5623c38ef7c0) is not the object's thread (0x5623c310ff40).
Cannot move to target thread (0x5623c38ef7c0)qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/cv2/qt/plugins" 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: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.
Aborted (core dumped)
(ano) workstation@workstation-HP-Z4-G4-Workstation:~/AutoLabelImg$ -
@ami01 said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:
loaded library "/home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/cv2/qt/plugins/platforms/libqxcb.so"
QObject::moveToThread: Current thread (0x5623c38ef7c0) is not the object's thread (0x5623c310ff40).
Cannot move to target thread (0x5623c38ef7c0)Not clear what is being moved to another thread here.
Is /home/workstation/anaconda3/envs/ano/lib/python3.7/site-packages/cv2/qt the Qt installation you want to use? -
a bit late but for future use and reference. followed the ldd on the plugin and libxcursor.so wasn't found. My solution:
sudo apt install libxcb-*
and it works (Qt6 already)