Dataset Viewer issue

#1
by paniniDot - opened

The dataset viewer is not working.

Error details:

Error code:   StreamingRowsError
Exception:    FileNotFoundError
Message:      zip://train/A::https://huggingface.co/datasets/paniniDot/sci_lay/resolve/main/data/1.0.0/train.zip
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 263, in get_rows_or_raise
                  return get_rows(
                File "/src/services/worker/src/worker/utils.py", line 204, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 241, 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 1353, in __iter__
                  for key, example in ex_iterable:
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 207, in __iter__
                  yield from self.generate_examples_fn(**self.kwargs)
                File "/tmp/modules-cache/datasets_modules/datasets/paniniDot--sci_lay/c7a4867f51f27cc8a66dec3760cf5f52fffd105cec20737228370c36cedd8bb4/sci_lay.py", line 144, in _generate_examples
                  for path in paths_per_journal:
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 840, in __iter__
                  yield from self.generator(*self.args, **self.kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 936, in _iter_from_urlpaths
                  raise FileNotFoundError(urlpath)
              FileNotFoundError: zip://train/A::https://huggingface.co/datasets/paniniDot/sci_lay/resolve/main/data/1.0.0/train.zip

cc @albertvillanova @lhoestq @severo .

It looks like your data are ZIP archives containing Arrow files.

I think you can simply remove sci_lay.py and it should work

I tried but this didn't work

What was the error ?

The viewer is working now:

Screenshot from 2023-08-29 16-38-03.png

albertvillanova changed discussion status to closed

Sign up or log in to comment