Loading a dataset from Google Colab hangs at "Resolving data files".
MEMBER
This bug comes from the `huggingface_hub` library, see: https://github.com/huggingface/huggingface_hub/issues/1952

A fix is provided at https://github.com/huggingface/huggingface_hub/pull/1953. Feel free to install `huggingface_hub` from this PR, or wait for it to be merged and the new version of `huggingface_hub` to be released
2024-01-05T10:31:36Z
https://github.com/huggingface/datasets/issues/6552#issuecomment-1878453143
https://api.github.com/repos/huggingface/datasets/issues/6552
IC_kwDODunzps5v9uuX
https://api.github.com/repos/huggingface/datasets/issues/comments/1878453143/reactions
2024-01-05T10:33:42Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1878453143
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
Thanks!
2024-01-06T05:04:36Z
https://github.com/huggingface/datasets/issues/6552#issuecomment-1879552428
https://api.github.com/repos/huggingface/datasets/issues/6552
IC_kwDODunzps5wB7Gs
https://api.github.com/repos/huggingface/datasets/issues/comments/1879552428/reactions
2024-01-06T05:04:36Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1879552428
https://avatars.githubusercontent.com/u/99779?v=4
https://api.github.com/users/KelSolaar/events{/privacy}
https://api.github.com/users/KelSolaar/followers
https://api.github.com/users/KelSolaar/following{/other_user}
https://api.github.com/users/KelSolaar/gists{/gist_id}
https://github.com/KelSolaar
KelSolaar
MDQ6VXNlcjk5Nzc5
https://api.github.com/users/KelSolaar/orgs
https://api.github.com/users/KelSolaar/received_events
https://api.github.com/users/KelSolaar/repos
https://api.github.com/users/KelSolaar/starred{/owner}{/repo}
https://api.github.com/users/KelSolaar/subscriptions
User
https://api.github.com/users/KelSolaar
public
### Describe the bug

Hello,

I'm trying to load a dataset from Google Colab but the process hangs at `Resolving data files`:

![image](https://github.com/huggingface/datasets/assets/99779/7175ad85-e571-46ed-9f87-92653985777d)

It is happening when the `_get_origin_metadata` definition is invoked:

```python
def _get_origin_metadata(
    data_files: List[str],
    max_workers=64,
    download_config: Optional[DownloadConfig] = None,
) -> Tuple[str]:
    return thread_map(
        partial(_get_single_origin_metadata, download_config=download_config),
        data_files,
        max_workers=max_workers,
        tqdm_class=hf_tqdm,
        desc="Resolving data files",
        disable=len(data_files) <= 16,
```

The thread is then stuck at `waiter.acquire()` in the builtin `threading.py` file.

I can load the dataset just fine on my machine.

Cheers,

Thomas


### Steps to reproduce the bug

In Google Colab:

```python
!pip install datasets
from datasets import load_dataset

dataset = load_dataset("colour-science/color-checker-detection-dataset")
```

### Expected behavior

The dataset should be loaded.

### Environment info

- `datasets` version: 2.16.1
- Platform: Linux-6.1.58+-x86_64-with-glibc2.35
- Python version: 3.10.12
- `huggingface_hub` version: 0.20.1
- PyArrow version: 10.0.1
- Pandas version: 1.5.3
- `fsspec` version: 2023.6.0