■エラー状況の説明
python 3.9環境にて、matplotlibのRuntimeErrorが発生することがあります。
matlantis-featuresのimport時等に発生することが確認されています。
File ~/.py39/lib/python3.9/site-packages/matplotlib/backends/registry.py:180, in BackendRegistry._validate_and_store_entry_points(self, entries)
178 raise RuntimeError(f"Entry point name '{name}' is a built-in backend")
179 if name in self._backend_to_gui_framework:
--> 180 raise RuntimeError(f"Entry point name '{name}' duplicated")
182 self._name_to_module[name] = "module://" + module
183 # Do not yet know backend GUI framework, determine it only when necessary.
RuntimeError: Entry point name 'inline' duplicated
これはmatplotlib==3.9.0における既知のバグです。
matplotlib==3.9.1以上では解消されています。
■対処方法
以下のコマンドでmatplotlibを最新版にアップデートしてください。
pip install -U matplotlib
■参考
https://github.com/matplotlib/matplotlib/issues/28367/