qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
-
For the start: yes, I have seen other threads such as:
https://forum.qt.io/topic/93247/qt-qpa-plugin-could-not-load-the-qt-platform-plugin-xcb-in-even-though-it-was-found
Nothing helpedI use Ubuntu 20.04. I have created a test window with PyQt, it runs on its own. However, when I import OpenCV module (cv2) I get error specified in the title. OpenCV works on its own, PyQt works on its own, both together don't work in the same programme.
I have tried to,
ldd /usr/lib/qt/plugins/platforms/libqxcb.so
but
/usr/lib/qt/
doesn't even exist. I have tried to locate libqxcb.so and it exists in multiple various directories, and I am not sure what to do from here on.
Here are the contents of QT_DEBUG_PLUGINS below. Is that Qt issue or OpenCV issue?
QFactoryLoader::QFactoryLoader() checking directory path "/home/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/cv2/qt/plugins" ... QFactoryLoader::QFactoryLoader() checking directory path "/home/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/plugins" ... QFactoryLoader::QFactoryLoader() checking directory path "/home/jokubas/anaconda3/envs/Motion/bin" ... QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/2to3" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/2to3-3.9' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/2to3-3.9' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/2to3-3.9" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/2to3-3.9' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/2to3-3.9' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/c_rehash" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/c_rehash' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/c_rehash' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/captoinfo" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/tic'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/clear" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/clear'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/dotenv" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/dotenv' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/dotenv' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/easy_install" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/easy_install' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/easy_install' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/epylint" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/epylint' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/epylint' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/f2py" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/f2py' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/f2py' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/f2py3" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/f2py3' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/f2py3' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/f2py3.9" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/f2py3.9' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/f2py3.9' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/idle3" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/idle3.9' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/idle3.9' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/idle3.9" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/idle3.9' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/idle3.9' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/infocmp" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/infocmp'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/infotocap" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/tic'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/isort" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/isort' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/isort' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/lzcat" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/xz'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/lzcmp" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/xzdiff' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/xzdiff' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/lzdiff" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/xzdiff' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/xzdiff' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/lzegrep" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/xzgrep' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/xzgrep' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/lzfgrep" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/xzgrep' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/xzgrep' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/lzgrep" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/xzgrep' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/xzgrep' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/lzless" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/xzless' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/xzless' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/lzma" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/xz'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/lzmadec" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/lzmadec'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/lzmainfo" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/lzmainfo'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/lzmore" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/xzmore' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/xzmore' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/ncursesw6-config" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/ncursesw6-config' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/ncursesw6-config' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/openssl" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/openssl'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/pip" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/pip' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/pip' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/pip3" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/pip3' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/pip3' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/pydoc" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/pydoc3.9' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/pydoc3.9' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/pydoc3" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/pydoc3.9' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/pydoc3.9' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/pydoc3.9" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/pydoc3.9' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/pydoc3.9' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/pylint" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/pylint' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/pylint' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/pylupdate5" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/pylupdate5' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/pylupdate5' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/pyqt5-tools" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/pyqt5-tools' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/pyqt5-tools' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/pyrcc5" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/pyrcc5' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/pyrcc5' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/pyreverse" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/pyreverse' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/pyreverse' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/python" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/python3.9'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/python3" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/python3.9'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/python3-config" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/python3.9-config' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/python3.9-config' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/python3.9" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/python3.9'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/python3.9-config" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/python3.9-config' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/python3.9-config' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/pyuic5" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/pyuic5' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/pyuic5' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/qt5-tools" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/qt5-tools' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/qt5-tools' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/reset" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/tset'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/sqlite3" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/sqlite3'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/sqlite3_analyzer" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/sqlite3_analyzer' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/sqlite3_analyzer' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/symilar" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/symilar' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/symilar' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/tabs" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/tabs'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/tclsh" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/tclsh8.6'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/tclsh8.6" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/tclsh8.6'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/tic" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/tic'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/toe" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/toe'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/tput" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/tput'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/tset" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/tset'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/unlzma" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/xz'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/unxz" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/xz'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/wheel" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/wheel' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/wheel' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/wish" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/wish8.6'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/wish8.6" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/wish8.6'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/x86_64-conda_cos6-linux-gnu-ld" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/x86_64-conda_cos6-linux-gnu-ld'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/xz" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/xz'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/xzcat" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/xz'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/xzcmp" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/xzdiff' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/xzdiff' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/xzdec" "Failed to extract plugin meta data from '/home/jokubas/anaconda3/envs/Motion/bin/xzdec'" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/xzdiff" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/xzdiff' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/xzdiff' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/xzegrep" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/xzgrep' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/xzgrep' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/xzfgrep" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/xzgrep' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/xzgrep' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/xzgrep" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/xzgrep' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/xzgrep' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/xzless" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/xzless' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/xzless' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/bin/xzmore" QElfParser: '/home/jokubas/anaconda3/envs/Motion/bin/xzmore' is not an ELF object "'/home/jokubas/anaconda3/envs/Motion/bin/xzmore' is not an ELF object" not a plugin QFactoryLoader::QFactoryLoader() checking directory path "/home/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/cv2/qt/plugins/platforms" ... QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/cv2/qt/plugins/platforms/libqxcb.so" Found metadata in lib /home/jokubas/anaconda3/envs/Motion/lib/python3.9/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/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/plugins/platforms" ... QFactoryLoader::QFactoryLoader() looking at "/home/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/plugins/platforms/libqeglfs.so" Found metadata in lib /home/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/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/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/plugins/platforms/libqlinuxfb.so" Found metadata in lib /home/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/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/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/plugins/platforms/libqminimal.so" Found metadata in lib /home/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/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/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/plugins/platforms/libqminimalegl.so" Found metadata in lib /home/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/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/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/plugins/platforms/libqoffscreen.so" Found metadata in lib /home/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/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/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/plugins/platforms/libqvnc.so" Found metadata in lib /home/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/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/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/plugins/platforms/libqwayland-egl.so" Found metadata in lib /home/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/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/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/plugins/platforms/libqwayland-generic.so" Found metadata in lib /home/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/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/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/plugins/platforms/libqwayland-xcomposite-egl.so" Found metadata in lib /home/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/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/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/plugins/platforms/libqwayland-xcomposite-glx.so" Found metadata in lib /home/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/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/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/plugins/platforms/libqwebgl.so" Found metadata in lib /home/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/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/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so" Found metadata in lib /home/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/PyQt5/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/jokubas/anaconda3/envs/Motion/bin/platforms" ... loaded library "/home/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/cv2/qt/plugins/platforms/libqxcb.so" QObject::moveToThread: Current thread (0x55ca7d32ff10) is not the object's thread (0x55ca7d871b20). Cannot move to target thread (0x55ca7d32ff10) qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/jokubas/anaconda3/envs/Motion/lib/python3.9/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)
-
@jokubas
I'm afraid I don't know the answer to your problem --- perhaps an expert here can? --- but I think I can give you a couple of hints from the output.When we run with
QT_DEBUG_PLUGINS=1
, we always look at the very end of the diagnostics to see what the final problem is.loaded library "/home/jokubas/anaconda3/envs/Motion/lib/python3.9/site-packages/cv2/qt/plugins/platforms/libqxcb.so"
That is the path it is using, and what you would run the
ldd
on. However, I think that will show no problems, else instead of getting"loaded ..."
you would get"Cannot load ..."
, like the link you reference shows.QObject::moveToThread: Current thread (0x55ca7d32ff10) is not the object's thread (0x55ca7d871b20).
Cannot move to target thread (0x55ca7d32ff10)
I presume this is where your error is. I know nothing, but does your code do any thread creation/use any threads?
-
@ican95
this has been answered felt about a hundred times already here in the forums, always the same solution