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

AttributeError: 'EntryPoints' object has no attribute 'get' #1708

Closed
Dai-Wenxun opened this issue Oct 4, 2022 · 1 comment
Closed

AttributeError: 'EntryPoints' object has no attribute 'get' #1708

Dai-Wenxun opened this issue Oct 4, 2022 · 1 comment
Labels

Comments

@Dai-Wenxun
Copy link

how did you install flake8?

None

unmodified output of flake8 --bug-report

Traceback (most recent call last):
  File "/home/runner/.cache/pre-commit/repo5rv4x7m3/py_env-python3.7/bin/flake8", line 8, in <module>
    sys.exit(main())
  File "/home/runner/.cache/pre-commit/repo5rv4x7m3/py_env-python3.7/lib/python3.7/site-packages/flake8/main/cli.py", line 22, in main
    app.run(argv)
  File "/home/runner/.cache/pre-commit/repo5rv4x7m3/py_env-python3.7/lib/python3.7/site-packages/flake8/main/application.py", line 360, in run
    self._run(argv)
  File "/home/runner/.cache/pre-commit/repo5rv4x7m3/py_env-python3.7/lib/python3.7/site-packages/flake8/main/application.py", line 347, in _run
    self.initialize(argv)
  File "/home/runner/.cache/pre-commit/repo5rv4x7m3/py_env-python3.7/lib/python3.7/site-packages/flake8/main/application.py", line 328, in initialize
    self.find_plugins(config_finder)
  File "/home/runner/.cache/pre-commit/repo5rv4x7m3/py_env-python3.7/lib/python3.7/site-packages/flake8/main/application.py", line 153, in find_plugins
    self.check_plugins = plugin_manager.Checkers(local_plugins.extension)
  File "/home/runner/.cache/pre-commit/repo5rv4x7m3/py_env-python3.7/lib/python3.7/site-packages/flake8/plugins/manager.py", line 357, in __init__
    self.namespace, local_plugins=local_plugins
  File "/home/runner/.cache/pre-commit/repo5rv4x7m3/py_env-python3.7/lib/python3.7/site-packages/flake8/plugins/manager.py", line 238, in __init__
    self._load_entrypoint_plugins()
  File "/home/runner/.cache/pre-commit/repo5rv4x7m3/py_env-python3.7/lib/python3.7/site-packages/flake8/plugins/manager.py", line 254, in _load_entrypoint_plugins
    eps = importlib_metadata.entry_points().get(self.namespace, ())
AttributeError: 'EntryPoints' object has no attribute 'get'

describe the problem

None

@asottile
Copy link
Member

asottile commented Oct 4, 2022

dupe #1701

@asottile asottile closed this as completed Oct 4, 2022
@PyCQA PyCQA locked as resolved and limited conversation to collaborators Oct 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants