Dataset Viewer issue: IndexError: list index out of range
#1
by
albertvillanova
HF staff
- opened
The dataset viewer is not working.
Error details:
Error code: StreamingRowsError
Exception: IndexError
Message: list index out of range
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 327, in get_rows_or_raise
return get_rows(
File "/src/services/worker/src/worker/utils.py", line 271, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 307, in get_rows
rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 937, in __iter__
for key, example in ex_iterable:
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 113, in __iter__
yield from self.generate_examples_fn(**self.kwargs)
File "/tmp/modules-cache/datasets_modules/datasets/krr-oxford--OntoLAMA/efb5cb066b4abc4e99e58f9cfce231e1a62c8c267298b50fd1394805c2400d00/OntoLAMA.py", line 187, in _generate_examples
with open(filepath, encoding="utf-8") as f:
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/streaming.py", line 71, in wrapper
return function(*args, use_auth_token=use_auth_token, **kwargs)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 498, in xopen
file_obj = fsspec.open(file, mode=mode, *args, **kwargs).open()
File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/core.py", line 419, in open
return open_files(
File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/core.py", line 272, in open_files
fs, fs_token, paths = get_fs_token_paths(
File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/core.py", line 586, in get_fs_token_paths
fs = filesystem(protocol, **inkwargs)
File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/registry.py", line 253, in filesystem
return cls(**storage_options)
File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 76, in __call__
obj = super().__call__(*args, **kwargs)
File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/implementations/zip.py", line 54, in __init__
fo = fsspec.open(
File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/core.py", line 419, in open
return open_files(
File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/core.py", line 194, in __getitem__
out = super().__getitem__(item)
IndexError: list index out of range
Note we get this error for source data files hosted on Zenodo.
The issue could be fixed by hosting the data files on the Hugging Face Hub instead, thus avoiding the error raised by Zenodo: 429 HTTP error: Too Many Requests