This application failed to start because no Qt platform plugin could be initialized

I followed the install instructions and get this error. Libxcb is installed.

Anki starting…
Initial setup…
Running with temporary Qt5 compatibility shims.
Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.
Preparing to run…
Wayland support is disabled by default due to bugs:
https:/github.com/ankitects/anki/issues/1767
You can force it on with an env var: ANKI_WAYLAND=1
File “”, line 1, in
File “aqt”, line 489, in run
File “aqt”, line 556, in _run
File “aqt.profiles”, line 131, in setupMeta
File “aqt.profiles”, line 411, in _loadMeta
resetting corrupt _global
Qt debug: checking directory path “/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms” …
Qt debug: looking at “/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so”
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so, metadata=
{
“IID”: “org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3”,
“MetaData”: {
“Keys”: [
“xcb”
]
},
“archlevel”: 1,
“className”: “QXcbIntegrationPlugin”,
“debug”: false,
“version”: 394496
}

Qt debug: Got keys from plugin meta data QList(“xcb”)
Qt debug: looking at “/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-egl.so”
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-egl.so, metadata=
{
“IID”: “org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3”,
“MetaData”: {
“Keys”: [
“wayland-egl”
]
},
“archlevel”: 1,
“className”: “QWaylandEglPlatformIntegrationPlugin”,
“debug”: false,
“version”: 394496
}

Qt debug: Got keys from plugin meta data QList(“wayland-egl”)
Qt debug: looking at “/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-generic.so”
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-generic.so, metadata=
{
“IID”: “org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3”,
“MetaData”: {
“Keys”: [
“wayland”
]
},
“archlevel”: 1,
“className”: “QWaylandIntegrationPlugin”,
“debug”: false,
“version”: 394496
}

Qt debug: Got keys from plugin meta data QList(“wayland”)
Qt debug: looking at “/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvnc.so”
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvnc.so, metadata=
{
“IID”: “org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3”,
“MetaData”: {
“Keys”: [
“vnc”
]
},
“archlevel”: 1,
“className”: “QVncIntegrationPlugin”,
“debug”: false,
“version”: 394496
}

Qt debug: Got keys from plugin meta data QList(“vnc”)
Qt debug: looking at “/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvkkhrdisplay.so”
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvkkhrdisplay.so, metadata=
{
“IID”: “org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3”,
“MetaData”: {
“Keys”: [
“vkkhrdisplay”
]
},
“archlevel”: 1,
“className”: “QVkKhrDisplayIntegrationPlugin”,
“debug”: false,
“version”: 394496
}

Qt debug: Got keys from plugin meta data QList(“vkkhrdisplay”)
Qt debug: looking at “/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimal.so”
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimal.so, metadata=
{
“IID”: “org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3”,
“MetaData”: {
“Keys”: [
“minimal”
]
},
“archlevel”: 1,
“className”: “QMinimalIntegrationPlugin”,
“debug”: false,
“version”: 394496
}

Qt debug: Got keys from plugin meta data QList(“minimal”)
Qt debug: looking at “/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqoffscreen.so”
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqoffscreen.so, metadata=
{
“IID”: “org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3”,
“MetaData”: {
“Keys”: [
“offscreen”
]
},
“archlevel”: 1,
“className”: “QOffscreenIntegrationPlugin”,
“debug”: false,
“version”: 394496
}

Qt debug: Got keys from plugin meta data QList(“offscreen”)
Qt debug: looking at “/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqlinuxfb.so”
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqlinuxfb.so, metadata=
{
“IID”: “org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3”,
“MetaData”: {
“Keys”: [
“linuxfb”
]
},
“archlevel”: 1,
“className”: “QLinuxFbIntegrationPlugin”,
“debug”: false,
“version”: 394496
}

Qt debug: Got keys from plugin meta data QList(“linuxfb”)
Qt debug: looking at “/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimalegl.so”
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimalegl.so, metadata=
{
“IID”: “org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3”,
“MetaData”: {
“Keys”: [
“minimalegl”
]
},
“archlevel”: 1,
“className”: “QMinimalEglIntegrationPlugin”,
“debug”: false,
“version”: 394496
}

Qt debug: Got keys from plugin meta data QList(“minimalegl”)
Qt debug: looking at “/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqeglfs.so”
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqeglfs.so, metadata=
{
“IID”: “org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3”,
“MetaData”: {
“Keys”: [
“eglfs”
]
},
“archlevel”: 1,
“className”: “QEglFSIntegrationPlugin”,
“debug”: false,
“version”: 394496
}

Qt debug: Got keys from plugin meta data QList(“eglfs”)
Qt debug: checking directory path “/usr/local/share/anki/platforms” …
Qt debug: “/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so” cannot load: Cannot load library /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so: (libxcb-cursor.so.0: cannot open shared object file: No such file or directory)
Qt debug: QLibraryPrivate::loadPlugin failed on “/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so” : “Cannot load library /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so: (libxcb-cursor.so.0: cannot open shared object file: No such file or directory)”
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: xcb, wayland-egl, wayland, vnc, vkkhrdisplay, minimal, offscreen, linuxfb, minimalegl, eglfs.

Aborted (core dumped)

I installed ANKI normally on my Ubuntu 22.04.2 LTS operating system and when starting ANKI it does not open, running through the terminal the following error appears in the terminal, I would like to know if anyone knows how to solve it

Anki starting…
Initial setup…
Running with temporary Qt5 compatibility shims.
Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.
Preparing to run…
File “”, line 1, in
File “aqt”, line 489, in run
File “aqt”, line 556, in _run
File “aqt.profiles”, line 131, in setupMeta
File “aqt.profiles”, line 411, 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: linuxfb, wayland, xcb, vkkhrdisplay, eglfs, offscreen, vnc, minimalegl, wayland-egl, minimal.

You need to install libxcb-cursor0.

8 Likes

In new ubuntu version, some packages has been removed, causing some errors:

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, xcb, wayland, minimalegl, vnc, linuxfb, offscreen, minimal, wayland-egl, vkkhrdisplay.

1 Like

thanks man worked for me

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.