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. libQt5XcbQpa.so.5: undefined symbol: _ZN22QWindowSystemInterface24setPlatformFiltersEventsEb
Forum Updated to NodeBB v4.3 + New Features

libQt5XcbQpa.so.5: undefined symbol: _ZN22QWindowSystemInterface24setPlatformFiltersEventsEb

Scheduled Pinned Locked Moved Unsolved Qt for Python
4 Posts 2 Posters 4.8k 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.
  • L Offline
    L Offline
    LaGuiche55
    wrote on last edited by
    #1

    Hello,

    I have installed Qt5 on Ubuntu 20.04 using the online executable and then I have installed PyQt5 and matplotlib and I have the following error using python whenever I import matplotlib.pyplot (importing matplotlib does not generate any error)

    Do you know what is creating the issue with libQt5XcbQpa.so.5 ?

    Best,
    JP

    Python 3.8.5 (default, Jul 28 2020, 12:59:40)
    Type 'copyright', 'credits' or 'license' for more information
    IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help.
    PyDev console: using IPython 7.19.0
    Python 3.8.5 (default, Jul 28 2020, 12:59:40)
    [GCC 9.3.0] on linux

    import matplotlib.pyplot as plt
    Backend Qt5Agg is interactive backend. Turning interactive mode on.
    /usr/bin/python3.8: symbol lookup error: /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5: undefined symbol: _ZN22QWindowSystemInterface24setPlatformFiltersEventsEb, version Qt_5_PRIVATE_API
    Process finished with exit code 127

    jsulmJ 1 Reply Last reply
    0
    • L LaGuiche55

      Hello,

      I have installed Qt5 on Ubuntu 20.04 using the online executable and then I have installed PyQt5 and matplotlib and I have the following error using python whenever I import matplotlib.pyplot (importing matplotlib does not generate any error)

      Do you know what is creating the issue with libQt5XcbQpa.so.5 ?

      Best,
      JP

      Python 3.8.5 (default, Jul 28 2020, 12:59:40)
      Type 'copyright', 'credits' or 'license' for more information
      IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help.
      PyDev console: using IPython 7.19.0
      Python 3.8.5 (default, Jul 28 2020, 12:59:40)
      [GCC 9.3.0] on linux

      import matplotlib.pyplot as plt
      Backend Qt5Agg is interactive backend. Turning interactive mode on.
      /usr/bin/python3.8: symbol lookup error: /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5: undefined symbol: _ZN22QWindowSystemInterface24setPlatformFiltersEventsEb, version Qt_5_PRIVATE_API
      Process finished with exit code 127

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @LaGuiche55 said in libQt5XcbQpa.so.5: undefined symbol: _ZN22QWindowSystemInterface24setPlatformFiltersEventsEb:

      and then I have installed PyQt5 and matplotlib

      How exactly?

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

      L 1 Reply Last reply
      1
      • jsulmJ jsulm

        @LaGuiche55 said in libQt5XcbQpa.so.5: undefined symbol: _ZN22QWindowSystemInterface24setPlatformFiltersEventsEb:

        and then I have installed PyQt5 and matplotlib

        How exactly?

        L Offline
        L Offline
        LaGuiche55
        wrote on last edited by
        #3

        @jsulm Thanks for your answer
        I used a simple pip install for python 3.8
        pip3 install PyQt5
        pip3 install matplotlib

        L 1 Reply Last reply
        0
        • L LaGuiche55

          @jsulm Thanks for your answer
          I used a simple pip install for python 3.8
          pip3 install PyQt5
          pip3 install matplotlib

          L Offline
          L Offline
          LaGuiche55
          wrote on last edited by
          #4

          @LaGuiche55 Following your question, I have uninstalled and reinstalled those components and now it works .
          I have uninstalled Qt with ./MaintenanceTool
          pip uninstalled PyQt5
          pip uninstalled matplotlib
          sudo apt-get install qt5-default
          Qt install with online install executable
          pip install PyQt5
          pip install matplotlib

          Thanks

          1 Reply Last reply
          1

          • Login

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