Could not load the Qt platform plugin "xcb" in "" even though it was found

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
lapsana
Posts: 12
Joined: 2021-10-14 13:06

Could not load the Qt platform plugin "xcb" in "" even though it was found

#1 Post by lapsana »

Hi everyone,

I didn't find the an answer to this problem here or elsewhere on the web before.

I'm trying to install anki on my machine but apparently am missing some plugins libraries that I can't manage to install (or to be sure about which exactly should I install).

Here's the code I get when trying to run anki :

Code: Select all

root@xxxx:~# anki
Anki starting...
Initial setup...
Preparing to run...
  File "<string>", line 1, in <module>
  File "aqt", line 556, in run
  File "aqt", line 629, in _run
  File "aqt.profiles", line 139, in setupMeta
  File "aqt.profiles", line 424, in _loadMeta
resetting corrupt _global
Qt info: Could not load the Qt platform plugin "xcb" in "" even though it was found. 
Qt fatal: 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.
 
Abandon
root@xxxx:~# QT_DEBUG_PLUGINS=1 anki
Anki starting...
Initial setup...
Preparing to run...
  File "<string>", line 1, in <module>
  File "aqt", line 556, in run
  File "aqt", line 629, in _run
  File "aqt.profiles", line 139, in setupMeta
  File "aqt.profiles", line 424, in _loadMeta
resetting corrupt _global
Qt debug: QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/share/anki/lib/PyQt5/Qt5/plugins/platforms" ... 
Qt debug: QFactoryLoader::QFactoryLoader() looking at "/usr/local/share/anki/lib/PyQt5/Qt5/plugins/platforms/libqeglfs.so" 
Qt warning: Found metadata in lib /usr/local/share/anki/lib/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
}

 
Qt debug: Got keys from plugin meta data ("eglfs") 
Qt debug: QFactoryLoader::QFactoryLoader() looking at "/usr/local/share/anki/lib/PyQt5/Qt5/plugins/platforms/libqlinuxfb.so" 
Qt warning: Found metadata in lib /usr/local/share/anki/lib/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
}

 
Qt debug: Got keys from plugin meta data ("linuxfb") 
Qt debug: QFactoryLoader::QFactoryLoader() looking at "/usr/local/share/anki/lib/PyQt5/Qt5/plugins/platforms/libqminimal.so" 
Qt warning: Found metadata in lib /usr/local/share/anki/lib/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
}

 
Qt debug: Got keys from plugin meta data ("minimal") 
Qt debug: QFactoryLoader::QFactoryLoader() looking at "/usr/local/share/anki/lib/PyQt5/Qt5/plugins/platforms/libqminimalegl.so" 
Qt warning: Found metadata in lib /usr/local/share/anki/lib/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
}

 
Qt debug: Got keys from plugin meta data ("minimalegl") 
Qt debug: QFactoryLoader::QFactoryLoader() looking at "/usr/local/share/anki/lib/PyQt5/Qt5/plugins/platforms/libqoffscreen.so" 
Qt warning: Found metadata in lib /usr/local/share/anki/lib/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
}

 
Qt debug: Got keys from plugin meta data ("offscreen") 
Qt debug: QFactoryLoader::QFactoryLoader() looking at "/usr/local/share/anki/lib/PyQt5/Qt5/plugins/platforms/libqvnc.so" 
Qt warning: Found metadata in lib /usr/local/share/anki/lib/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
}

 
Qt debug: Got keys from plugin meta data ("vnc") 
Qt debug: QFactoryLoader::QFactoryLoader() looking at "/usr/local/share/anki/lib/PyQt5/Qt5/plugins/platforms/libqwayland-egl.so" 
Qt warning: Found metadata in lib /usr/local/share/anki/lib/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
}

 
Qt debug: Got keys from plugin meta data ("wayland-egl") 
Qt debug: QFactoryLoader::QFactoryLoader() looking at "/usr/local/share/anki/lib/PyQt5/Qt5/plugins/platforms/libqwayland-generic.so" 
Qt warning: Found metadata in lib /usr/local/share/anki/lib/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
}

 
Qt debug: Got keys from plugin meta data ("wayland") 
Qt debug: QFactoryLoader::QFactoryLoader() looking at "/usr/local/share/anki/lib/PyQt5/Qt5/plugins/platforms/libqwayland-xcomposite-egl.so" 
Qt warning: Found metadata in lib /usr/local/share/anki/lib/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
}

 
Qt debug: Got keys from plugin meta data ("wayland-xcomposite-egl") 
Qt debug: QFactoryLoader::QFactoryLoader() looking at "/usr/local/share/anki/lib/PyQt5/Qt5/plugins/platforms/libqwayland-xcomposite-glx.so" 
Qt warning: Found metadata in lib /usr/local/share/anki/lib/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
}

 
Qt debug: Got keys from plugin meta data ("wayland-xcomposite-glx") 
Qt debug: QFactoryLoader::QFactoryLoader() looking at "/usr/local/share/anki/lib/PyQt5/Qt5/plugins/platforms/libqwebgl.so" 
Qt warning: Found metadata in lib /usr/local/share/anki/lib/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
}

 
Qt debug: Got keys from plugin meta data ("webgl") 
Qt debug: QFactoryLoader::QFactoryLoader() looking at "/usr/local/share/anki/lib/PyQt5/Qt5/plugins/platforms/libqxcb.so" 
Qt warning: Found metadata in lib /usr/local/share/anki/lib/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
}

 
Qt debug: Got keys from plugin meta data ("xcb") 
Qt debug: QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/share/anki/platforms" ... 
Qt debug: Cannot load library /usr/local/share/anki/lib/PyQt5/Qt5/plugins/platforms/libqxcb.so: (libxcb-util.so.1: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type) 
Qt warning: QLibraryPrivate::loadPlugin failed on "/usr/local/share/anki/lib/PyQt5/Qt5/plugins/platforms/libqxcb.so" : "Cannot load library /usr/local/share/anki/lib/PyQt5/Qt5/plugins/platforms/libqxcb.so: (libxcb-util.so.1: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type)" 
Qt info: Could not load the Qt platform plugin "xcb" in "" even though it was found. 
Qt fatal: 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.
 
Abandon
Reinstalling didn't fiw the problem and I'v tried to install some of the quoted available platform plugins but those apparently are no packages names.

Can anyone help me fix this problem please ?

mrmazda
Posts: 499
Joined: 2023-06-02 02:22
Has thanked: 14 times
Been thanked: 62 times

Re: Could not load the Qt platform plugin "xcb" in "" even though it was found

#2 Post by mrmazda »

I didn't find the an answer to this problem here or elsewhere on the web before.
Did you try already on Anki's website? If you downloaded it the anki website, you may need to ask there: https://forums.ankiweb.net/

Which Debian version are you using? If version from standard Debian repos, laurinhg its packager @gmx.de may be able to provide some guidance.

What method of installation did you use?

I never heard of Anki before, so don't know of any users.

lapsana
Posts: 12
Joined: 2021-10-14 13:06

Re: Could not load the Qt platform plugin "xcb" in "" even though it was found

#3 Post by lapsana »

Thanks for your answer.

Yes, I followed anki's website troubleshooting guide.
I'm using Debian 10.13 cinnamon
I installed Anki via terminal commands.

mrmazda
Posts: 499
Joined: 2023-06-02 02:22
Has thanked: 14 times
Been thanked: 62 times

Re: Could not load the Qt platform plugin "xcb" in "" even though it was found

#4 Post by mrmazda »

Which terminal commands? Where did the anki you installed come from?

Post Reply