equinor/webviz-config

Problem building app on Python 3.12

Closed this issue · 1 comments

webviz-ert tests on Python 3.12 fail, eg https://github.com/equinor/webviz-ert/actions/runs/7086495760/job/19284873949

Problem is here:

for entry_point in entry_points().get("webviz_config_themes", []):

Issue is that entry_points() no longer returns a dict, the object returned has no get() method.

Instead you need something like entry_points(group='webviz_config_themes') which should work on Python 3.11 as well; not sure about Python 3.8.

https://docs.python.org/3.12/library/importlib.metadata.html - under Compatibility note

Officially webviz-config doesn't support python >3.10, but your issue relates to this currently a bit stale PR where the tests fail for the same reason: #673