load_metric error: module 'datasets.utils.file_utils' has no attribute 'add_start_docstrings'
MEMBER
Hi @nsaphra, thanks for reporting.

This issue was fixed in `datasets` version 1.3.0. Could you please update `datasets` and tell me if the problem persists?
```shell
pip install -U datasets
```
2021-04-14T05:43:18Z
https://github.com/huggingface/datasets/issues/2214#issuecomment-819244461
https://api.github.com/repos/huggingface/datasets/issues/2214
MDEyOklzc3VlQ29tbWVudDgxOTI0NDQ2MQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/819244461/reactions
2021-04-14T05:43:18Z
https://api.github.com/repos/huggingface/datasets/issues/comments/819244461
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
MEMBER
There might be a bug in the conda version of `datasets` 1.2.1 where the datasets/metric scripts are downloaded from `master` instead of the `1.2.1` repo.

You can try setting the env var `HF_SCRIPTS_VERSION="1.2.1"` as a workaround. Let me know if that helps.
2021-04-15T11:13:57Z
https://github.com/huggingface/datasets/issues/2214#issuecomment-820342599
https://api.github.com/repos/huggingface/datasets/issues/2214
MDEyOklzc3VlQ29tbWVudDgyMDM0MjU5OQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/820342599/reactions
2021-04-15T11:13:57Z
https://api.github.com/repos/huggingface/datasets/issues/comments/820342599
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
NONE
I just faced the same issue. I was using 1.2.1 from conda and received the same AttributeError complaining about 'add_start_docstrings'. Uninstalling the conda installed datasets and then installing the latest datasets (version 1.5.0) using pip install solved the issue for me. I don't like mixing up conda and pip installs in the same environments but this will have to do for now, until 1.5.0 is made available through conda.
2021-04-15T22:34:00Z
https://github.com/huggingface/datasets/issues/2214#issuecomment-820769653
https://api.github.com/repos/huggingface/datasets/issues/2214
MDEyOklzc3VlQ29tbWVudDgyMDc2OTY1Mw==
https://api.github.com/repos/huggingface/datasets/issues/comments/820769653/reactions
2021-04-15T22:34:00Z
https://api.github.com/repos/huggingface/datasets/issues/comments/820769653
https://avatars.githubusercontent.com/u/16280426?v=4
https://api.github.com/users/imbesat-rizvi/events{/privacy}
https://api.github.com/users/imbesat-rizvi/followers
https://api.github.com/users/imbesat-rizvi/following{/other_user}
https://api.github.com/users/imbesat-rizvi/gists{/gist_id}
https://github.com/imbesat-rizvi
imbesat-rizvi
MDQ6VXNlcjE2MjgwNDI2
https://api.github.com/users/imbesat-rizvi/orgs
https://api.github.com/users/imbesat-rizvi/received_events
https://api.github.com/users/imbesat-rizvi/repos
https://api.github.com/users/imbesat-rizvi/starred{/owner}{/repo}
https://api.github.com/users/imbesat-rizvi/subscriptions
User
https://api.github.com/users/imbesat-rizvi
public
NONE
Yep, seems to have fixed things! The conda package could really do with an update. Thanks!
2021-04-23T15:19:59Z
https://github.com/huggingface/datasets/issues/2214#issuecomment-825731247
https://api.github.com/repos/huggingface/datasets/issues/2214
MDEyOklzc3VlQ29tbWVudDgyNTczMTI0Nw==
https://api.github.com/repos/huggingface/datasets/issues/comments/825731247/reactions
2021-04-23T15:19:59Z
https://api.github.com/repos/huggingface/datasets/issues/comments/825731247
https://avatars.githubusercontent.com/u/414788?v=4
https://api.github.com/users/nsaphra/events{/privacy}
https://api.github.com/users/nsaphra/followers
https://api.github.com/users/nsaphra/following{/other_user}
https://api.github.com/users/nsaphra/gists{/gist_id}
https://github.com/nsaphra
nsaphra
MDQ6VXNlcjQxNDc4OA==
https://api.github.com/users/nsaphra/orgs
https://api.github.com/users/nsaphra/received_events
https://api.github.com/users/nsaphra/repos
https://api.github.com/users/nsaphra/starred{/owner}{/repo}
https://api.github.com/users/nsaphra/subscriptions
User
https://api.github.com/users/nsaphra
public
I'm having the same problem as [Notebooks issue 10](https://github.com/huggingface/notebooks/issues/10) on datasets 1.2.1, and it seems to be an issue with the datasets package.

```python
>>> from datasets import load_metric
>>> metric = load_metric("glue", "sst2")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/ext3/miniconda3/lib/python3.8/site-packages/datasets-1.2.1-py3.8.egg/datasets/load.py", line 502, in load_metric
  File "/ext3/miniconda3/lib/python3.8/site-packages/datasets-1.2.1-py3.8.egg/datasets/load.py", line 66, in import_main_class
  File "/ext3/miniconda3/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/ns4008/.cache/huggingface/modules/datasets_modules/metrics/glue/e4606ab9804a36bcd5a9cebb2cb65bb14b6ac78ee9e6d5981fa679a495dd55de/glue.py", line 105, in <module>
    @datasets.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
AttributeError: module 'datasets.utils.file_utils' has no attribute 'add_start_docstrings'
```