Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in
QtWS25 Last Chance

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
17 Posts 4 Posters 9.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nikolay_spb
    wrote on 9 Oct 2021, 13:06 last edited by
    #1

    Help my please.
    I have error and cat't it fixed two day.
    I done two commands

    export QT_DEBUG_PLUGINS=1
    qtcreator
    

    and get code

    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so"
    Found metadata in lib /usr/lib/x86_64-linux-gnu/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": 330752
    }
    
    
    Got keys from plugin meta data ("eglfs")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so"
    Found metadata in lib /usr/lib/x86_64-linux-gnu/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": 330752
    }
    
    
    Got keys from plugin meta data ("linuxfb")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so"
    Found metadata in lib /usr/lib/x86_64-linux-gnu/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": 330752
    }
    
    
    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so"
    Found metadata in lib /usr/lib/x86_64-linux-gnu/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": 330752
    }
    
    
    Got keys from plugin meta data ("minimalegl")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so"
    Found metadata in lib /usr/lib/x86_64-linux-gnu/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": 330752
    }
    
    
    Got keys from plugin meta data ("offscreen")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so"
    Found metadata in lib /usr/lib/x86_64-linux-gnu/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": 330752
    }
    
    
    Got keys from plugin meta data ("vnc")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
    Found metadata in lib /usr/lib/x86_64-linux-gnu/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": 330752
    }
    
    
    Got keys from plugin meta data ("xcb")
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
    loaded library "/usr/lib/x86_64-linux-gnu/qt5/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, xcb.
    

    Where i have error?

    QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
    ``` it's directorys has file
    

    loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"

    J 1 Reply Last reply 9 Oct 2021, 17:15
    0
    • N Nikolay_spb
      9 Oct 2021, 13:06

      Help my please.
      I have error and cat't it fixed two day.
      I done two commands

      export QT_DEBUG_PLUGINS=1
      qtcreator
      

      and get code

      QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms" ...
      QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so"
      Found metadata in lib /usr/lib/x86_64-linux-gnu/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": 330752
      }
      
      
      Got keys from plugin meta data ("eglfs")
      QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so"
      Found metadata in lib /usr/lib/x86_64-linux-gnu/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": 330752
      }
      
      
      Got keys from plugin meta data ("linuxfb")
      QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so"
      Found metadata in lib /usr/lib/x86_64-linux-gnu/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": 330752
      }
      
      
      Got keys from plugin meta data ("minimal")
      QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so"
      Found metadata in lib /usr/lib/x86_64-linux-gnu/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": 330752
      }
      
      
      Got keys from plugin meta data ("minimalegl")
      QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so"
      Found metadata in lib /usr/lib/x86_64-linux-gnu/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": 330752
      }
      
      
      Got keys from plugin meta data ("offscreen")
      QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so"
      Found metadata in lib /usr/lib/x86_64-linux-gnu/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": 330752
      }
      
      
      Got keys from plugin meta data ("vnc")
      QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
      Found metadata in lib /usr/lib/x86_64-linux-gnu/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": 330752
      }
      
      
      Got keys from plugin meta data ("xcb")
      QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
      loaded library "/usr/lib/x86_64-linux-gnu/qt5/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, xcb.
      

      Where i have error?

      QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
      ``` it's directorys has file
      

      loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"

      J Offline
      J Offline
      JonB
      wrote on 9 Oct 2021, 17:15 last edited by
      #2

      @Nikolay_spb said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in:

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

      Your xcb is fine. Your problem is it cannot connect to your X display, Describe your situation.

      1 Reply Last reply
      1
      • N Offline
        N Offline
        Nikolay_spb
        wrote on 9 Oct 2021, 18:32 last edited by
        #3

        I use pycharm and did pip install pyqt5 and pip install pyqt5-contrib. On other pc all work but i have linux-mint and it's error

        J E 2 Replies Last reply 9 Oct 2021, 18:39
        0
        • N Nikolay_spb
          9 Oct 2021, 18:32

          I use pycharm and did pip install pyqt5 and pip install pyqt5-contrib. On other pc all work but i have linux-mint and it's error

          J Offline
          J Offline
          JonB
          wrote on 9 Oct 2021, 18:39 last edited by JonB 10 Sept 2021, 18:40
          #4

          @Nikolay_spb
          What is your $DISPLAY environment variable set to? Are you running a VM or what/how for this Mint and how do you connect to it?

          1 Reply Last reply
          0
          • N Offline
            N Offline
            Nikolay_spb
            wrote on 9 Oct 2021, 18:48 last edited by Nikolay_spb 10 Sept 2021, 18:51
            #5

            i have three monitor benq and two hp.
            i use env and install in it's
            And I have a desktop computer

            J 1 Reply Last reply 9 Oct 2021, 19:31
            0
            • N Nikolay_spb
              9 Oct 2021, 18:48

              i have three monitor benq and two hp.
              i use env and install in it's
              And I have a desktop computer

              J Offline
              J Offline
              JonB
              wrote on 9 Oct 2021, 19:31 last edited by
              #6

              @Nikolay_spb said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in:

              i use env and install in it's

              I do not know what this phrase means.

              In any case your issue is qt.qpa.xcb: could not connect to display :1.0. Usually the main display is 0:0. That is all I know. Someone else will understand this X display issue better than I and hopefully comment.

              N 1 Reply Last reply 9 Oct 2021, 19:55
              0
              • N Nikolay_spb
                9 Oct 2021, 18:32

                I use pycharm and did pip install pyqt5 and pip install pyqt5-contrib. On other pc all work but i have linux-mint and it's error

                E Offline
                E Offline
                eyllanesc
                wrote on 9 Oct 2021, 19:38 last edited by
                #7

                @Nikolay_spb Your PyQt installation has nothing to do with QtCreator, how did you install QtCreator?

                If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

                1 Reply Last reply
                0
                • J JonB
                  9 Oct 2021, 19:31

                  @Nikolay_spb said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in:

                  i use env and install in it's

                  I do not know what this phrase means.

                  In any case your issue is qt.qpa.xcb: could not connect to display :1.0. Usually the main display is 0:0. That is all I know. Someone else will understand this X display issue better than I and hopefully comment.

                  N Offline
                  N Offline
                  Nikolay_spb
                  wrote on 9 Oct 2021, 19:55 last edited by Nikolay_spb 10 Sept 2021, 19:59
                  #8

                  very thanks

                  1 Reply Last reply
                  0
                  • N Offline
                    N Offline
                    Nikolay_spb
                    wrote on 9 Oct 2021, 20:05 last edited by
                    #9

                    @eyllanesc sudo apt install qtcreator

                    E 1 Reply Last reply 9 Oct 2021, 20:07
                    0
                    • N Nikolay_spb
                      9 Oct 2021, 20:05

                      @eyllanesc sudo apt install qtcreator

                      E Offline
                      E Offline
                      eyllanesc
                      wrote on 9 Oct 2021, 20:07 last edited by
                      #10

                      @Nikolay_spb Are you using any special environment?

                      If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

                      N 1 Reply Last reply 9 Oct 2021, 20:19
                      0
                      • E eyllanesc
                        9 Oct 2021, 20:07

                        @Nikolay_spb Are you using any special environment?

                        N Offline
                        N Offline
                        Nikolay_spb
                        wrote on 9 Oct 2021, 20:19 last edited by
                        #11

                        @eyllanesc no i use

                        python3 -m venv env
                        

                        I use these libraries, maybe it will help

                        click==7.1.2
                        greenlet==1.1.1
                        numpy==1.21.2
                        opencv-contrib-python==3.4.15.55
                        opencv-python==4.3.0.36
                        opencv-python-headless==4.5.3.56
                        PyQt5==5.15.4
                        PyQt5-Qt5==5.15.2
                        PyQt5-sip==12.9.0
                        PyQt5-stubs==5.15.2.0
                        PySide2==5.15.2
                        python-dotenv==0.19.0
                        qtarmsim==0.5.5
                        shiboken2==5.15.2
                        shiboken6==6.1.3
                        SQLAlchemy==1.4.25
                        tabulate==0.8.9
                        
                        E 1 Reply Last reply 9 Oct 2021, 20:23
                        0
                        • N Nikolay_spb
                          9 Oct 2021, 20:19

                          @eyllanesc no i use

                          python3 -m venv env
                          

                          I use these libraries, maybe it will help

                          click==7.1.2
                          greenlet==1.1.1
                          numpy==1.21.2
                          opencv-contrib-python==3.4.15.55
                          opencv-python==4.3.0.36
                          opencv-python-headless==4.5.3.56
                          PyQt5==5.15.4
                          PyQt5-Qt5==5.15.2
                          PyQt5-sip==12.9.0
                          PyQt5-stubs==5.15.2.0
                          PySide2==5.15.2
                          python-dotenv==0.19.0
                          qtarmsim==0.5.5
                          shiboken2==5.15.2
                          shiboken6==6.1.3
                          SQLAlchemy==1.4.25
                          tabulate==0.8.9
                          
                          E Offline
                          E Offline
                          eyllanesc
                          wrote on 9 Oct 2021, 20:23 last edited by
                          #12

                          @Nikolay_spb I think I have not let myself be understood: QtCreator is orthogonal to PyQt so please don't talk about pyqt anymore. My question is if you are using a VM, docker, etc.

                          If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

                          N 1 Reply Last reply 9 Oct 2021, 20:30
                          1
                          • E eyllanesc
                            9 Oct 2021, 20:23

                            @Nikolay_spb I think I have not let myself be understood: QtCreator is orthogonal to PyQt so please don't talk about pyqt anymore. My question is if you are using a VM, docker, etc.

                            N Offline
                            N Offline
                            Nikolay_spb
                            wrote on 9 Oct 2021, 20:30 last edited by
                            #13

                            @eyllanesc no i use desktop pc and os linux mint

                            E 2 Replies Last reply 9 Oct 2021, 20:34
                            0
                            • N Nikolay_spb
                              9 Oct 2021, 20:30

                              @eyllanesc no i use desktop pc and os linux mint

                              E Offline
                              E Offline
                              eyllanesc
                              wrote on 9 Oct 2021, 20:34 last edited by
                              #14

                              @Nikolay_spb So it seems to me a bug in your OS, I recommend you report it. And so that you do not confuse them, do not mention anything about python that is irrelevant. In this forum little or nothing will be able to help you.

                              If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

                              1 Reply Last reply
                              0
                              • N Nikolay_spb
                                9 Oct 2021, 20:30

                                @eyllanesc no i use desktop pc and os linux mint

                                E Offline
                                E Offline
                                eyllanesc
                                wrote on 9 Oct 2021, 20:36 last edited by
                                #15

                                @Nikolay_spb Does your OS installation have a desktop manager?

                                If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

                                N 1 Reply Last reply 9 Oct 2021, 20:42
                                0
                                • E eyllanesc
                                  9 Oct 2021, 20:36

                                  @Nikolay_spb Does your OS installation have a desktop manager?

                                  N Offline
                                  N Offline
                                  Nikolay_spb
                                  wrote on 9 Oct 2021, 20:42 last edited by
                                  #16

                                  @eyllanesc said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in:

                                  Does your OS installation have a desktop manager?
                                  yes, i have desktop manager

                                  jsulmJ 1 Reply Last reply 11 Oct 2021, 06:08
                                  0
                                  • N Nikolay_spb
                                    9 Oct 2021, 20:42

                                    @eyllanesc said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in:

                                    Does your OS installation have a desktop manager?
                                    yes, i have desktop manager

                                    jsulmJ Offline
                                    jsulmJ Offline
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on 11 Oct 2021, 06:08 last edited by
                                    #17

                                    @Nikolay_spb said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in:

                                    yes, i have desktop manager

                                    Would be nice to mention which one.
                                    Is X server running or do you use something else (like Wayland)?

                                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    1 Reply Last reply
                                    1

                                    5/17

                                    9 Oct 2021, 18:48

                                    topic:navigator.unread, 12
                                    • Login

                                    • Login or register to search.
                                    5 out of 17
                                    • First post
                                      5/17
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • Users
                                    • Groups
                                    • Search
                                    • Get Qt Extensions
                                    • Unsolved