Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

qt.qpa.xcb: could not connect to display :1.0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.



  • Re: qt.qpa.xcb: could not connect to display

    I am trying to open a GUI on a ssh machince. I am getting the below error:
    Using TensorFlow backend.
    QFactoryLoader::QFactoryLoader() checking directory path "/qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "/qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqeglfs.so"
    Found metadata in lib /qfs/people/deso666/.conda/envs/particle/lib/python3.6/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": 331008
    }

    Got keys from plugin meta data ("eglfs")
    QFactoryLoader::QFactoryLoader() looking at "/qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqlinuxfb.so"
    Found metadata in lib /qfs/people/deso666/.conda/envs/particle/lib/python3.6/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": 331008
    }

    Got keys from plugin meta data ("linuxfb")
    QFactoryLoader::QFactoryLoader() looking at "/qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqminimal.so"
    Found metadata in lib /qfs/people/deso666/.conda/envs/particle/lib/python3.6/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": 331008
    }

    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "/qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqminimalegl.so"
    Found metadata in lib /qfs/people/deso666/.conda/envs/particle/lib/python3.6/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": 331008
    }

    Got keys from plugin meta data ("minimalegl")
    QFactoryLoader::QFactoryLoader() looking at "/qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqoffscreen.so"
    Found metadata in lib /qfs/people/deso666/.conda/envs/particle/lib/python3.6/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": 331008
    }

    Got keys from plugin meta data ("offscreen")
    QFactoryLoader::QFactoryLoader() looking at "/qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqvnc.so"
    Found metadata in lib /qfs/people/deso666/.conda/envs/particle/lib/python3.6/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": 331008
    }

    Got keys from plugin meta data ("vnc")
    QFactoryLoader::QFactoryLoader() looking at "/qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqwayland-egl.so"
    Found metadata in lib /qfs/people/deso666/.conda/envs/particle/lib/python3.6/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": 331008
    }

    Got keys from plugin meta data ("wayland-egl")
    QFactoryLoader::QFactoryLoader() looking at "/qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqwayland-generic.so"
    Found metadata in lib /qfs/people/deso666/.conda/envs/particle/lib/python3.6/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": 331008
    }

    Got keys from plugin meta data ("wayland")
    QFactoryLoader::QFactoryLoader() looking at "/qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqwayland-xcomposite-egl.so"
    Found metadata in lib /qfs/people/deso666/.conda/envs/particle/lib/python3.6/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": 331008
    }

    Got keys from plugin meta data ("wayland-xcomposite-egl")
    QFactoryLoader::QFactoryLoader() looking at "/qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqwayland-xcomposite-glx.so"
    Found metadata in lib /qfs/people/deso666/.conda/envs/particle/lib/python3.6/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": 331008
    }

    Got keys from plugin meta data ("wayland-xcomposite-glx")
    QFactoryLoader::QFactoryLoader() looking at "/qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqwebgl.so"
    Found metadata in lib /qfs/people/deso666/.conda/envs/particle/lib/python3.6/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": 331008
    }

    Got keys from plugin meta data ("webgl")
    QFactoryLoader::QFactoryLoader() looking at "/qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so"
    Found metadata in lib /qfs/people/deso666/.conda/envs/particle/lib/python3.6/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": 331008
    }

    Got keys from plugin meta data ("xcb")
    QFactoryLoader::QFactoryLoader() checking directory path "/qfs/people/deso666/.conda/envs/particle/bin/platforms" ...
    loaded library "/qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so"
    qt.qpa.xcb: could not connect to display :1.0
    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, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

    sh: line 1: 2111 Aborted (core dumped) python gui_annotation.py

    I ran ldd then:
    user$ ldd /qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so
    /qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so: /usr/lib64/libdbus-1.so.3: no version information available (required by /qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/../../lib/libQt5DBus.so.5)
    linux-vdso.so.1 => (0x00007fff32bfe000)
    libQt5XcbQpa.so.5 => /qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/../../lib/libQt5XcbQpa.so.5 (0x00007f98c29f1000)
    libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00007f98c27b3000)
    libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007f98c24f4000)
    libz.so.1 => /usr/lib64/libz.so.1 (0x00007f98c22de000)
    libQt5Gui.so.5 => /qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/../../lib/libQt5Gui.so.5 (0x00007f98c1a91000)
    libQt5DBus.so.5 => /qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/../../lib/libQt5DBus.so.5 (0x00007f98c1805000)
    libQt5Core.so.5 => /qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/../../lib/libQt5Core.so.5 (0x00007f98c1054000)
    libGL.so.1 => /usr/lib64/libGL.so.1 (0x00007f98c0de2000)
    libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007f98c0bc6000)
    libX11-xcb.so.1 => /usr/lib64/libX11-xcb.so.1 (0x00007f98c09c4000)
    libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f98c079b000)
    libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00007f98c0590000)
    libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007f98c037e000)
    libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f98c003f000)
    libm.so.6 => /usr/lib64/libm.so.6 (0x00007f98bfd3d000)
    libxkbcommon-x11.so.0 => /usr/lib64/libxkbcommon-x11.so.0 (0x00007f98bfb35000)
    libxkbcommon.so.0 => /usr/lib64/libxkbcommon.so.0 (0x00007f98bf8f4000)
    libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007f98bf6f0000)
    libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f98bf3e8000)
    libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007f98bf1d1000)
    libc.so.6 => /usr/lib64/libc.so.6 (0x00007f98bee0e000)
    libgthread-2.0.so.0 => /usr/lib64/libgthread-2.0.so.0 (0x00007f98bec0c000)
    libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00007f98be8f9000)
    libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007f98be6cf000)
    libbz2.so.1 => /usr/lib64/libbz2.so.1 (0x00007f98be4be000)
    libpng15.so.15 => /usr/lib64/libpng15.so.15 (0x00007f98be293000)
    libdbus-1.so.3 => /usr/lib64/libdbus-1.so.3 (0x00007f98be04b000)
    libicui18n.so.56 => /qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/../../lib/libicui18n.so.56 (0x00007f98bdbb1000)
    libicuuc.so.56 => /qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/../../lib/libicuuc.so.56 (0x00007f98bd7f9000)
    libicudata.so.56 => /qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/../../lib/libicudata.so.56 (0x00007f98bbe15000)
    /lib64/ld-linux-x86-64.so.2 (0x0000558ae1ece000)
    libxcb-dri3.so.0 => /usr/lib64/libxcb-dri3.so.0 (0x00007f98bbc12000)
    libxcb-present.so.0 => /usr/lib64/libxcb-present.so.0 (0x00007f98bba0f000)
    libxcb-sync.so.1 => /usr/lib64/libxcb-sync.so.1 (0x00007f98bb807000)
    libxshmfence.so.1 => /usr/lib64/libxshmfence.so.1 (0x00007f98bb604000)
    libglapi.so.0 => /usr/lib64/libglapi.so.0 (0x00007f98bb3d5000)
    libselinux.so.1 => /usr/lib64/libselinux.so.1 (0x00007f98bb1ad000)
    libXdamage.so.1 => /usr/lib64/libXdamage.so.1 (0x00007f98bafaa000)
    libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00007f98bada4000)
    libxcb-glx.so.0 => /usr/lib64/libxcb-glx.so.0 (0x00007f98bab88000)
    libxcb-dri2.so.0 => /usr/lib64/libxcb-dri2.so.0 (0x00007f98ba983000)
    libXxf86vm.so.1 => /usr/lib64/libXxf86vm.so.1 (0x00007f98ba77d000)
    libdrm.so.2 => /usr/lib64/libdrm.so.2 (0x00007f98ba56d000)
    libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f98ba369000)
    libxcb-xkb.so.1 => /usr/lib64/libxcb-xkb.so.1 (0x00007f98ba14c000)
    libpcre.so.1 => /usr/lib64/libpcre.so.1 (0x00007f98b9eea000)
    librt.so.1 => /usr/lib64/librt.so.1 (0x00007f98b9ce1000)

    Please help me


  • Lifetime Qt Champion

    @sonamde said in qt.qpa.xcb: could not connect to display :1.0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:

    qt.qpa.xcb: could not connect to display :1.0

    This is the issue.
    Do you have X11 server running?
    Is the correct display really :1.0?



  • @jsulm Sorry, I did not understand the X11 thing. I am logged into remote cluster using ssh -X username@remotemachine


  • Lifetime Qt Champion

    Hi,

    Does that cluster provide an X server or is it a headless cluster ?



  • @SGaist In my cluster access detail document, this is what is written: You can also login with X11


  • Lifetime Qt Champion

    So it's something else, did you try starting a different application ? Ensure that you have proper X forwarding running ?

    Are you connecting from a Linux station ?







  • @SGaist I do not have other GUI application in my cluster. Are you connecting from a Linux station ? yes


  • Lifetime Qt Champion

    Not even something like Xterm ?


Log in to reply