Cannot download or stream the pile.

#7
by mattf1n - opened

python -c "import datasets; datasets.load_dataset('the_pile')"
results in error:

WARNING:datasets.builder:No config specified, defaulting to: the_pile/all
Downloading and preparing dataset the_pile/all to /Users/matthewf/.config/cache/huggingface/datasets/the_pile/all/0.0.0/e066dbce695322b6137c8af4107c3a92e089b94777f79a02568ff68b940d4699...
Downloading data files:   0%|                                                                 | 0/3 [00:00<?, ?it/s]Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/matthewf/.pyenv/versions/3.9.11/lib/python3.9/site-packages/datasets/load.py", line 1731, in load_dataset
    builder_instance.download_and_prepare(
  File "/Users/matthewf/.pyenv/versions/3.9.11/lib/python3.9/site-packages/datasets/builder.py", line 613, in download_and_prepare
    self._download_and_prepare(
  File "/Users/matthewf/.pyenv/versions/3.9.11/lib/python3.9/site-packages/datasets/builder.py", line 1117, in _download_and_prepare
    super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
  File "/Users/matthewf/.pyenv/versions/3.9.11/lib/python3.9/site-packages/datasets/builder.py", line 680, in _download_and_prepare
    split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
  File "/Users/matthewf/.config/cache/huggingface/modules/datasets_modules/datasets/the_pile/e066dbce695322b6137c8af4107c3a92e089b94777f79a02568ff68b940d4699/the_pile.py", line 184, in _split_generators
    data_dir = dl_manager.download(_DATA_URLS[self.config.name])
  File "/Users/matthewf/.pyenv/versions/3.9.11/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 282, in download
    downloaded_path_or_paths = map_nested(
  File "/Users/matthewf/.pyenv/versions/3.9.11/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 351, in map_nested
    mapped = [
  File "/Users/matthewf/.pyenv/versions/3.9.11/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 352, in <listcomp>
    _single_map_nested((function, obj, types, None, True, None))
  File "/Users/matthewf/.pyenv/versions/3.9.11/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 306, in _single_map_nested
    mapped = [_single_map_nested((function, v, types, None, True, None)) for v in pbar]
  File "/Users/matthewf/.pyenv/versions/3.9.11/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 306, in <listcomp>
    mapped = [_single_map_nested((function, v, types, None, True, None)) for v in pbar]
  File "/Users/matthewf/.pyenv/versions/3.9.11/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 288, in _single_map_nested
    return function(data_struct)
  File "/Users/matthewf/.pyenv/versions/3.9.11/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 308, in _download
    return cached_path(url_or_filename, download_config=download_config)
  File "/Users/matthewf/.pyenv/versions/3.9.11/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 234, in cached_path
    output_path = get_from_cache(
  File "/Users/matthewf/.pyenv/versions/3.9.11/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 582, in get_from_cache
    raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})")
ConnectionError: Couldn't reach https://mystic.the-eye.eu/public/AI/pile/train/00.jsonl.zst (ConnectionError(MaxRetryError("HTTPSConnectionPool(host='mystic.the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile/train/00.jsonl.zst (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x15ce91d00>: Failed to establish a new connection: [Errno 60] Operation timed out'))")))
Downloading data files:   0%|                                                                 | 0/3 [02:30<?, ?it/s]

pip install --upgrade datasets solves the issue.

mattf1n changed discussion status to closed

Yes @mattf1n . We fixed this issue, but you need to update the datasets library to get the fix.

Sign up or log in to comment