Describe the bug
The bundled bandit crashes with PackageNotFoundError: No package metadata was found for bandit.
To Reproduce
Steps to reproduce the behavior:
- Install VSCode extension on Windows
- Open python file.
- Open Output > Bandit.
- Observe error.
Expected behavior
The bundled bandit to work.
Version
2025.14.0
Additional context
Seemingly identical to #104. No *.dist-info directory was found within the bundled/libs folder.
Import error was resolved by manually copying in the bandit.egg-info directory from the bandit pypi file to the bundled/libs folder, but this results in a new error:
bandit: error: argument -f/--format: invalid choice: 'sarif' (choose from csv, custom, html, json, screen, txt, xml, yaml)
Manually running bandit's extension_mgr does not find sarif as a formatter. There is no bandit_sarif_formatter directory in the bundled/libs folder.
Describe the bug
The bundled bandit crashes with
PackageNotFoundError: No package metadata was found for bandit.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The bundled bandit to work.
Version
2025.14.0
Additional context
Seemingly identical to #104. No *.dist-info directory was found within the bundled/libs folder.
Import error was resolved by manually copying in the bandit.egg-info directory from the bandit pypi file to the bundled/libs folder, but this results in a new error:
bandit: error: argument -f/--format: invalid choice: 'sarif' (choose from csv, custom, html, json, screen, txt, xml, yaml)Manually running bandit's extension_mgr does not find sarif as a formatter. There is no bandit_sarif_formatter directory in the bundled/libs folder.