HuggingFace CLI dataset download raises error
NONE
I got the same error and was able to resolve it by upgrading from 2.15.0 to 3.2.0.
2025-01-07T22:37:30Z
https://github.com/huggingface/datasets/issues/7362#issuecomment-2576360322
https://api.github.com/repos/huggingface/datasets/issues/7362
IC_kwDODunzps6ZkCOC
https://api.github.com/repos/huggingface/datasets/issues/comments/2576360322/reactions
2025-01-07T22:37:30Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2576360322
https://avatars.githubusercontent.com/u/9491942?v=4
https://api.github.com/users/colehaus/events{/privacy}
https://api.github.com/users/colehaus/followers
https://api.github.com/users/colehaus/following{/other_user}
https://api.github.com/users/colehaus/gists{/gist_id}
https://github.com/colehaus
colehaus
MDQ6VXNlcjk0OTE5NDI=
https://api.github.com/users/colehaus/orgs
https://api.github.com/users/colehaus/received_events
https://api.github.com/users/colehaus/repos
https://api.github.com/users/colehaus/starred{/owner}{/repo}
https://api.github.com/users/colehaus/subscriptions
User
https://api.github.com/users/colehaus
public
NONE
> I got the same error and was able to resolve it by upgrading from 2.15.0 to 3.2.0.

What is needed is upgrading `huggingface-hub==0.27.1`. `datasets` does not appear to have anything to do with the error. The upgrade is a workaround, if the workaround works for your use case. Otherwise, this issue breaks all existing Python clients not using some minimum version of `huggingface-hub`.  
2025-01-07T23:43:29Z
https://github.com/huggingface/datasets/issues/7362#issuecomment-2576432937
https://api.github.com/repos/huggingface/datasets/issues/7362
IC_kwDODunzps6ZkT8p
https://api.github.com/repos/huggingface/datasets/issues/comments/2576432937/reactions
2025-01-07T23:43:44Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2576432937
https://avatars.githubusercontent.com/u/3870355?v=4
https://api.github.com/users/ajayvohra2005/events{/privacy}
https://api.github.com/users/ajayvohra2005/followers
https://api.github.com/users/ajayvohra2005/following{/other_user}
https://api.github.com/users/ajayvohra2005/gists{/gist_id}
https://github.com/ajayvohra2005
ajayvohra2005
MDQ6VXNlcjM4NzAzNTU=
https://api.github.com/users/ajayvohra2005/orgs
https://api.github.com/users/ajayvohra2005/received_events
https://api.github.com/users/ajayvohra2005/repos
https://api.github.com/users/ajayvohra2005/starred{/owner}{/repo}
https://api.github.com/users/ajayvohra2005/subscriptions
User
https://api.github.com/users/ajayvohra2005
public
MEMBER
Correct, this has to do with `huggingface_hub`, not `datasets`. Some old versions of `huggingface_hub` are unfortunately not robust to recent changes on HF. Updating `huggingface_hub` fixes the issue :)

Closing this issue since it's not directly related to `datasets`
2025-01-08T14:35:52Z
https://github.com/huggingface/datasets/issues/7362#issuecomment-2577826833
https://api.github.com/repos/huggingface/datasets/issues/7362
IC_kwDODunzps6ZpoQR
https://api.github.com/repos/huggingface/datasets/issues/comments/2577826833/reactions
2025-01-08T15:00:37Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2577826833
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
### Describe the bug

Trying to download Hugging Face datasets using Hugging Face CLI raises error. This error only started after December 27th, 2024.  For example:
```
huggingface-cli download --repo-type dataset gboleda/wikicorpus
Traceback (most recent call last):
  File "/home/ubuntu/test_venv/bin/huggingface-cli", line 8, in <module>
    sys.exit(main())
  File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/commands/huggingface_cli.py", line 51, in main
    service.run()
  File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/commands/download.py", line 146, in run
    print(self._download())  # Print path to downloaded files
  File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/commands/download.py", line 180, in _download
    return snapshot_download(
  File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
    return fn(*args, **kwargs)
  File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/_snapshot_download.py", line 164, in snapshot_download
    repo_info = api.repo_info(repo_id=repo_id, repo_type=repo_type, revision=revision, token=token)
  File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
    return fn(*args, **kwargs)
  File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 2491, in repo_info
    return method(
  File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
    return fn(*args, **kwargs)
  File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 2366, in dataset_info
    return DatasetInfo(**data)
  File "/home/ubuntu/test_venv/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 799, in __init__
    self.tags = kwargs.pop("tags")
KeyError: 'tags'
```

### Steps to reproduce the bug

```
1. huggingface-cli download --repo-type dataset gboleda/wikicorpus
```


### Expected behavior

There should be no error.

### Environment info


- `datasets` version: 2.19.1
- Platform: Linux-6.8.0-1015-aws-x86_64-with-glibc2.35
- Python version: 3.10.12
- `huggingface_hub` version: 0.23.5
- PyArrow version: 18.1.0
- Pandas version: 2.2.3
- `fsspec` version: 2024.3.1