push to hub fails with huggingface-hub 0.5.0
{'login': 'frascuchon', 'id': 2518789, 'node_id': 'MDQ6VXNlcjI1MTg3ODk=', 'avatar_url': 'https://avatars.githubusercontent.com/u/2518789?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/frascuchon', 'html_url': 'https://github.com/frascuchon', 'followers_url': 'https://api.github.com/users/frascuchon/followers', 'following_url': 'https://api.github.com/users/frascuchon/following{/other_user}', 'gists_url': 'https://api.github.com/users/frascuchon/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/frascuchon/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/frascuchon/subscriptions', 'organizations_url': 'https://api.github.com/users/frascuchon/orgs', 'repos_url': 'https://api.github.com/users/frascuchon/repos', 'events_url': 'https://api.github.com/users/frascuchon/events{/privacy}', 'received_events_url': 'https://api.github.com/users/frascuchon/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"}]
[]
['Hi ! Indeed there was a breaking change in `huggingface_hub` 0.5.0 in `HfApi.create_repo`, which is called here in `datasets` by passing the org name in both the `repo_id` and the `organization` arguments:\r\n\r\nhttps://github.com/huggingface/datasets/blob/2230f7f7d7fbaf102cff356f5a8f3bd1561bea43/src/datasets/arrow_dataset.py#L3363-L3369\r\n\r\nI think we should fix that in `huggingface_hub`, will keep you posted. In the meantime please use `huggingface_hub` 0.4.0'
 'I\'ll be sending a fix for this later today on the `huggingface_hub` side.\r\n\r\nThe error would be converted to a `FutureWarning` if `datasets` uses kwargs instead of positional, for example here: \r\n\r\nhttps://github.com/huggingface/datasets/blob/2230f7f7d7fbaf102cff356f5a8f3bd1561bea43/src/datasets/arrow_dataset.py#L3363-L3369\r\n\r\nto be:\r\n\r\n``` python\r\n            api.create_repo(\r\n                name=dataset_name,\r\n                token=token,\r\n                repo_type="dataset",\r\n                organization=organization,\r\n                private=private,\r\n            )\r\n```\r\n\r\nBut `name` and `organization` are deprecated in `huggingface_hub=0.5`, and people should pass `repo_id=\'org/name` instead. Note that `repo_id` was introduced in 0.5 and if `datasets` wants to support older `huggingface_hub` versions (which I encourage it to do), there needs to be a helper function to do that. It can be something like:\r\n\r\n\r\n```python\r\ndef create_repo(\r\n    client,\r\n    name: str,\r\n    token: Optional[str] = None,\r\n    organization: Optional[str] = None,\r\n    private: Optional[bool] = None,\r\n    repo_type: Optional[str] = None,\r\n    exist_ok: Optional[bool] = False,\r\n    space_sdk: Optional[str] = None,\r\n) -> str:\r\n    try:\r\n        return client.create_repo(\r\n            repo_id=f"{organization}/{name}",\r\n            token=token,\r\n            private=private,\r\n            repo_type=repo_type,\r\n            exist_ok=exist_ok,\r\n            space_sdk=space_sdk,\r\n        )\r\n    except TypeError:\r\n        return client.create_repo(\r\n            name=name,\r\n            organization=organization,\r\n            token=token,\r\n            private=private,\r\n            repo_type=repo_type,\r\n            exist_ok=exist_ok,\r\n            space_sdk=space_sdk,\r\n        )\r\n```\r\n\r\nin a `utils/_fixes.py` kinda file and and be used internally.\r\n\r\nI\'ll be sending a patch to `huggingface_hub` to convert the error reported in this issue to a `FutureWarning`.'
 'PR with the hotfix on the `huggingface_hub` side: https://github.com/huggingface/huggingface_hub/pull/822'
 'We can definitely change `push_to_hub` to use `repo_id` in `datasets` and require `huggingface_hub>=0.5.0`.\r\n\r\nLet me open a PR :)'
 '`huggingface_hub` 0.5.1 just got released with a fix, feel free to update `huggingface_hub` ;)']
## Describe the bug
`ds.push_to_hub` is failing when updating a dataset in the form "org_id/repo_id"

## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset("rubrix/news_test")
ds.push_to_hub("<your-user>/news_test", token="<your-token>")
```

## Expected results
The dataset is successfully uploaded

## Actual results
An error validation is raised:

```bash
if repo_id and (name or organization):
>           raise ValueError(
                "Only pass `repo_id` and leave deprecated `name` and "
                "`organization` to be None."
E               ValueError: Only pass `repo_id` and leave deprecated `name` and `organization` to be None.
```

## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.1
- `huggingface-hub`: 0.5
- Platform: macOS
- Python version: 3.8.12
- PyArrow version: 6.0.0

cc @adrinjalali 

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