Dataset Viewer issue

#1
by nyuuzyou - opened

The dataset viewer is not working.

Error details:

Error code:   StreamingRowsError
Exception:    ValueError
Message:      The HTTP server doesn't appear to support range requests. Only reading this file from the beginning is supported. Open with block_size=0 for a streaming file interface.
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 286, in get_rows_or_raise
                  return get_rows(
                File "/src/services/worker/src/worker/utils.py", line 227, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 264, 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/nyuuzyou--stickers/e6851416a965fc392fc97d0b70d560e53e535ccb551bbda63e677fbdbfac735d/stickers.py", line 53, in _generate_examples
                  for i, path in enumerate(files):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 881, 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 957, in _iter_from_urlpaths
                  if xisfile(urlpath, use_auth_token=use_auth_token):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 278, in xisfile
                  fs, *_ = fsspec.get_fs_token_paths(path, storage_options=storage_options)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/core.py", line 606, in get_fs_token_paths
                  fs = filesystem(protocol, **inkwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/registry.py", line 261, 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 59, in __init__
                  self.zip = zipfile.ZipFile(
                File "/usr/local/lib/python3.9/zipfile.py", line 1266, in __init__
                  self._RealGetContents()
                File "/usr/local/lib/python3.9/zipfile.py", line 1329, in _RealGetContents
                  endrec = _EndRecData(fp)
                File "/usr/local/lib/python3.9/zipfile.py", line 273, in _EndRecData
                  data = fpin.read()
                File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 600, in read
                  return super().read(length)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 1748, in read
                  out = self.cache._fetch(self.loc, self.loc + length)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/caching.py", line 380, in _fetch
                  self.cache = self.fetcher(start, bend)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/asyn.py", line 115, in wrapper
                  return sync(self.loop, func, *args, **kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/asyn.py", line 100, in sync
                  raise return_result
                File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/asyn.py", line 55, in _runner
                  result[0] = await coro
                File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 671, in async_fetch_range
                  raise ValueError(
              ValueError: The HTTP server doesn't appear to support range requests. Only reading this file from the beginning is supported. Open with block_size=0 for a streaming file interface.

Hello. How can I utilize the dataset viewer if the script, specifically the download_and_extract function, is unable to download a large archive?

cc @albertvillanova @lhoestq @severo .

You defined URLs to the files preview on HF instead of URLs or paths to the files themselves.

To fix this, you can replace the URLs by the paths to the files, e.g. "dataset_resized/train.zip"

Hello,

This helped solve a past error, for which I am grateful. I have a question regarding an error I am encountering when dealing with class names. The error message I received is as follows:

Error: StreamingRowsError
Exception: ValueError
Message: Invalid string class label u+1f004

I would like to clarify what rules and restrictions apply to class names in this context. What characters and formats are allowed for class names? Perhaps there are certain rules that I am not aware of or accidentally violate.

Please clarify what class names are considered acceptable in this situation and what restrictions should be considered when choosing them.

Thank you for your help. I will be grateful for any information and recommendations you can give on this issue.

nyuuzyou changed discussion status to closed

Sign up or log in to comment