Description of the Error Situation
In a Python 3.9 environment, a RuntimeError might occur with matplotlib.
It has been confirmed to occur, for example, when importing matlantis-features.
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
This is a known bug in matplotlib==3.9.0.
It has been resolved in versions 3.9.1 and above.
Solution
Please update matplotlib to the latest version using the following command:
pip install -U matplotlib
Reference
https://github.com/matplotlib/matplotlib/issues/28367/