Dataset Viewer issue

#1
by zeusfsx - opened

The dataset viewer is not working. But files exist in the repo. I can download them by URL.

Error details:

Error code:   StreamingRowsError
Exception:    FileNotFoundError
Message:      [Errno 2] No such file or directory: "['https:/huggingface.co/datasets/zeusfsx/ukrainian-news/resolve/main/ukrainian-news-1.json', 'https:/huggingface.co/datasets/zeusfsx/ukrainian-news/resolve/main/ukrainian-news-2.json', 'https:/huggingface.co/datasets/zeusfsx/ukrainian-news/resolve/main/ukrainian-news-3.json', 'https:/huggingface.co/datasets/zeusfsx/ukrainian-news/resolve/main/ukrainian-news-4.json', 'https:/huggingface.co/datasets/zeusfsx/ukrainian-news/resolve/main/ukrainian-news-5.json']"
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/first_rows.py", line 571, in compute_first_rows_response
                  rows = get_rows(
                File "/src/services/worker/src/worker/job_runners/first_rows.py", line 162, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/job_runners/first_rows.py", line 218, 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/zeusfsx--ukrainian-news/08e7adf50db8b28133bb6e7bb0ad1f48939e56ecf1efdb3dc9b8976d5f3bb93a/ukrainian-news.py", line 57, 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 70, 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 482, in xopen
                  return open(main_hop, mode, *args, **kwargs)
              FileNotFoundError: [Errno 2] No such file or directory: "['https:/huggingface.co/datasets/zeusfsx/ukrainian-news/resolve/main/ukrainian-news-1.json', 'https:/huggingface.co/datasets/zeusfsx/ukrainian-news/resolve/main/ukrainian-news-2.json', 'https:/huggingface.co/datasets/zeusfsx/ukrainian-news/resolve/main/ukrainian-news-3.json', 'https:/huggingface.co/datasets/zeusfsx/ukrainian-news/resolve/main/ukrainian-news-4.json', 'https:/huggingface.co/datasets/zeusfsx/ukrainian-news/resolve/main/ukrainian-news-5.json']"

cc @albertvillanova @lhoestq @severo .

Thanks for reporting, @zeusfsx .

Please note that the issue is not with the dataset viewer itself: your loading script does not work:

  • You are passing a list to open

Also, please, do not forget to delete the unused data files ukranian-*: they take more than 90 GB

Thanks, for that you point me.

Sign up or log in to comment