Problems running mpf monitor: No Qt platform plugin could be initialized

62 views
Skip to first unread message

Aziz Pinball

unread,
Sep 17, 2023, 4:21:55 AM9/17/23
to MPF Users
Hi!

I am unable to run the monitor. I installed mpf and mpf_mc following Ralfs instructions (https://groups.google.com/g/mpf-users/c/bcAAxTcDwMI/m/Hmk2AgcdAAAJ) and installed the monitor with

pip3 install mpf-monitor

When I try to run it, I get

sebastian@ride:~/Repositories/hypnotron2/MPF$ mpf monitor
INFO : root : Loading MPF Monitor
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, xcb, wayland-egl, vnc, offscreen, eglfs, minimalegl, linuxfb, vkkhrdisplay, wayland.

Aborted (core dumped)


Qt debug gives me little more information:

 QT_DEBUG_PLUGINS=1 mpf monitor
INFO : root : Loading MPF Monitor
qt.core.plugin.factoryloader: checking directory path "/home/sebastian/.local/lib/python3.9/site-packages/PyQt6/Qt6/plugins/platforms" ...
qt.core.plugin.factoryloader: looking at "/home/sebastian/.local/lib/python3.9/site-packages/PyQt6/Qt6/plugins/platforms/libqminimal.so"
qt.core.plugin.loader: Found metadata in lib /home/sebastian/.local/lib/python3.9/site-packages/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.core.plugin.factoryloader: Got keys from plugin meta data QList("minimal")
qt.core.plugin.factoryloader: looking at "/home/sebastian/.local/lib/python3.9/site-packages/PyQt6/Qt6/plugins/platforms/libqxcb.so"
qt.core.plugin.loader: Found metadata in lib /home/sebastian/.local/lib/python3.9/site-packages/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.core.plugin.factoryloader: Got keys from plugin meta data QList("xcb")
qt.core.plugin.factoryloader: looking at "/home/sebastian/.local/lib/python3.9/site-packages/PyQt6/Qt6/plugins/platforms/libqwayland-egl.so"
qt.core.plugin.loader: Found metadata in lib /home/sebastian/.local/lib/python3.9/site-packages/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.core.plugin.factoryloader: Got keys from plugin meta data QList("wayland-egl")
qt.core.plugin.factoryloader: looking at "/home/sebastian/.local/lib/python3.9/site-packages/PyQt6/Qt6/plugins/platforms/libqvnc.so"
qt.core.plugin.loader: Found metadata in lib /home/sebastian/.local/lib/python3.9/site-packages/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.core.plugin.factoryloader: Got keys from plugin meta data QList("vnc")
qt.core.plugin.factoryloader: looking at "/home/sebastian/.local/lib/python3.9/site-packages/PyQt6/Qt6/plugins/platforms/libqoffscreen.so"
qt.core.plugin.loader: Found metadata in lib /home/sebastian/.local/lib/python3.9/site-packages/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.core.plugin.factoryloader: Got keys from plugin meta data QList("offscreen")
qt.core.plugin.factoryloader: looking at "/home/sebastian/.local/lib/python3.9/site-packages/PyQt6/Qt6/plugins/platforms/libqeglfs.so"
qt.core.plugin.loader: Found metadata in lib /home/sebastian/.local/lib/python3.9/site-packages/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.core.plugin.factoryloader: Got keys from plugin meta data QList("eglfs")
qt.core.plugin.factoryloader: looking at "/home/sebastian/.local/lib/python3.9/site-packages/PyQt6/Qt6/plugins/platforms/libqminimalegl.so"
qt.core.plugin.loader: Found metadata in lib /home/sebastian/.local/lib/python3.9/site-packages/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.core.plugin.factoryloader: Got keys from plugin meta data QList("minimalegl")
qt.core.plugin.factoryloader: looking at "/home/sebastian/.local/lib/python3.9/site-packages/PyQt6/Qt6/plugins/platforms/libqlinuxfb.so"
qt.core.plugin.loader: Found metadata in lib /home/sebastian/.local/lib/python3.9/site-packages/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.core.plugin.factoryloader: Got keys from plugin meta data QList("linuxfb")
qt.core.plugin.factoryloader: looking at "/home/sebastian/.local/lib/python3.9/site-packages/PyQt6/Qt6/plugins/platforms/libqvkkhrdisplay.so"
qt.core.plugin.loader: Found metadata in lib /home/sebastian/.local/lib/python3.9/site-packages/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.core.plugin.factoryloader: Got keys from plugin meta data QList("vkkhrdisplay")
qt.core.plugin.factoryloader: looking at "/home/sebastian/.local/lib/python3.9/site-packages/PyQt6/Qt6/plugins/platforms/libqwayland-generic.so"
qt.core.plugin.loader: Found metadata in lib /home/sebastian/.local/lib/python3.9/site-packages/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.core.plugin.factoryloader: Got keys from plugin meta data QList("wayland")
qt.core.plugin.factoryloader: checking directory path "/usr/bin/platforms" ...
qt.core.library: "/home/sebastian/.local/lib/python3.9/site-packages/PyQt6/Qt6/plugins/platforms/libqxcb.so" cannot load: Cannot load library /home/sebastian/.local/lib/python3.9/site-packages/PyQt6/Qt6/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/sebastian/.local/lib/python3.9/site-packages/PyQt6/Qt6/plugins/platforms/libqxcb.so" : "Cannot load library /home/sebastian/.local/lib/python3.9/site-packages/PyQt6/Qt6/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: minimal, xcb, wayland-egl, vnc, offscreen, eglfs, minimalegl, linuxfb, vkkhrdisplay, wayland.

Aborted (core dumped)


I already tried reinstalling as stated in the error message, no dice though.
Any hints on how I can make this work?

Thanks,
Sebastian

Ben Tripoli

unread,
Sep 18, 2023, 1:20:35 AM9/18/23
to MPF Users
I too had problems with the monitor. I dont remember my exact error message, my research told me to run the below and it worked. Not sure if this relates or if you want to give this a try.

sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev

MPF Users

unread,
Sep 19, 2023, 4:33:21 AM9/19/23
to MPF Users
That did the trick, thank you! Now I've got everything running again! \o/
Reply all
Reply to author
Forward
0 new messages