Skip to content

Errors when starting to debug #143

@roblourens

Description

@roblourens

Testing #141

Debugging started fine, but I got this error in the terminal. It was repeated multiple times

roblou@robfast:/datadrive/testext2$  /usr/bin/env /usr/bin/python3.9 /home/roblou/.vscode-insiders/extensions/ms-python.debugpy-2023.3.13271006-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher 40923 -- /datadrive/testext2/test.py
E+00000.070: Error while enumerating installed packages.

             Traceback (most recent call last):
               File "/home/roblou/.vscode-insiders/extensions/ms-python.debugpy-2023.3.13271006-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/common/log.py", line 361, in get_environment_description
                 report("    {0}=={1}\n", pkg.name, pkg.version)
             AttributeError: 'PathDistribution' object has no attribute 'name'

             Stack where logged:
               File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
                 return _run_code(code, main_globals, None,
               File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
                 exec(code, run_globals)
               File "/home/roblou/.vscode-insiders/extensions/ms-python.debugpy-2023.3.13271006-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher/__main__.py", line 91, in <module>
                 main()
               File "/home/roblou/.vscode-insiders/extensions/ms-python.debugpy-2023.3.13271006-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher/__main__.py", line 21, in main
                 log.describe_environment("debugpy.launcher startup environment:")
               File "/home/roblou/.vscode-insiders/extensions/ms-python.debugpy-2023.3.13271006-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/common/log.py", line 369, in describe_environment
                 info("{0}", get_environment_description(header))
               File "/home/roblou/.vscode-insiders/extensions/ms-python.debugpy-2023.3.13271006-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/common/log.py", line 363, in get_environment_description
                 swallow_exception("Error while enumerating installed packages.")
               File "/home/roblou/.vscode-insiders/extensions/ms-python.debugpy-2023.3.13271006-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/common/log.py", line 215, in swallow_exception
                 _exception(format_string, *args, **kwargs)

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions