Repository: huggingface/evaluate
Issue: meteor don't works with latest datasets
Root cause: External Dependency Breakage

datasets [dropped python 3.7 support](https://github.com/huggingface/datasets/pull/6005/files#diff-4a892bc016d0287d28cd0ba04a582a737ed6425c96bf2c8ecf3d771de16e6b16L13-L26), so this line won't work anymore:
https://github.com/huggingface/evaluate/blob/af3c30561d840b83e54fc5f7150ea58046d6af69/metrics/meteor/meteor.py#L18

Faced the same issue and solved with `pip install datasets==2.13.1`. 
Or probably, the `evaluate` library should replace the import of `importlib_metadata` with `import importlib.metadata as importlib_metadata`

I am still getting the same error. I can use other metrics like bleu and rouge. But when i tried to use Meteor. This was the error : ImportError: cannot import name 'importlib_metadata' from 'datasets.config'. I am not sure what is the issue?


Need to do a new release - can you install `evaluate` from source in the meantime?

Also getting the below error while trying `evaluate.load('meteor')` with python 3.8 and 3.9:

ImportError: cannot import name 'importlib_metadata' from 'datasets.config' (C:\Users\agemawat\Anaconda3\envs\raitext\lib\site-packages\datasets\config.py)

Me too. This crashed my training code and I couldn't use meteor anymore. Here's a Colab reproduction: https://colab.research.google.com/drive/1JXVodEx5VRWA2GYzjk__FuyOIPauz6Ug?usp=sharing

And a traceback:
```
ImportError                               Traceback (most recent call last)
[<ipython-input-2-7fac65b59c62>](https://localhost:8080/#) in <cell line: 2>()
      1 import evaluate
----> 2 evaluate.load("meteor")

9 frames
[~/.cache/huggingface/modules/evaluate_modules/metrics/evaluate-metric--meteor/90426c9b4a2cf0bf10c6718aa8de221c7a50f46a694f4cc37bb3ee12fc9aa8c9/meteor.py](https://localhost:8080/#) in <module>
     16 import datasets
     17 import numpy as np
---> 18 from datasets.config import importlib_metadata, version
     19 from nltk.translate import meteor_score
     20 

ImportError: cannot import name 'importlib_metadata' from 'datasets.config' (/usr/local/lib/python3.10/dist-packages/datasets/config.py)
```

I can replicate this issue too

Also get this error too

Can you try to install `evaluate` from main?

> Faced the same issue and solved with `pip install datasets==2.13.1`. Or probably, the `evaluate` library should replace the import of `importlib_metadata` with `import importlib.metadata as importlib_metadata`

Fixed my issue with `import importlib.metadata as importlib_metadata`. Thanks!

> > Faced the same issue and solved with `pip install datasets==2.13.1`. Or probably, the `evaluate` library should replace the import of `importlib_metadata` with `import importlib.metadata as importlib_metadata`
> 
> Fixed my issue with `import importlib.metadata as importlib_metadata`. Thanks!

Could  you please explain how fixed the issue this way? I installed importlib-metadata in my conda but still I cannot use the evaluate library with METEOR. Thanks

We just released a new version of `evaluate`, you can update evaluate it will work with recent datasets versions

```
pip install -U evaluate
```

@lhoestq , I still get the error with `datasets==2.14.5` and `evaluate==0.4.1`. However, downgrading to `datasets==2.13.1` resolves it. 

pip install -U evaluate
resolved it for me!

Thanks :)