Dataset Viewer issue: NotImplementedError: TAR archive
#1
by
albertvillanova
HF staff
- opened
The dataset viewer is not working.
Error details:
Error code: StreamingRowsError
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://zenodo.org/record/3247731/files/raw.tar.bz2' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
Example usage:
url = dl_manager.download(url)
tar_archive_iterator = dl_manager.iter_archive(url)
for filename, file in tar_archive_iterator:
...
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 365, in get_rows_or_raise
return get_rows(
File "/src/services/worker/src/worker/utils.py", line 307, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 328, in get_rows
ds = load_dataset(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1790, in load_dataset
return builder_instance.as_streaming_dataset(split=split)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1260, in as_streaming_dataset
splits_generators = {sg.name: sg for sg in self._split_generators(dl_manager)}
File "/tmp/modules-cache/datasets_modules/datasets/large_spanish_corpus/866aa19decb2ee81eed3e918e7150937330cc993815e36beda5f40a992058639/large_spanish_corpus.py", line 112, in _split_generators
data_dir = dl_manager.download_and_extract(_URL)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 1087, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 1039, in extract
urlpaths = map_nested(self._extract, url_or_urls, map_tuple=True)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 435, in map_nested
return function(data_struct)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 1049, in _extract
raise NotImplementedError(
NotImplementedError: Extraction protocol for TAR archives like 'https://zenodo.org/record/3247731/files/raw.tar.bz2' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
Example usage:
url = dl_manager.download(url)
tar_archive_iterator = dl_manager.iter_archive(url)
for filename, file in tar_archive_iterator:
...
Fixed by #3.
albertvillanova
changed discussion status to
closed