You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/ec2-user/.cache/pre-commit/repox3x2enjw/py_env-python3/bin/flake8", line 8, in
sys.exit(main())
File "/home/ec2-user/.cache/pre-commit/repox3x2enjw/py_env-python3/lib/python3.7/site-packages/flake8/main/cli.py", line 22, in main
app.run(argv)
File "/home/ec2-user/.cache/pre-commit/repox3x2enjw/py_env-python3/lib/python3.7/site-packages/flake8/main/application.py", line 363, in run
self._run(argv)
File "/home/ec2-user/.cache/pre-commit/repox3x2enjw/py_env-python3/lib/python3.7/site-packages/flake8/main/application.py", line 350, in _run
self.initialize(argv)
File "/home/ec2-user/.cache/pre-commit/repox3x2enjw/py_env-python3/lib/python3.7/site-packages/flake8/main/application.py", line 330, in initialize
self.find_plugins(config_finder)
File "/home/ec2-user/.cache/pre-commit/repox3x2enjw/py_env-python3/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/ec2-user/.cache/pre-commit/repox3x2enjw/py_env-python3/lib/python3.7/site-packages/flake8/plugins/manager.py", line 357, in init
self.namespace, local_plugins=local_plugins
File "/home/ec2-user/.cache/pre-commit/repox3x2enjw/py_env-python3/lib/python3.7/site-packages/flake8/plugins/manager.py", line 238, in init
self._load_entrypoint_plugins()
File "/home/ec2-user/.cache/pre-commit/repox3x2enjw/py_env-python3/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'
Potentially related to the fix for #201
Also to this issue in flake8: PyCQA/flake8#1701
STeps to reproduce:
checkout out repo, install requirements, install pre-commit
Make minor change to *.py
commit change:
Result:
flake8...................................................................Failed
Traceback (most recent call last):
File "/home/ec2-user/.cache/pre-commit/repox3x2enjw/py_env-python3/bin/flake8", line 8, in
sys.exit(main())
File "/home/ec2-user/.cache/pre-commit/repox3x2enjw/py_env-python3/lib/python3.7/site-packages/flake8/main/cli.py", line 22, in main
app.run(argv)
File "/home/ec2-user/.cache/pre-commit/repox3x2enjw/py_env-python3/lib/python3.7/site-packages/flake8/main/application.py", line 363, in run
self._run(argv)
File "/home/ec2-user/.cache/pre-commit/repox3x2enjw/py_env-python3/lib/python3.7/site-packages/flake8/main/application.py", line 350, in _run
self.initialize(argv)
File "/home/ec2-user/.cache/pre-commit/repox3x2enjw/py_env-python3/lib/python3.7/site-packages/flake8/main/application.py", line 330, in initialize
self.find_plugins(config_finder)
File "/home/ec2-user/.cache/pre-commit/repox3x2enjw/py_env-python3/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/ec2-user/.cache/pre-commit/repox3x2enjw/py_env-python3/lib/python3.7/site-packages/flake8/plugins/manager.py", line 357, in init
self.namespace, local_plugins=local_plugins
File "/home/ec2-user/.cache/pre-commit/repox3x2enjw/py_env-python3/lib/python3.7/site-packages/flake8/plugins/manager.py", line 238, in init
self._load_entrypoint_plugins()
File "/home/ec2-user/.cache/pre-commit/repox3x2enjw/py_env-python3/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'
Expected:
Passed or linting error.
OS:
cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
Python:
python --version
Python 3.7.10
The text was updated successfully, but these errors were encountered: