Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. symbol lookup error: /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5: undefined symbol: _ZN22QWindowSystemInterface24setPlatformFiltersEventsEb, version Qt_5_PRIVATE_API
QtWS25 Last Chance

symbol lookup error: /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5: undefined symbol: _ZN22QWindowSystemInterface24setPlatformFiltersEventsEb, version Qt_5_PRIVATE_API

Scheduled Pinned Locked Moved Solved Qt for Python
8 Posts 2 Posters 9.1k 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.
  • Y Offline
    Y Offline
    yogeesh
    wrote on last edited by
    #1

    hi there ,
    I am running a script which uses pyqt5 to create a GUI in python , but while running the main python script i am getting this symbol lookup error:

    Got keys from plugin meta data ("xcb")
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqeglfs.so"
    Got keys from plugin meta data ("eglfs")
    QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqlinuxfb.so"
    Got keys from plugin meta data ("linuxfb")
    QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqminimal.so"
    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqminimalegl.so"
    Got keys from plugin meta data ("minimalegl")
    QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqoffscreen.so"
    Got keys from plugin meta data ("offscreen")
    QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqvnc.so"
    Got keys from plugin meta data ("vnc")
    QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqxcb.so"
    Got keys from plugin meta data ("xcb")
    loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
    python: symbol lookup error: /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5: undefined symbol: _ZN22QWindowSystemInterface24setPlatformFiltersEventsEb, version Qt_5_PRIVATE_API
    
    

    Installation of PyQt5 is done inside a virtualenv of python3.8.5 using command :

    pip install PyQt5
    

    the virtualenv also contains cv2 package but i have not imported it, else it creates another problem of .so file getting picked from another path.
    Can anyone please help me out here?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Can you start your script with the QT_DEBUG_PLUGINS environment variable set to 1 ?

      This should show a bit more information about what is happening.

      From the looks of it, your system libraries are searched rather than the one that should be bundled with your PyQt5 installation.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      Y 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Can you start your script with the QT_DEBUG_PLUGINS environment variable set to 1 ?

        This should show a bit more information about what is happening.

        From the looks of it, your system libraries are searched rather than the one that should be bundled with your PyQt5 installation.

        Y Offline
        Y Offline
        yogeesh
        wrote on last edited by
        #3

        @SGaist hi , below is the output after setting debug flag:

        QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/x86_64-linux-gnu/qt5/plugins" ...
        QFactoryLoader::QFactoryLoader() checking directory path "/home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/Qt5/plugins" ...
        QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin" ...
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/2to3-3.6"
        QElfParser: '/usr/bin/2to3-3.6' is not an ELF object
        "'/usr/bin/2to3-3.6' is not an ELF object"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/["
        "Failed to extract plugin meta data from '/usr/bin/['"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/aa-enabled"
        "Failed to extract plugin meta data from '/usr/bin/aa-enabled'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/aa-exec"
        "Failed to extract plugin meta data from '/usr/bin/aa-exec'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/aconnect"
        "Failed to extract plugin meta data from '/usr/bin/aconnect'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/acpi_listen"
        "Failed to extract plugin meta data from '/usr/bin/acpi_listen'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/acyclic"
        "Failed to extract plugin meta data from '/usr/bin/acyclic'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/add-apt-repository"
        QElfParser: '/usr/bin/add-apt-repository' is not an ELF object
        "'/usr/bin/add-apt-repository' is not an ELF object"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/addpart"
        "Failed to extract plugin meta data from '/usr/bin/addpart'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/addr2line"
        "Failed to extract plugin meta data from '/usr/bin/x86_64-linux-gnu-addr2line'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/alsabat"
        "Failed to extract plugin meta data from '/usr/bin/alsabat'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/alsaloop"
        "Failed to extract plugin meta data from '/usr/bin/alsaloop'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/alsamixer"
        "Failed to extract plugin meta data from '/usr/bin/alsamixer'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/alsatplg"
        "Failed to extract plugin meta data from '/usr/bin/alsatplg'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/alsaucm"
        "Failed to extract plugin meta data from '/usr/bin/alsaucm'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/amidi"
        "Failed to extract plugin meta data from '/usr/bin/amidi'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/amixer"
        "Failed to extract plugin meta data from '/usr/bin/amixer'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/amuFormat.sh"
        QElfParser: '/usr/bin/amuFormat.sh' is not an ELF object
        "'/usr/bin/amuFormat.sh' is not an ELF object"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/anydesk"
        "Failed to extract plugin meta data from '/usr/bin/anydesk'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/anydesk-global-settings"
        QElfParser: '/usr/bin/anydesk-global-settings' is not an ELF object (file too small)
        "'/usr/bin/anydesk-global-settings' is not an ELF object (file too small)"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apg"
        QElfParser: '/usr/bin/apg' is not an ELF object
        "'/usr/bin/apg' is not an ELF object"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apgbfm"
        "Failed to extract plugin meta data from '/usr/bin/apgbfm'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/aplay"
        "Failed to extract plugin meta data from '/usr/bin/aplay'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/aplaymidi"
        "Failed to extract plugin meta data from '/usr/bin/aplaymidi'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apm"
        QElfParser: '/usr/share/atom/resources/app/apm/bin/apm' is not an ELF object
        "'/usr/share/atom/resources/app/apm/bin/apm' is not an ELF object"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apport-bug"
        QElfParser: '/usr/bin/apport-bug' is not an ELF object
        "'/usr/bin/apport-bug' is not an ELF object"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apport-cli"
        QElfParser: '/usr/bin/apport-cli' is not an ELF object
        "'/usr/bin/apport-cli' is not an ELF object"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apport-collect"
        QElfParser: '/usr/bin/apport-bug' is not an ELF object
        "'/usr/bin/apport-bug' is not an ELF object"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apport-unpack"
        QElfParser: '/usr/bin/apport-unpack' is not an ELF object
        "'/usr/bin/apport-unpack' is not an ELF object"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/appres"
        "Failed to extract plugin meta data from '/usr/bin/appres'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/appstreamcli"
        "Failed to extract plugin meta data from '/usr/bin/appstreamcli'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apropos"
        "Failed to extract plugin meta data from '/usr/bin/whatis'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apt"
        "Failed to extract plugin meta data from '/usr/bin/apt'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apt-add-repository"
        QElfParser: '/usr/bin/add-apt-repository' is not an ELF object
        "'/usr/bin/add-apt-repository' is not an ELF object"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apt-cache"
        "Failed to extract plugin meta data from '/usr/bin/apt-cache'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apt-cdrom"
        "Failed to extract plugin meta data from '/usr/bin/apt-cdrom'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apt-config"
        "Failed to extract plugin meta data from '/usr/bin/apt-config'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apt-extracttemplates"
        "Failed to extract plugin meta data from '/usr/bin/apt-extracttemplates'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apt-ftparchive"
        "Failed to extract plugin meta data from '/usr/bin/apt-ftparchive'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apt-get"
        "Failed to extract plugin meta data from '/usr/bin/apt-get'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apt-key"
        QElfParser: '/usr/bin/apt-key' is not an ELF object
        "'/usr/bin/apt-key' is not an ELF object"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apt-mark"
        "Failed to extract plugin meta data from '/usr/bin/apt-mark'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apt-sortpkgs"
        "Failed to extract plugin meta data from '/usr/bin/apt-sortpkgs'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/aptdcon"
        QElfParser: '/usr/bin/aptdcon' is not an ELF object
        "'/usr/bin/aptdcon' is not an ELF object"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/apturl"
        QElfParser: '/usr/bin/apturl' is not an ELF object
        "'/usr/bin/apturl' is not an ELF object"
                 not a plugin
        ....................
        ....................
        ....................
        
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/zforce"
        QElfParser: '/usr/bin/zforce' is not an ELF object
        "'/usr/bin/zforce' is not an ELF object"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/zgrep"
        QElfParser: '/usr/bin/zgrep' is not an ELF object
        "'/usr/bin/zgrep' is not an ELF object"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/zip"
        "Failed to extract plugin meta data from '/usr/bin/zip'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/zipcloak"
        "Failed to extract plugin meta data from '/usr/bin/zipcloak'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/zipdetails"
        QElfParser: '/usr/bin/zipdetails' is not an ELF object
        "'/usr/bin/zipdetails' is not an ELF object"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/zipgrep"
        QElfParser: '/usr/bin/zipgrep' is not an ELF object
        "'/usr/bin/zipgrep' is not an ELF object"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/zipinfo"
        "Failed to extract plugin meta data from '/usr/bin/zipinfo'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/zipnote"
        "Failed to extract plugin meta data from '/usr/bin/zipnote'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/zipsplit"
        "Failed to extract plugin meta data from '/usr/bin/zipsplit'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/zjsdecode"
        "Failed to extract plugin meta data from '/usr/bin/zjsdecode'"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/zless"
        QElfParser: '/usr/bin/zless' is not an ELF object
        "'/usr/bin/zless' is not an ELF object"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/zmore"
        QElfParser: '/usr/bin/zmore' is not an ELF object
        "'/usr/bin/zmore' is not an ELF object"
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/znew"
        QElfParser: '/usr/bin/znew' is not an ELF object
        "'/usr/bin/znew' is not an ELF object"
                 not a plugin
        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 "/home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/Qt5/plugins/platforms" ...
        QFactoryLoader::QFactoryLoader() looking at "/home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/Qt5/plugins/platforms/libqeglfs.so"
        Found metadata in lib /home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/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": 331520
        }
        
        
        Got keys from plugin meta data ("eglfs")
        QFactoryLoader::QFactoryLoader() looking at "/home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/Qt5/plugins/platforms/libqlinuxfb.so"
        Found metadata in lib /home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/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": 331520
        }
        
        
        Got keys from plugin meta data ("linuxfb")
        QFactoryLoader::QFactoryLoader() looking at "/home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/Qt5/plugins/platforms/libqminimal.so"
        Found metadata in lib /home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/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": 331520
        }
        
        
        Got keys from plugin meta data ("minimal")
        QFactoryLoader::QFactoryLoader() looking at "/home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/Qt5/plugins/platforms/libqminimalegl.so"
        Found metadata in lib /home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/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": 331520
        }
        
        
        Got keys from plugin meta data ("minimalegl")
        QFactoryLoader::QFactoryLoader() looking at "/home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/Qt5/plugins/platforms/libqoffscreen.so"
        Found metadata in lib /home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/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": 331520
        }
        
        
        Got keys from plugin meta data ("offscreen")
        QFactoryLoader::QFactoryLoader() looking at "/home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/Qt5/plugins/platforms/libqvnc.so"
        Found metadata in lib /home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/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": 331520
        }
        
        
        Got keys from plugin meta data ("vnc")
        QFactoryLoader::QFactoryLoader() looking at "/home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-egl.so"
        Found metadata in lib /home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/Qt5/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": 331520
        }
        
        
        Got keys from plugin meta data ("wayland-egl")
        QFactoryLoader::QFactoryLoader() looking at "/home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-generic.so"
        Found metadata in lib /home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/Qt5/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": 331520
        }
        
        
        Got keys from plugin meta data ("wayland")
        QFactoryLoader::QFactoryLoader() looking at "/home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-xcomposite-egl.so"
        Found metadata in lib /home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/Qt5/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": 331520
        }
        
        
        Got keys from plugin meta data ("wayland-xcomposite-egl")
        QFactoryLoader::QFactoryLoader() looking at "/home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-xcomposite-glx.so"
        Found metadata in lib /home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/Qt5/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": 331520
        }
        
        
        Got keys from plugin meta data ("wayland-xcomposite-glx")
        QFactoryLoader::QFactoryLoader() looking at "/home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/Qt5/plugins/platforms/libqwebgl.so"
        Found metadata in lib /home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/Qt5/plugins/platforms/libqwebgl.so, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "webgl"
                ]
            },
            "archreq": 0,
            "className": "QWebGLIntegrationPlugin",
            "debug": false,
            "version": 331520
        }
        
        
        Got keys from plugin meta data ("webgl")
        QFactoryLoader::QFactoryLoader() looking at "/home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so"
        Found metadata in lib /home/yogeesh/yogeesh/tf2/lib/python3.8/site-packages/PyQt5/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": 331520
        }
        
        
        Got keys from plugin meta data ("xcb")
        QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqeglfs.so"
        Got keys from plugin meta data ("eglfs")
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqlinuxfb.so"
        Got keys from plugin meta data ("linuxfb")
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqminimal.so"
        Got keys from plugin meta data ("minimal")
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqminimalegl.so"
        Got keys from plugin meta data ("minimalegl")
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqoffscreen.so"
        Got keys from plugin meta data ("offscreen")
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqvnc.so"
        Got keys from plugin meta data ("vnc")
        QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqxcb.so"
        Got keys from plugin meta data ("xcb")
        loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
        python: symbol lookup error: /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5: undefined symbol: _ZN22QWindowSystemInterface24setPlatformFiltersEventsEb, version Qt_5_PRIVATE_API
        
        

        there was lot more "not a plugin " errors that i had to delete b/c of line count restrictions.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          How are you launching your script ? It's no normal that so many folders are searched.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          Y 1 Reply Last reply
          0
          • SGaistS SGaist

            How are you launching your script ? It's no normal that so many folders are searched.

            Y Offline
            Y Offline
            yogeesh
            wrote on last edited by
            #5

            @SGaist
            i launch the main script using:

            python main.py 
            

            these are the paths and other variables i have set after looking through other answers in the .bashrc file (ubuntu 20.04):

            export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/qt5/plugins
            export QT_DEBUG_PLUGINS=1
            
            

            as suggested in this post : https://www.programmersought.com/article/90866226619/
            also there is a symbolic link i had to create :

            sudo ln -sf /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/ /usr/bin/platforms
            

            because i thought the qt was searchinf in latter address for files which were sitting in former address.
            apart from this i dint do anything different.
            I have already tried uninstalling the package using command :

            pip uninstall QtPy5
            

            and install is again ,but its remains same. I want to point out that earlier i was getting "XCB pluging error" saying "it cannot launch it even the so file was present" and the reason was that cv2 package had qt folder too and python was looking into that folder instead of current folder.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Remove both the link and the plugin path variable.

              You are forcing every Qt application to look at your system installation rather than the one used to build your application.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              Y 1 Reply Last reply
              1
              • SGaistS SGaist

                Remove both the link and the plugin path variable.

                You are forcing every Qt application to look at your system installation rather than the one used to build your application.

                Y Offline
                Y Offline
                yogeesh
                wrote on last edited by
                #7

                @SGaist
                hi ,
                removing the links and environment path worked and everything seems to be working fine now, though i dont understand why it was not working initially which led me to do these changes.
                But thanks a lot for your advice and time.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  You're welcome !

                  Since you have it working now, please mark the thread as solved using the "Topic Tools" button or the three dotted menu beside the answer you deem correct so that other forum users may know a solution has been found :-)

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • V VIDYUL SHAH referenced this topic on

                  • Login

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