Dataset Viewer issue: ValueError: Cannot seek streaming HTTP file
#1
by
albertvillanova
HF staff
- opened
The dataset viewer is not working.
Error details:
Error code: StreamingRowsError
Exception: ValueError
Message: Cannot seek streaming HTTP file
Traceback: Traceback (most recent call last):
File "/src/workers/datasets_based/src/datasets_based/workers/first_rows.py", line 484, in compute_first_rows_response
rows = get_rows(
File "/src/workers/datasets_based/src/datasets_based/workers/first_rows.py", line 119, in decorator
return func(*args, **kwargs)
File "/src/workers/datasets_based/src/datasets_based/workers/first_rows.py", line 175, in get_rows
rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 747, in __iter__
for key, example in self._iter():
File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 737, in _iter
yield from ex_iterable
File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 106, in __iter__
yield from self.generate_examples_fn(**self.kwargs)
File "/tmp/modules-cache/datasets_modules/datasets/bigbio--bionlp_st_2013_gro/06e78d41c79ec2416c891ab59c200c321a56bc7f03309849e6e945dbbf2f6b4c/bionlp_st_2013_gro.py", line 235, in _generate_examples
txt_files = list(data_files.glob("*txt"))
File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 612, in glob
fs, *_ = fsspec.get_fs_token_paths(xjoin(posix_path, pattern), storage_options=storage_options)
File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/fsspec/core.py", line 606, in get_fs_token_paths
fs = filesystem(protocol, **inkwargs)
File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/fsspec/registry.py", line 284, in filesystem
return cls(**storage_options)
File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 76, in __call__
obj = super().__call__(*args, **kwargs)
File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/fsspec/implementations/zip.py", line 54, in __init__
self.zip = zipfile.ZipFile(self.fo, mode=mode)
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 263, in _EndRecData
fpin.seek(0, 2)
File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 702, in seek
raise ValueError("Cannot seek streaming HTTP file")
ValueError: Cannot seek streaming HTTP file
Fixed by #2.
albertvillanova
changed discussion status to
closed