Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bandit fails when running as part of pre-commit #730

Open
efimk-lu opened this issue Aug 29, 2021 · 2 comments
Open

Bandit fails when running as part of pre-commit #730

efimk-lu opened this issue Aug 29, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@efimk-lu
Copy link

Describe the bug

I'm using the following configuration in pre-commit:

repos:
-   repo: https://github.com/ambv/black
    rev: 19.10b0
    hooks:
    - id: black
      language_version: python3.7

-   repo: https://github.com/pre-commit/mirrors-mypy
    rev: v0.790
    hooks:
    -   id: mypy

-   repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v2.5.0
    hooks:
    -   id: flake8
        args: ["--ignore","E501"]

-   repo: https://github.com/PyCQA/bandit
    rev: '1.7.0'
    hooks:
    -   id: bandit
        exclude: ^src/test/
        args: ["-lll"]

While running pre-commit run -a we are getting the following errors:

[INFO] Initializing environment for https://github.com/ambv/black.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-mypy.
[INFO] Initializing environment for https://gitlab.com/pycqa/flake8.
[INFO] Initializing environment for https://github.com/PyCQA/bandit.
[INFO] Installing environment for https://github.com/ambv/black.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/mirrors-mypy.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://gitlab.com/pycqa/flake8.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/PyCQA/bandit.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
black....................................................................Passed
mypy.....................................................................Passed
flake8...................................................................Passed
bandit...................................................................Failed
- hook id: bandit
- exit code: 1

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable
Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/python-entrypoints/f19b92266f6bda6c62cc5af4288cdb0b0c78752137145dce0ad62618458b5512'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/bin/bandit", line 5, in <module>
    from bandit.cli.main import main
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/__init__.py", line 19, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/__init__.py", line 17, in <module>
    from bandit.core import config  # noqa
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/config.py", line 12, in <module>
    from bandit.core import extension_loader
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 25, in __init__
    self.load_formatters(formatters_namespace)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 33, in load_formatters
    verify_requirements=False,
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 162, in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/root/.cache/pre-commit/repoosi62b_2/py_env-python3.7/lib/python3.7/site-packages/stevedore/_cache.py", line 119, in _build_cacheable_data
    item = ep[:]  # convert namedtuple to tuple
TypeError: 'EntryPoint' object is not subscriptable

Reproduction steps

1. Run `pre-commit run -a`
2. Bandit step fails

Expected behavior

To succeed

Bandit version

1.7.0 (Default)

Python version

3.7

Additional context

No response

@efimk-lu efimk-lu added the bug Something isn't working label Aug 29, 2021
@mr-c
Copy link

mr-c commented Aug 29, 2021

I'm getting the same failure while running bandit in my regular CI: https://github.com/common-workflow-language/cwltool/pull/1482/checks?check_run_id=3454232416#step:9:50

@mr-c
Copy link

mr-c commented Aug 29, 2021

Here's the source: python/importlib_metadata#339
workaround: install version 4.7.1 of importlib_metadata (or add importlib_metadata != 4.8.0 to your installation lines)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants