Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

One time error on first run of a python program

未关闭
#860 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@eleanorjboyd 已经在做这个了。

开始于 2025年11月4日。

评估

这个 Issue 还没有评估数据。

描述

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
主要语言
TypeScript
星标
181
派生
126
平均合并
2 天 3 小时
30 天内合并 PR
3

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/vscode-python-debugger 的其他 Issue

查看 microsoft/vscode-python-debugger 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。