Skip to content

Extension crash with: PackageNotFoundError: No package metadata was found for bandit #125

Description

@brian-krulik-nnl

Describe the bug
The bundled bandit crashes with PackageNotFoundError: No package metadata was found for bandit.

To Reproduce
Steps to reproduce the behavior:

  1. Install VSCode extension on Windows
  2. Open python file.
  3. Open Output > Bandit.
  4. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions