AttributeError: module 'huggingface_hub.hf_api' has no attribute 'DatasetInfo'
{'login': 'JTWang2000', 'id': 49268567, 'node_id': 'MDQ6VXNlcjQ5MjY4NTY3', 'avatar_url': 'https://avatars.githubusercontent.com/u/49268567?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/JTWang2000', 'html_url': 'https://github.com/JTWang2000', 'followers_url': 'https://api.github.com/users/JTWang2000/followers', 'following_url': 'https://api.github.com/users/JTWang2000/following{/other_user}', 'gists_url': 'https://api.github.com/users/JTWang2000/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/JTWang2000/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/JTWang2000/subscriptions', 'organizations_url': 'https://api.github.com/users/JTWang2000/orgs', 'repos_url': 'https://api.github.com/users/JTWang2000/repos', 'events_url': 'https://api.github.com/users/JTWang2000/events{/privacy}', 'received_events_url': 'https://api.github.com/users/JTWang2000/received_events', 'type': 'User', 'site_admin': False}
[{'id': 1935892857, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODU3', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/bug', 'name': 'bug', 'color': 'd73a4a', 'default': True, 'description': "Something isn't working"}]
{'login': 'albertvillanova', 'id': 8515462, 'node_id': 'MDQ6VXNlcjg1MTU0NjI=', 'avatar_url': 'https://avatars.githubusercontent.com/u/8515462?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/albertvillanova', 'html_url': 'https://github.com/albertvillanova', 'followers_url': 'https://api.github.com/users/albertvillanova/followers', 'following_url': 'https://api.github.com/users/albertvillanova/following{/other_user}', 'gists_url': 'https://api.github.com/users/albertvillanova/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/albertvillanova/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/albertvillanova/subscriptions', 'organizations_url': 'https://api.github.com/users/albertvillanova/orgs', 'repos_url': 'https://api.github.com/users/albertvillanova/repos', 'events_url': 'https://api.github.com/users/albertvillanova/events{/privacy}', 'received_events_url': 'https://api.github.com/users/albertvillanova/received_events', 'type': 'User', 'site_admin': False}
[{'login': 'albertvillanova', 'id': 8515462, 'node_id': 'MDQ6VXNlcjg1MTU0NjI=', 'avatar_url': 'https://avatars.githubusercontent.com/u/8515462?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/albertvillanova', 'html_url': 'https://github.com/albertvillanova', 'followers_url': 'https://api.github.com/users/albertvillanova/followers', 'following_url': 'https://api.github.com/users/albertvillanova/following{/other_user}', 'gists_url': 'https://api.github.com/users/albertvillanova/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/albertvillanova/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/albertvillanova/subscriptions', 'organizations_url': 'https://api.github.com/users/albertvillanova/orgs', 'repos_url': 'https://api.github.com/users/albertvillanova/repos', 'events_url': 'https://api.github.com/users/albertvillanova/events{/privacy}', 'received_events_url': 'https://api.github.com/users/albertvillanova/received_events', 'type': 'User', 'site_admin': False}]
['Hi @JTWang2000, thanks for reporting.\r\n\r\nHowever, I cannot reproduce your reported bug:\r\n```python\r\n>>> from datasets import load_dataset\r\n\r\n>>> dataset = load_dataset("sst", "default")\r\n>>> dataset\r\nDatasetDict({\r\n    train: Dataset({\r\n        features: [\'sentence\', \'label\', \'tokens\', \'tree\'],\r\n        num_rows: 8544\r\n    })\r\n    validation: Dataset({\r\n        features: [\'sentence\', \'label\', \'tokens\', \'tree\'],\r\n        num_rows: 1101\r\n    })\r\n    test: Dataset({\r\n        features: [\'sentence\', \'label\', \'tokens\', \'tree\'],\r\n        num_rows: 2210\r\n    })\r\n})\r\n```\r\n\r\nMaybe, the cause is that you have a quite old version of `huggingface_hub`. Could you please try to update it and confirm if the problem persists?\r\n```\r\npip install -U huggingface_hub\r\n```'
 'Im facing the same issue. I did run the upgrade command but that doesnt seem to resolve the issue'
 'Hi @aneeshjain, could you please specify which `huggingface_hub` version you are using?\r\n\r\nBesides that, please run `datasets-cli env` and copy-and-paste its output below.'
 'The problem seems to be with the latest version of `datasets`. After running `pip install -U datasets huggingface_hub`, I get the following: \r\n\r\n```bash\r\npython -c "import huggingface_hub; print(f\'hbvers={huggingface_hub.__version__}\'); import datasets; print(f\'dvers={datasets.__version__}\')"\r\nhbvers=0.0.8\r\nTraceback (most recent call last):\r\n  File "<string>", line 1, in <module>\r\n  File "/opt/conda/lib/python3.6/site-packages/datasets/__init__.py", line 37, in <module>\r\n    from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder\r\n  File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 44, in <module>\r\n    from .data_files import DataFilesDict, _sanitize_patterns\r\n  File "/opt/conda/lib/python3.6/site-packages/datasets/data_files.py", line 122, in <module>\r\n    allowed_extensions: Optional[list] = None,\r\nAttributeError: module \'huggingface_hub.hf_api\' has no attribute \'DatasetInfo\'\r\n````\r\nNote that pip reports the latest `datasets` version as \r\n```bash\r\n pip show datasets\r\nName: datasets\r\nVersion: 1.14.0\r\n```\r\nHowever, if I downgrade datasets with `pip install datasets==1.11.0`, things now work\r\n```bash\r\npython -c "import huggingface_hub; print(f\'hbvers={huggingface_hub.__version__}\'); import datasets; print(f\'dvers={datasets.__version__}\')"\r\nhbvers=0.0.8\r\ndvers=1.11.0\r\n````'
 '> Hi @JTWang2000, thanks for reporting.\r\n> \r\n> However, I cannot reproduce your reported bug:\r\n> \r\n> ```python\r\n> >>> from datasets import load_dataset\r\n> \r\n> >>> dataset = load_dataset("sst", "default")\r\n> >>> dataset\r\n> DatasetDict({\r\n>     train: Dataset({\r\n>         features: [\'sentence\', \'label\', \'tokens\', \'tree\'],\r\n>         num_rows: 8544\r\n>     })\r\n>     validation: Dataset({\r\n>         features: [\'sentence\', \'label\', \'tokens\', \'tree\'],\r\n>         num_rows: 1101\r\n>     })\r\n>     test: Dataset({\r\n>         features: [\'sentence\', \'label\', \'tokens\', \'tree\'],\r\n>         num_rows: 2210\r\n>     })\r\n> })\r\n> ```\r\n> \r\n> Maybe, the cause is that you have a quite old version of `huggingface_hub`. Could you please try to update it and confirm if the problem persists?\r\n> \r\n> ```\r\n> pip install -U huggingface_hub\r\n> ```\r\n\r\nMy problem solved after updating huggingface hub command. Thanks a lot and sorry for the late reply. '
 '@tjruwase, please note that versions of `datsets` and `huggingface_hub` must be compatible one with each other:\r\n- In `datasets` version `1.11.0`, the requirement on `huggingface_hub` was: `huggingface_hub<0.1.0`\r\n  https://github.com/huggingface/datasets/blob/2cc00f372a96133e701275eec4d6b26d15257289/setup.py#L90\r\n  - Therefore, your installed `huggingface_hub` version `0.0.8` was compatible\r\n- In `datasets` version `1.12.0`, the requirement on `huggingface_hub` was: `huggingface_hub>=0.0.14,<0.1.0`\r\n  https://github.com/huggingface/datasets/blob/6c766f9115d686182d76b1b937cb27e099c45d68/setup.py#L104\r\n  - Therefore, your installed `huggingface_hub` version `0.0.8` was no longer compatible \r\n- Currently, in `datasets` version `1.15.1`, the requirement on `huggingface_hub` is: `huggingface_hub>=0.1.0,<1.0.0`\r\n  https://github.com/huggingface/datasets/blob/018100679d21cf27136f0eccb1c50e3a9c968ce2/setup.py#L102\r\n\r\n@JTWang2000, thanks for your answer. I close this issue then.']
## Describe the bug
When using `pip install datasets`
or use `conda install -c huggingface -c conda-forge datasets`
cannot install datasets

## Steps to reproduce the bug
```python
from datasets import load_dataset

dataset = load_dataset("sst", "default")
```

## Actual results
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-5-fbe7981e6e21> in <module>
      1 import torch
      2 import transformers
----> 3 from datasets import load_dataset
      4 
      5 dataset = load_dataset("sst", "default")

~/miniforge3/envs/actor/lib/python3.8/site-packages/datasets/__init__.py in <module>
     35 from .arrow_reader import ArrowReader, ReadInstruction
     36 from .arrow_writer import ArrowWriter
---> 37 from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder
     38 from .combine import interleave_datasets
     39 from .dataset_dict import DatasetDict, IterableDatasetDict

~/miniforge3/envs/actor/lib/python3.8/site-packages/datasets/builder.py in <module>
     42 )
     43 from .arrow_writer import ArrowWriter, BeamWriter
---> 44 from .data_files import DataFilesDict, _sanitize_patterns
     45 from .dataset_dict import DatasetDict, IterableDatasetDict
     46 from .fingerprint import Hasher

~/miniforge3/envs/actor/lib/python3.8/site-packages/datasets/data_files.py in <module>
    118 
    119 def _exec_patterns_in_dataset_repository(
--> 120     dataset_info: huggingface_hub.hf_api.DatasetInfo,
    121     patterns: List[str],
    122     allowed_extensions: Optional[list] = None,

AttributeError: module 'huggingface_hub.hf_api' has no attribute 'DatasetInfo'



## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.13.3
- Platform: macOS-11.3.1-arm64-arm-64bit
- Python version: 3.8.10
- PyArrow version: 5.0.0

{'url': 'https://api.github.com/repos/huggingface/datasets/issues/3099/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}