You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using python3.9 and evaluate module loading Meteor metric crashes at a non-existent import from datasets.config in datasets v2.14
Steps to reproduce the bug
from evaluate import load
meteor = load("meteor")
produces the following error:
from datasets.config import importlib_metadata, version
ImportError: cannot import name 'importlib_metadata' from 'datasets.config' (<path_to_project>/venv/lib/python3.9/site-packages/datasets/config.py)
Expected behavior
datasets of v2.10 has the following workaround in config.py:
if PY_VERSION < version.parse("3.8"):
import importlib_metadata
else:
import importlib.metadata as importlib_metadata
However, it's absent in v2.14 which might be the cause of the issue.