microsoft / microsoft/vscode-python-debugger

One time error on first run of a python program

Open
#860 0 comments 0 reactions 1 assignee View on GitHub

@eleanorjboyd is already working on this.

Since Nov 4, 2025.

triage-needed
Dominant language
TypeScript
Stars
181
Forks
126
Avg merge
2d 3h
Merged PRs (30d)
3

Description

Testing #859

At step 1.1, the first time I ran a python program I ran into the following error. I did not see it again afterward, not sure what the problem was.

python-debug-test   & 'C:\src\_test\python-debug-test\.venv\Scripts\python.exe' 'c:\Users\bevillal\.vscode-insiders\extensions\ms-python.debugpy-2025.15.2025110302-win32-x64\bundled\libs\debugpy\launcher' '53935' '--' 'C:\src\_test\python-debug-test\root_script.py' 
Traceback (most recent call last):
  File "C:\Users\bevillal\AppData\Local\Programs\Python\Python312\Lib\runpy.py", line 198, in _run_module_as_main
    return _run_code(code, main_globals, None,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\bevillal\AppData\Local\Programs\Python\Python312\Lib\runpy.py", line 88, in _run_code
    exec(code, run_globals)
  File "c:\Users\bevillal\.vscode-insiders\extensions\ms-python.debugpy-2025.15.2025110302-win32-x64\bundled\libs\debugpy\launcher/../..\debugpy\__main__.py", line 69, in <module>
    from debugpy.server import cli
  File "c:\Users\bevillal\.vscode-insiders\extensions\ms-python.debugpy-2025.15.2025110302-win32-x64\bundled\libs\debugpy\launcher/../..\debugpy/..\debugpy\server\__init__.py", line 7, in <module>
    import debugpy._vendored.force_pydevd  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\bevillal\.vscode-insiders\extensions\ms-python.debugpy-2025.15.2025110302-win32-x64\bundled\libs\debugpy\launcher/../..\debugpy/..\debugpy\_vendored\force_pydevd.py", line 44, in <module>
    preimport('pydevd', [
  File "c:\Users\bevillal\.vscode-insiders\extensions\ms-python.debugpy-2025.15.2025110302-win32-x64\bundled\libs\debugpy\launcher/../..\debugpy/..\debugpy\_vendored\__init__.py", line 126, in preimport
    import_module(name)
  File "C:\Users\bevillal\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\bevillal\.vscode-insiders\extensions\ms-python.debugpy-2025.15.2025110302-win32-x64\bundled\libs\debugpy\_vendored\pydevd\pydevd.py", line 51, in <module>
    from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn
  File "c:\Users\bevillal\.vscode-insiders\extensions\ms-python.debugpy-2025.15.2025110302-win32-x64\bundled\libs\debugpy\_vendored\pydevd\_pydev_bundle\pydev_console_utils.py", line 5, in <module>
    from _pydev_bundle._pydev_calltip_util import get_description
  File "c:\Users\bevillal\.vscode-insiders\extensions\ms-python.debugpy-2025.15.2025110302-win32-x64\bundled\libs\debugpy\_vendored\pydevd\_pydev_bundle\_pydev_calltip_util.py", line 16, in <module>
    from _pydev_bundle._pydev_imports_tipper import signature_from_docstring
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1132, in get_code
  File "<frozen importlib._bootstrap_external>", line 1190, in get_data

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.