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. matplotlib fails because of incomplatible qt versions
Forum Updated to NodeBB v4.3 + New Features

matplotlib fails because of incomplatible qt versions

Scheduled Pinned Locked Moved Solved Qt for Python
21 Posts 2 Posters 3.9k Views 1 Watching
  • 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.
  • D Deep Red

    @SGaist Neither telegram nor other programs work outside the virtual environment. Below I paste backtrace for stellarium (astronomy program).

    gdb stellarium
    GNU gdb (Gentoo 13.1 vanilla) 13.1
    Copyright (C) 2023 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Type "show copying" and "show warranty" for details.
    This GDB was configured as "x86_64-pc-linux-gnu".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see:
    https://bugs.gentoo.org/.
    Find the GDB manual and other documentation resources online at:
    http://www.gnu.org/software/gdb/documentation/.

    For help, type "help".
    Type "apropos word" to search for commands related to "word"...
    Reading symbols from stellarium...
    Reading symbols from /usr/lib/debug//usr/bin/stellarium.debug...
    (No debugging symbols found in /usr/lib/debug//usr/bin/stellarium.debug)
    (gdb) run
    Starting program: /usr/bin/stellarium
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/usr/lib64/libthread_db.so.1".
    [New Thread 0x7ffff28916c0 (LWP 1102513)]
    [New Thread 0x7ffff13586c0 (LWP 1102534)]
    [New Thread 0x7ffff0b576c0 (LWP 1102535)]
    Cannot mix incompatible Qt library (5.15.7) with this library (5.15.8)

    Thread 4 "QDBusConnection" received signal SIGABRT, Aborted.
    [Switching to Thread 0x7ffff0b576c0 (LWP 1102535)]
    0x00007ffff60b400c in ?? () from /usr/lib64/libc.so.6
    (gdb) bt
    #0 0x00007ffff60b400c in ?? () from /usr/lib64/libc.so.6
    #1 0x00007ffff6066572 in raise () from /usr/lib64/libc.so.6
    #2 0x00007ffff60504b2 in abort () from /usr/lib64/libc.so.6
    #3 0x00007ffff6291d6d in QMessageLogger::fatal(char const*, ...) const () from /usr/lib64/libQt5Core.so.5
    #4 0x00007ffff62a838f in QObjectPrivate::QObjectPrivate(int) [clone .cold] () from /usr/lib64/libQt5Core.so.5
    #5 0x00007ffff29a2773 in QDBusAbstractInterfacePrivate::QDBusAbstractInterfacePrivate(QString const&, QString const&, QString const&, QDBusConnection const&, bool) () from /usr/lib64/libQt5DBus.so.5
    #6 0x00007ffff29a3989 in QDBusAbstractInterface::QDBusAbstractInterface(QString const&, QString const&, char const*, QDBusConnection const&, QObject*) () from /usr/lib64/libQt5DBus.so.5
    #7 0x00007ffff298a769 in QDBusConnectionInterface::QDBusConnectionInterface(QDBusConnection const&, QObject*) () from /usr/lib64/libQt5DBus.so.5
    #8 0x00007ffff298790a in QDBusConnectionPrivate::createBusService() () from /usr/lib64/libQt5DBus.so.5
    #9 0x00007ffff2988ce1 in QDBusConnectionManager::executeConnectionRequest(QDBusConnectionManager::ConnectionRequestData*) ()
    from /usr/lib64/libQt5DBus.so.5
    #10 0x00007ffff64a4b14 in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
    #11 0x00007ffff647a2f5 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
    #12 0x00007ffff647d6c3 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
    #13 0x00007ffff64ca8f3 in postEventSourceDispatch(_GSource*, int ()(void), void*) () from /usr/lib64/libQt5Core.so.5
    #14 0x00007ffff58221e8 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
    #15 0x00007ffff5822718 in g_main_context_iterate.constprop () from /usr/lib64/libglib-2.0.so.0
    #16 0x00007ffff58227ac in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
    #17 0x00007ffff64ca3f6 in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib64/libQt5Core.so.5
    #18 0x00007ffff6478ddb in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib64/libQt5Core.so.5
    #19 0x00007ffff62ca022 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
    #20 0x00007ffff29864c7 in QDBusConnectionManager::run() () from /usr/lib64/libQt5DBus.so.5
    #21 0x00007ffff62cb267 in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
    #22 0x00007ffff60b232a in ?? () from /usr/lib64/libc.so.6
    #23 0x00007ffff6131d0c in ?? () from /usr/lib64/libc.so.6

    SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #12

    Might be a silly question but did you check whether all Qt packages were updated ?

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

    D 1 Reply Last reply
    0
    • SGaistS SGaist

      Might be a silly question but did you check whether all Qt packages were updated ?

      D Offline
      D Offline
      Deep Red
      wrote on last edited by Deep Red
      #13

      @SGaist I believe yes. At least all packages containing qt string are at their latest versions (available at the repository)

      $ qlist -Iv  | grep -i qt
      dev-python/PyQt-builder-1.14.1
      dev-python/PyQt5-5.15.9
      dev-python/PyQt5-sip-12.11.1
      dev-python/qtconsole-5.4.1
      dev-python/QtPy-2.3.0
      dev-qt/linguist-tools-5.15.8
      dev-qt/qdbus-5.15.8
      dev-qt/qtbluetooth-5.15.8-r1
      dev-qt/qtcharts-5.15.8
      dev-qt/qtconcurrent-5.15.8
      dev-qt/qtcore-5.15.8-r3
      dev-qt/qtdbus-5.15.8
      dev-qt/qtdeclarative-5.15.8-r2
      dev-qt/qtgui-5.15.8-r3
      dev-qt/qtimageformats-5.15.8-r2
      dev-qt/qtmultimedia-5.15.8
      dev-qt/qtnetwork-5.15.8-r1
      dev-qt/qtopengl-5.15.8
      dev-qt/qtprintsupport-5.15.8
      dev-qt/qtscript-5.15.8
      dev-qt/qtsql-5.15.8-r1
      dev-qt/qtstyleplugins-5.0.0_p20170311-r1
      dev-qt/qtsvg-5.15.8
      dev-qt/qttest-5.15.8
      dev-qt/qttranslations-5.15.8
      dev-qt/qtwayland-5.15.8-r3
      dev-qt/qtwidgets-5.15.8-r3
      dev-qt/qtx11extras-5.15.8
      dev-qt/qtxml-5.15.8
      x11-themes/adwaita-qt-1.4.2
      

      I also checked libraries that appear in the backtrace, all of them belong to 5.15.8 version

      SGaistS 1 Reply Last reply
      0
      • D Deep Red

        @SGaist I believe yes. At least all packages containing qt string are at their latest versions (available at the repository)

        $ qlist -Iv  | grep -i qt
        dev-python/PyQt-builder-1.14.1
        dev-python/PyQt5-5.15.9
        dev-python/PyQt5-sip-12.11.1
        dev-python/qtconsole-5.4.1
        dev-python/QtPy-2.3.0
        dev-qt/linguist-tools-5.15.8
        dev-qt/qdbus-5.15.8
        dev-qt/qtbluetooth-5.15.8-r1
        dev-qt/qtcharts-5.15.8
        dev-qt/qtconcurrent-5.15.8
        dev-qt/qtcore-5.15.8-r3
        dev-qt/qtdbus-5.15.8
        dev-qt/qtdeclarative-5.15.8-r2
        dev-qt/qtgui-5.15.8-r3
        dev-qt/qtimageformats-5.15.8-r2
        dev-qt/qtmultimedia-5.15.8
        dev-qt/qtnetwork-5.15.8-r1
        dev-qt/qtopengl-5.15.8
        dev-qt/qtprintsupport-5.15.8
        dev-qt/qtscript-5.15.8
        dev-qt/qtsql-5.15.8-r1
        dev-qt/qtstyleplugins-5.0.0_p20170311-r1
        dev-qt/qtsvg-5.15.8
        dev-qt/qttest-5.15.8
        dev-qt/qttranslations-5.15.8
        dev-qt/qtwayland-5.15.8-r3
        dev-qt/qtwidgets-5.15.8-r3
        dev-qt/qtx11extras-5.15.8
        dev-qt/qtxml-5.15.8
        x11-themes/adwaita-qt-1.4.2
        

        I also checked libraries that appear in the backtrace, all of them belong to 5.15.8 version

        SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #14

        I am having a doubt: does your issue happen only with the applications you installed in your virtual environments ?

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

        D 1 Reply Last reply
        0
        • SGaistS SGaist

          I am having a doubt: does your issue happen only with the applications you installed in your virtual environments ?

          D Offline
          D Offline
          Deep Red
          wrote on last edited by
          #15

          @SGaist It happens on the system only in the virtual environment it works fine.

          SGaistS 1 Reply Last reply
          0
          • D Deep Red

            @SGaist It happens on the system only in the virtual environment it works fine.

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #16

            But your original matplotlib issue, was it happening because you installed matplotlib system wide ?

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

            D 1 Reply Last reply
            0
            • SGaistS SGaist

              But your original matplotlib issue, was it happening because you installed matplotlib system wide ?

              D Offline
              D Offline
              Deep Red
              wrote on last edited by
              #17

              @SGaist Yes, it happenned because of system wide installation, both with package manager and pip.

              The same bug affects not only matplotlib, but also telegram-desktop, Stellarium, VLC and several other applications.

              SGaistS 1 Reply Last reply
              0
              • D Deep Red

                @SGaist Yes, it happenned because of system wide installation, both with package manager and pip.

                The same bug affects not only matplotlib, but also telegram-desktop, Stellarium, VLC and several other applications.

                SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #18

                You shouldn't need to do that but did you try to re-emerge these packages ?

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

                D 1 Reply Last reply
                0
                • SGaistS SGaist

                  You shouldn't need to do that but did you try to re-emerge these packages ?

                  D Offline
                  D Offline
                  Deep Red
                  wrote on last edited by
                  #19

                  @SGaist All packages were reemerged and even updated but still the same. I put here the information about stellarium:

                  genlop -i stellarium
                   * sci-astronomy/stellarium
                  
                  
                     Total builds: 10
                     Global build time: 4 hours, 24 minutes and 35 seconds.
                     Average merge time: 26 minutes and 27 seconds.
                  
                     Info about currently installed ebuild:
                  
                     * sci-astronomy/stellarium-1.2
                     Install date: Wed Mar 29 17:22:44 2023
                     USE="nls -debug -deep-sky -doc -gps -media -qt6 -+scripting -+show-my-sky -stars -telescope -test -webengine -+xlsx"
                     CFLAGS="-march=native -O2 -pipe"   CXXFLAGS="-march=native -O2 -pipe"   LDFLAGS="-Wl,-O1 -Wl,--as-needed"
                  

                  backtrace:

                  #0  0x00007ffff60b400c in ?? () from /usr/lib64/libc.so.6
                  #1  0x00007ffff6066572 in raise () from /usr/lib64/libc.so.6
                  #2  0x00007ffff60504b2 in abort () from /usr/lib64/libc.so.6
                  #3  0x00007ffff6291d6d in QMessageLogger::fatal(char const*, ...) const () from /usr/lib64/libQt5Core.so.5
                  #4  0x00007ffff62a838f in QObjectPrivate::QObjectPrivate(int) [clone .cold] () from /usr/lib64/libQt5Core.so.5
                  #5  0x00007ffff29a2773 in QDBusAbstractInterfacePrivate::QDBusAbstractInterfacePrivate(QString const&, QString const&, QString const&, QDBusConnection const&, bool) () from /usr/lib64/libQt5DBus.so.5
                  #6  0x00007ffff29a3989 in QDBusAbstractInterface::QDBusAbstractInterface(QString const&, QString const&, char const*, QDBusConnection const&, QObject*) () from /usr/lib64/libQt5DBus.so.5
                  #7  0x00007ffff298a769 in QDBusConnectionInterface::QDBusConnectionInterface(QDBusConnection const&, QObject*) () from /usr/lib64/libQt5DBus.so.5
                  #8  0x00007ffff298790a in QDBusConnectionPrivate::createBusService() () from /usr/lib64/libQt5DBus.so.5
                  #9  0x00007ffff2988ce1 in QDBusConnectionManager::executeConnectionRequest(QDBusConnectionManager::ConnectionRequestData*) ()
                     from /usr/lib64/libQt5DBus.so.5
                  #10 0x00007ffff64a4b14 in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
                  #11 0x00007ffff647a2f5 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
                  #12 0x00007ffff647d6c3 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
                  #13 0x00007ffff64ca8f3 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/libQt5Core.so.5
                  #14 0x00007ffff58221e8 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
                  #15 0x00007ffff5822718 in g_main_context_iterate.constprop () from /usr/lib64/libglib-2.0.so.0
                  #16 0x00007ffff58227ac in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
                  #17 0x00007ffff64ca3f6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
                  #18 0x00007ffff6478ddb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
                  #19 0x00007ffff62ca022 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
                  #20 0x00007ffff29864c7 in QDBusConnectionManager::run() () from /usr/lib64/libQt5DBus.so.5
                  #21 0x00007ffff62cb267 in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
                  #22 0x00007ffff60b232a in ?? () from /usr/lib64/libc.so.6
                  #23 0x00007ffff6131d0c in ?? () from /usr/lib64/libc.so.6
                  
                  
                  SGaistS 1 Reply Last reply
                  0
                  • D Deep Red

                    @SGaist All packages were reemerged and even updated but still the same. I put here the information about stellarium:

                    genlop -i stellarium
                     * sci-astronomy/stellarium
                    
                    
                       Total builds: 10
                       Global build time: 4 hours, 24 minutes and 35 seconds.
                       Average merge time: 26 minutes and 27 seconds.
                    
                       Info about currently installed ebuild:
                    
                       * sci-astronomy/stellarium-1.2
                       Install date: Wed Mar 29 17:22:44 2023
                       USE="nls -debug -deep-sky -doc -gps -media -qt6 -+scripting -+show-my-sky -stars -telescope -test -webengine -+xlsx"
                       CFLAGS="-march=native -O2 -pipe"   CXXFLAGS="-march=native -O2 -pipe"   LDFLAGS="-Wl,-O1 -Wl,--as-needed"
                    

                    backtrace:

                    #0  0x00007ffff60b400c in ?? () from /usr/lib64/libc.so.6
                    #1  0x00007ffff6066572 in raise () from /usr/lib64/libc.so.6
                    #2  0x00007ffff60504b2 in abort () from /usr/lib64/libc.so.6
                    #3  0x00007ffff6291d6d in QMessageLogger::fatal(char const*, ...) const () from /usr/lib64/libQt5Core.so.5
                    #4  0x00007ffff62a838f in QObjectPrivate::QObjectPrivate(int) [clone .cold] () from /usr/lib64/libQt5Core.so.5
                    #5  0x00007ffff29a2773 in QDBusAbstractInterfacePrivate::QDBusAbstractInterfacePrivate(QString const&, QString const&, QString const&, QDBusConnection const&, bool) () from /usr/lib64/libQt5DBus.so.5
                    #6  0x00007ffff29a3989 in QDBusAbstractInterface::QDBusAbstractInterface(QString const&, QString const&, char const*, QDBusConnection const&, QObject*) () from /usr/lib64/libQt5DBus.so.5
                    #7  0x00007ffff298a769 in QDBusConnectionInterface::QDBusConnectionInterface(QDBusConnection const&, QObject*) () from /usr/lib64/libQt5DBus.so.5
                    #8  0x00007ffff298790a in QDBusConnectionPrivate::createBusService() () from /usr/lib64/libQt5DBus.so.5
                    #9  0x00007ffff2988ce1 in QDBusConnectionManager::executeConnectionRequest(QDBusConnectionManager::ConnectionRequestData*) ()
                       from /usr/lib64/libQt5DBus.so.5
                    #10 0x00007ffff64a4b14 in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
                    #11 0x00007ffff647a2f5 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
                    #12 0x00007ffff647d6c3 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
                    #13 0x00007ffff64ca8f3 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/libQt5Core.so.5
                    #14 0x00007ffff58221e8 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
                    #15 0x00007ffff5822718 in g_main_context_iterate.constprop () from /usr/lib64/libglib-2.0.so.0
                    #16 0x00007ffff58227ac in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
                    #17 0x00007ffff64ca3f6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
                    #18 0x00007ffff6478ddb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
                    #19 0x00007ffff62ca022 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
                    #20 0x00007ffff29864c7 in QDBusConnectionManager::run() () from /usr/lib64/libQt5DBus.so.5
                    #21 0x00007ffff62cb267 in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
                    #22 0x00007ffff60b232a in ?? () from /usr/lib64/libc.so.6
                    #23 0x00007ffff6131d0c in ?? () from /usr/lib64/libc.so.6
                    
                    
                    SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #20

                    I don't think that it is that but what about the -qt6 USE option ?

                    I am currently wondering whether it's something specific to QtDBus since it seems to always stop there.

                    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
                    • D Offline
                      D Offline
                      Deep Red
                      wrote on last edited by
                      #21

                      The bug disappeared after qt upgrade to the version 5.15.9

                      1 Reply Last reply
                      0
                      • D Deep Red has marked this topic as solved on

                      • Login

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