One time error on first run of a python program

Đang mở
#860 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@eleanorjboyd đang làm issue này rồi.

Từ ngày 4/11/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

triage-needed

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
Ngôn ngữ chính
TypeScript
Star
181
Fork
126
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
3

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/vscode-python-debugger

Tất cả issue của microsoft/vscode-python-debugger

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.