Dataset Viewer issue: IndexError: list index out of range

#2
by albertvillanova HF staff - opened
Community Datasets org

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/tapaco/71d200534b520a174927a8f0479c06220a0a6fb5201a84ebfce19006c6354698/tapaco.py", line 207, in _generate_examples
                  with open(filepath, encoding="utf-8") as csv_file:
                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

cc @albertvillanova

Community Datasets org

Note we get this error for source data files hosted on Zenodo.

See: https://github.com/huggingface/datasets/issues/5862

Community Datasets org

Fixed by #3:

Screenshot from 2023-06-14 09-37-19.png

albertvillanova changed discussion status to closed

Sign up or log in to comment