解決策。AttributeError: 'EntryPoints' object has no attribute 'get'
エラーの内容
AttributeError: 'EntryPoints' object has no attribute 'get'
周辺の情報も含めて
C:\_JITAKU_DE_GYOMU\_ple_plelog\PLELog\datasets>flake8 haaaaaaaaatext.py Traceback (most recent call last): File "C:\Users\XYZZZ\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "C:\Users\XYZZZ\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\XYZZZ\AppData\Local\Programs\Python\Python37\Scripts\flake8.exe\__main__.py", line 7, in <module> File "C:\Users\XYZZZ\AppData\Local\Programs\Python\Python37\lib\site-packages\flake8\main\cli.py", line 22, in main app.run(argv) File "C:\Users\XYZZZ\AppData\Local\Programs\Python\Python37\lib\site-packages\flake8\main\application.py", line 375, in run self._run(argv) File "C:\Users\XYZZZ\AppData\Local\Programs\Python\Python37\lib\site-packages\flake8\main\application.py", line 363, in _run self.initialize(argv) File "C:\Users\XYZZZ\AppData\Local\Programs\Python\Python37\lib\site-packages\flake8\main\application.py", line 343, in initialize self.find_plugins(config_finder) File "C:\Users\XYZZZ\AppData\Local\Programs\Python\Python37\lib\site-packages\flake8\main\application.py", line 157, in find_plugins self.check_plugins = plugin_manager.Checkers(local_plugins.extension) File "C:\Users\XYZZZ\AppData\Local\Programs\Python\Python37\lib\site-packages\flake8\plugins\manager.py", line 364, in __init__ self.namespace, local_plugins=local_plugins File "C:\Users\XYZZZ\AppData\Local\Programs\Python\Python37\lib\site-packages\flake8\plugins\manager.py", line 243, in __init__ self._load_entrypoint_plugins() File "C:\Users\XYZZZ\AppData\Local\Programs\Python\Python37\lib\site-packages\flake8\plugins\manager.py", line 261, in _load_entrypoint_plugins eps = importlib_metadata.entry_points().get(self.namespace, ()) AttributeError: 'EntryPoints' object has no attribute 'get'
環境
windows10
python3.7
解決策
こういうわけがわからないのは、インストールし直し! (-force-reinstall 付きにて)
python -m pip install flake8 --force-reinstall
コメント
コメントなどあれば、なんでも、お願いーーー。