Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Try toi debug my program
Qt 6.11 is out! See what's new in the release blog

Try toi debug my program

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 2 Posters 608 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.
  • X Offline
    X Offline
    Xav12358
    wrote on last edited by
    #1

    Hello,

    I try to run my python program which use Pyside2.

    When I debug is on the import line od Pyside2 I get that error:

    Traceback (most recent call last):
      File "<frozen importlib._bootstrap>", line 991, in _find_and_load
      File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 657, in _load_unlocked
      File "<frozen importlib._bootstrap>", line 556, in module_from_spec
      File "<frozen importlib._bootstrap_external>", line 1166, in create_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
    ImportError: /home/xavier/.local/lib/python3.8/site-packages/PySide2/Qt/lib/libQt5Gui.so.5: undefined symbol: _ZNK11QThreadPool8containsEPK7QThread, version Qt_5
    

    I try many fixes, but noting works properly. Exemple of fixes:
    https://stackoverflow.com/questions/63903441/python3-importerror-lib-x86-64-linux-gnu-libqt5core-so-5-version-qt-5-15-n

    JonBJ 1 Reply Last reply
    0
    • X Xav12358

      Hello,

      I try to run my python program which use Pyside2.

      When I debug is on the import line od Pyside2 I get that error:

      Traceback (most recent call last):
        File "<frozen importlib._bootstrap>", line 991, in _find_and_load
        File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 657, in _load_unlocked
        File "<frozen importlib._bootstrap>", line 556, in module_from_spec
        File "<frozen importlib._bootstrap_external>", line 1166, in create_module
        File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      ImportError: /home/xavier/.local/lib/python3.8/site-packages/PySide2/Qt/lib/libQt5Gui.so.5: undefined symbol: _ZNK11QThreadPool8containsEPK7QThread, version Qt_5
      

      I try many fixes, but noting works properly. Exemple of fixes:
      https://stackoverflow.com/questions/63903441/python3-importerror-lib-x86-64-linux-gnu-libqt5core-so-5-version-qt-5-15-n

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Xav12358
      Have you tried completely uninstalling PySide2 and reinstalling from scratch?
      How do you install it?
      Are you installing into any kind of Python virtual environment such as anaconda?
      What platform are you on?

      X 1 Reply Last reply
      0
      • JonBJ JonB

        @Xav12358
        Have you tried completely uninstalling PySide2 and reinstalling from scratch?
        How do you install it?
        Are you installing into any kind of Python virtual environment such as anaconda?
        What platform are you on?

        X Offline
        X Offline
        Xav12358
        wrote on last edited by
        #3

        @JonB
        I already try to reinstall Pyside2 and I install it using pip: Here is the full info on the package:

        python3.8 -m pip show Pyside2
        Name: PySide2
        Version: 5.15.2.1
        Summary: Python bindings for the Qt cross-platform application and UI framework
        Home-page: https://www.pyside.org
        Author: Qt for Python Team
        Author-email: pyside@qt-project.org
        License: LGPL
        

        I use my system environment, no virtual environment or conda .
        I am on Ubuntu 20.04.

        JonBJ 1 Reply Last reply
        0
        • X Xav12358

          @JonB
          I already try to reinstall Pyside2 and I install it using pip: Here is the full info on the package:

          python3.8 -m pip show Pyside2
          Name: PySide2
          Version: 5.15.2.1
          Summary: Python bindings for the Qt cross-platform application and UI framework
          Home-page: https://www.pyside.org
          Author: Qt for Python Team
          Author-email: pyside@qt-project.org
          License: LGPL
          

          I use my system environment, no virtual environment or conda .
          I am on Ubuntu 20.04.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @Xav12358
          I can only say I did the same under both 20.04 and 22.04 and encountered no problem.
          Not that it should matter, but what exactly is your import line which causes the error message?

          X 1 Reply Last reply
          0
          • JonBJ JonB

            @Xav12358
            I can only say I did the same under both 20.04 and 22.04 and encountered no problem.
            Not that it should matter, but what exactly is your import line which causes the error message?

            X Offline
            X Offline
            Xav12358
            wrote on last edited by
            #5

            @JonB
            Thank you, I forget to mention that happens in debug mode in pycharm.

            JonBJ 1 Reply Last reply
            0
            • X Xav12358

              @JonB
              Thank you, I forget to mention that happens in debug mode in pycharm.

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by
              #6

              @Xav12358 Does that mean only from "debug mode in pycharm"? Are you saying there is no problem outside PyCharm or not in debug mode?

              X 1 Reply Last reply
              0
              • JonBJ JonB

                @Xav12358 Does that mean only from "debug mode in pycharm"? Are you saying there is no problem outside PyCharm or not in debug mode?

                X Offline
                X Offline
                Xav12358
                wrote on last edited by
                #7

                @JonB

                In fact when I run the program without debug mode in pycharm, it works properly but in debug I have that error

                JonBJ 1 Reply Last reply
                0
                • X Xav12358

                  @JonB

                  In fact when I run the program without debug mode in pycharm, it works properly but in debug I have that error

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote on last edited by
                  #8

                  @Xav12358 Then I'm afraid I don't know since it's some PyCharm debugger issue.

                  1 Reply Last reply
                  0

                  • Login

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