Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [CDB] ModuleNotFoundError: No module named 'typing'
Qt 6.11 is out! See what's new in the release blog

[CDB] ModuleNotFoundError: No module named 'typing'

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
5 Posts 3 Posters 199 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.
  • X Offline
    X Offline
    Xxproner
    wrote last edited by Xxproner
    #1

    I use Qt Creator 19.0.2 portable build (qtcreator-windows-x64-msvc-19.0.2.7z). I copied qtcreatorcdbext contents to <Qt folder>/lib. When I launch qt creator start debugging and stop on breakpoint I get

    [CDB] DEBUG: 5:sys.path.insert(1, '...\\QtCreator-19.0.2.7\\share\\qtcreator\\debugger')
     [CDB] DEBUG: 6:from cdbbridge import Dumper
     [CDB] Traceback (most recent call last):
     [CDB]   File "<string>", line 1, in <module>
     [CDB]   File "...\QtCreator-19.0.2.7\share\qtcreator\debugger\cdbbridge.py", line 4, in <module>
     [CDB]     import inspect
     [CDB]   File "D:/a/qt-creator/qt-creator/build/build-qtcreatorcdbext/x64-bld-prefix/src/x64-bld-build/python-lib\inspect.py", line 163, in <module>
     [CDB] ModuleNotFoundError: No module named 'typing'
     [CDB] DEBUG: 7:print(dir())
     [CDB] ['__annotations__', '__builtins__', '__doc__', '__loader__', '__name__', '__package__', '__spec__', 'cdbext', 'sys']
     [CDB] DEBUG: 8:theDumper = Dumper()
     [CDB] Traceback (most recent call last):
     [CDB]   File "<string>", line 1, in <module>
     [CDB] NameError: name 'Dumper' is not defined
    

    So inspect.py imports typing.py that is not exists. So cdbbridge and embedded python library is not compete.
    I tried:

    1. install qtcreatorcdbext other version (same error);
    2. install python and specify PYTHONPATH and PYTHONHOME env variables (same error);
    3. copy python 313 library to cdbbridge folder manually (version error);

    I hope that you will explain to me the reason for the error and explain what I missed during the installation process (I am sure that the installation is not complete).

    Thx in advance)

    cristian-adamC 1 Reply Last reply
    0
    • X Xxproner

      I use Qt Creator 19.0.2 portable build (qtcreator-windows-x64-msvc-19.0.2.7z). I copied qtcreatorcdbext contents to <Qt folder>/lib. When I launch qt creator start debugging and stop on breakpoint I get

      [CDB] DEBUG: 5:sys.path.insert(1, '...\\QtCreator-19.0.2.7\\share\\qtcreator\\debugger')
       [CDB] DEBUG: 6:from cdbbridge import Dumper
       [CDB] Traceback (most recent call last):
       [CDB]   File "<string>", line 1, in <module>
       [CDB]   File "...\QtCreator-19.0.2.7\share\qtcreator\debugger\cdbbridge.py", line 4, in <module>
       [CDB]     import inspect
       [CDB]   File "D:/a/qt-creator/qt-creator/build/build-qtcreatorcdbext/x64-bld-prefix/src/x64-bld-build/python-lib\inspect.py", line 163, in <module>
       [CDB] ModuleNotFoundError: No module named 'typing'
       [CDB] DEBUG: 7:print(dir())
       [CDB] ['__annotations__', '__builtins__', '__doc__', '__loader__', '__name__', '__package__', '__spec__', 'cdbext', 'sys']
       [CDB] DEBUG: 8:theDumper = Dumper()
       [CDB] Traceback (most recent call last):
       [CDB]   File "<string>", line 1, in <module>
       [CDB] NameError: name 'Dumper' is not defined
      

      So inspect.py imports typing.py that is not exists. So cdbbridge and embedded python library is not compete.
      I tried:

      1. install qtcreatorcdbext other version (same error);
      2. install python and specify PYTHONPATH and PYTHONHOME env variables (same error);
      3. copy python 313 library to cdbbridge folder manually (version error);

      I hope that you will explain to me the reason for the error and explain what I missed during the installation process (I am sure that the installation is not complete).

      Thx in advance)

      cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote last edited by
      #3

      @Xxproner It looks like typing.py is excluded, see https://github.com/qt-creator/qt-creator/blob/master/cmake/CreatePythonXY.cmake#L33

      It's a one line change. Do report the issue at https://qt-project.atlassian.net/secure/CreateIssue.jspa?pid=10234

      You can:

      1. Fork https://github.com/qt-creator/qt-creator
      2. Enable GitHub Actions
      3. In your fork do the one line change
      4. Push a release tag, and you'll have your own binaries!
      SGaistS 1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote last edited by
        #2

        Hi and welcome to devnet,

        AFAIK, the typing module is part of Python's standard library.

        Can you try with an official release ?

        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
        2
        • X Xxproner

          I use Qt Creator 19.0.2 portable build (qtcreator-windows-x64-msvc-19.0.2.7z). I copied qtcreatorcdbext contents to <Qt folder>/lib. When I launch qt creator start debugging and stop on breakpoint I get

          [CDB] DEBUG: 5:sys.path.insert(1, '...\\QtCreator-19.0.2.7\\share\\qtcreator\\debugger')
           [CDB] DEBUG: 6:from cdbbridge import Dumper
           [CDB] Traceback (most recent call last):
           [CDB]   File "<string>", line 1, in <module>
           [CDB]   File "...\QtCreator-19.0.2.7\share\qtcreator\debugger\cdbbridge.py", line 4, in <module>
           [CDB]     import inspect
           [CDB]   File "D:/a/qt-creator/qt-creator/build/build-qtcreatorcdbext/x64-bld-prefix/src/x64-bld-build/python-lib\inspect.py", line 163, in <module>
           [CDB] ModuleNotFoundError: No module named 'typing'
           [CDB] DEBUG: 7:print(dir())
           [CDB] ['__annotations__', '__builtins__', '__doc__', '__loader__', '__name__', '__package__', '__spec__', 'cdbext', 'sys']
           [CDB] DEBUG: 8:theDumper = Dumper()
           [CDB] Traceback (most recent call last):
           [CDB]   File "<string>", line 1, in <module>
           [CDB] NameError: name 'Dumper' is not defined
          

          So inspect.py imports typing.py that is not exists. So cdbbridge and embedded python library is not compete.
          I tried:

          1. install qtcreatorcdbext other version (same error);
          2. install python and specify PYTHONPATH and PYTHONHOME env variables (same error);
          3. copy python 313 library to cdbbridge folder manually (version error);

          I hope that you will explain to me the reason for the error and explain what I missed during the installation process (I am sure that the installation is not complete).

          Thx in advance)

          cristian-adamC Offline
          cristian-adamC Offline
          cristian-adam
          wrote last edited by
          #3

          @Xxproner It looks like typing.py is excluded, see https://github.com/qt-creator/qt-creator/blob/master/cmake/CreatePythonXY.cmake#L33

          It's a one line change. Do report the issue at https://qt-project.atlassian.net/secure/CreateIssue.jspa?pid=10234

          You can:

          1. Fork https://github.com/qt-creator/qt-creator
          2. Enable GitHub Actions
          3. In your fork do the one line change
          4. Push a release tag, and you'll have your own binaries!
          SGaistS 1 Reply Last reply
          1
          • cristian-adamC cristian-adam

            @Xxproner It looks like typing.py is excluded, see https://github.com/qt-creator/qt-creator/blob/master/cmake/CreatePythonXY.cmake#L33

            It's a one line change. Do report the issue at https://qt-project.atlassian.net/secure/CreateIssue.jspa?pid=10234

            You can:

            1. Fork https://github.com/qt-creator/qt-creator
            2. Enable GitHub Actions
            3. In your fork do the one line change
            4. Push a release tag, and you'll have your own binaries!
            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote last edited by
            #4

            @cristian-adam said in [CDB] ModuleNotFoundError: No module named 'typing':

            @Xxproner It looks like typing.py is excluded, see https://github.com/qt-creator/qt-creator/blob/master/cmake/CreatePythonXY.cmake#L33

            It's a one line change. Do report the issue at https://qt-project.atlassian.net/secure/CreateIssue.jspa?pid=10234

            A patch has been submitted :-)

            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
            1
            • X Xxproner has marked this topic as solved
            • X Offline
              X Offline
              Xxproner
              wrote last edited by
              #5

              Thx for explanation what the problem was. That is what I need.
              Marked topic as solved

              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
              • Unsolved