<div dir="ltr">Hi,<div><br></div><div>I'm getting an error when flake8 runs as a pre-commit hook and it won't allow me to commit code. My understanding was that the pre-commit stuff was supposed to make sure the proper versions were found. Ideas?<br><br><div>(gdal) [viewshed-oor] $ git commit<br>black....................................................................Passed<br>isort....................................................................Passed<br>flake8...................................................................Failed<br>- hook id: flake8<br>- exit code: 1<br><br>Traceback (most recent call last):<br>  File "/Users/abell/.cache/pre-commit/repowsfp6jbc/py_env-python3.12/bin/flake8", line 8, in <module><br>    sys.exit(main())<br>             ^^^^^^<br>  File "/Users/abell/.cache/pre-commit/repowsfp6jbc/py_env-python3.12/lib/python3.12/site-packages/flake8/main/cli.py", line 22, in main<br>    app.run(argv)<br>  File "/Users/abell/.cache/pre-commit/repowsfp6jbc/py_env-python3.12/lib/python3.12/site-packages/flake8/main/application.py", line 363, in run<br>    self._run(argv)<br>  File "/Users/abell/.cache/pre-commit/repowsfp6jbc/py_env-python3.12/lib/python3.12/site-packages/flake8/main/application.py", line 350, in _run<br>    self.initialize(argv)<br>  File "/Users/abell/.cache/pre-commit/repowsfp6jbc/py_env-python3.12/lib/python3.12/site-packages/flake8/main/application.py", line 330, in initialize<br>    self.find_plugins(config_finder)<br>  File "/Users/abell/.cache/pre-commit/repowsfp6jbc/py_env-python3.12/lib/python3.12/site-packages/flake8/main/application.py", line 153, in find_plugins<br>    self.check_plugins = plugin_manager.Checkers(local_plugins.extension)<br>                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>  File "/Users/abell/.cache/pre-commit/repowsfp6jbc/py_env-python3.12/lib/python3.12/site-packages/flake8/plugins/manager.py", line 356, in __init__<br>    self.manager = PluginManager(<br>                   ^^^^^^^^^^^^^^<br>  File "/Users/abell/.cache/pre-commit/repowsfp6jbc/py_env-python3.12/lib/python3.12/site-packages/flake8/plugins/manager.py", line 238, in __init__<br>    self._load_entrypoint_plugins()<br>  File "/Users/abell/.cache/pre-commit/repowsfp6jbc/py_env-python3.12/lib/python3.12/site-packages/flake8/plugins/manager.py", line 254, in _load_entrypoint_plugins<br>    eps = importlib_metadata.entry_points().get(self.namespace, ())<br>          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>AttributeError: 'EntryPoints' object has no attribute 'get'<br></div><div><br></div><span class="gmail_signature_prefix">--</span></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div></div></div>