Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2301

Unable to execute pyinstaller executables with pyside

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P5: Not important
    • None
    • 6.5.0
    • PySide
    • None
    • Linux/X11

    Description

      Hey,  I am having the following error when using a pyside application with pyinstaller:

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

      Underlying error appears to be :

      qt.core.library: "/tmp/_MEIxoBEs6/PySide6/Qt/plugins/platforms/libqxcb.so" cannot load: Cannot load library /tmp/_MEIxoBEs6/PySide6/Qt/plugins/platforms/libqxcb.so:
           (libxcb-cursor.so.0: cannot open shared object file: No such file or directory)
      

      Note that there are no problems with the version 6.4.3. The output of the QT_DEBUG_PLUGINS=1 flag set is the following:

      qt.core.plugin.factoryloader: checking directory path "/tmp/_MEIxoBEs6/PySide6/Qt/plugins/platforms" ...
      qt.core.plugin.factoryloader: looking at "/tmp/_MEIxoBEs6/PySide6/Qt/plugins/platforms/libqwayland-egl.so"
      qt.core.plugin.loader: Found metadata in lib /tmp/_MEIxoBEs6/PySide6/Qt/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 "/tmp/_MEIxoBEs6/PySide6/Qt/plugins/platforms/libqvkkhrdisplay.so"
      qt.core.plugin.loader: Found metadata in lib /tmp/_MEIxoBEs6/PySide6/Qt/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 "/tmp/_MEIxoBEs6/PySide6/Qt/plugins/platforms/libqoffscreen.so"
      qt.core.plugin.loader: Found metadata in lib /tmp/_MEIxoBEs6/PySide6/Qt/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 "/tmp/_MEIxoBEs6/PySide6/Qt/plugins/platforms/libqminimalegl.so"
      qt.core.plugin.loader: Found metadata in lib /tmp/_MEIxoBEs6/PySide6/Qt/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 "/tmp/_MEIxoBEs6/PySide6/Qt/plugins/platforms/libqvnc.so"
      qt.core.plugin.loader: Found metadata in lib /tmp/_MEIxoBEs6/PySide6/Qt/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 "/tmp/_MEIxoBEs6/PySide6/Qt/plugins/platforms/libqminimal.so"
      qt.core.plugin.loader: Found metadata in lib /tmp/_MEIxoBEs6/PySide6/Qt/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 "/tmp/_MEIxoBEs6/PySide6/Qt/plugins/platforms/libqxcb.so"
      qt.core.plugin.loader: Found metadata in lib /tmp/_MEIxoBEs6/PySide6/Qt/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 "/tmp/_MEIxoBEs6/PySide6/Qt/plugins/platforms/libqwayland-generic.so"
      qt.core.plugin.loader: Found metadata in lib /tmp/_MEIxoBEs6/PySide6/Qt/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: looking at "/tmp/_MEIxoBEs6/PySide6/Qt/plugins/platforms/libqeglfs.so"
      qt.core.plugin.loader: Found metadata in lib /tmp/_MEIxoBEs6/PySide6/Qt/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 "/tmp/_MEIxoBEs6/PySide6/Qt/plugins/platforms/libqlinuxfb.so"
      qt.core.plugin.loader: Found metadata in lib /tmp/_MEIxoBEs6/PySide6/Qt/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: checking directory path "XXXXXXXX" ...
      
      qt.core.library: "/tmp/_MEIxoBEs6/PySide6/Qt/plugins/platforms/libqxcb.so" cannot load: Cannot load library /tmp/_MEIxoBEs6/PySide6/Qt/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 "/tmp/_MEIxoBEs6/PySide6/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /tmp/_MEIxoBEs6/PySide6/Qt/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: wayland-egl, vkkhrdisplay, offscreen, minimalegl, vnc, minimal, xcb, wayland, eglfs, linuxfb.
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              jpereira Jorge Pereira
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes