Datasets:
Issue loading the dataset
#4
by
skaulintel
- opened
Code to replicate
from datasets import DatasetDict, load_dataset
raw_datasets = DatasetDict()
raw_datasets["train"] =load_dataset("librispeech_asr","clean","train.100")
datasets version: 2.14.6
Traceback (most recent call last):
File "/usr/lib/python3.8/tarfile.py", line 187, in nti
n = int(s.strip() or "0", 8)
ValueError: invalid literal for int() with base 8: 'itle>Pag'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.8/tarfile.py", line 2318, in next
tarinfo = self.tarinfo.fromtarfile(self)
File "/usr/lib/python3.8/tarfile.py", line 1105, in fromtarfile
obj = cls.frombuf(buf, tarfile.encoding, tarfile.errors)
File "/usr/lib/python3.8/tarfile.py", line 1047, in frombuf
chksum = nti(buf[148:156])
File "/usr/lib/python3.8/tarfile.py", line 189, in nti
raise InvalidHeaderError("invalid header")
tarfile.InvalidHeaderError: invalid header
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/datasets/builder.py", line 1676, in _prepare_split_single
for key, record in generator:
File "/root/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/cff5df6e7955c80a67f80e27e7e655de71c689e2d2364bece785b972acb37fe7/librispeech_asr.py", line 248, in _generate_examples
for path, f in files:
File "/usr/local/lib/python3.8/dist-packages/datasets/download/download_manager.py", line 158, in __iter__
yield from self.generator(*self.args, **self.kwargs)
File "/usr/local/lib/python3.8/dist-packages/datasets/download/download_manager.py", line 211, in _iter_from_path
yield from cls._iter_tar(f)
File "/usr/local/lib/python3.8/dist-packages/datasets/download/download_manager.py", line 166, in _iter_tar
stream = tarfile.open(fileobj=f, mode="r|*")
File "/usr/lib/python3.8/tarfile.py", line 1633, in open
t = cls(name, filemode, stream, **kwargs)
File "/usr/lib/python3.8/tarfile.py", line 1514, in __init__
self.firstmember = self.next()
File "/usr/lib/python3.8/tarfile.py", line 2330, in next
raise ReadError(str(e))
tarfile.ReadError: invalid header
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.8/dist-packages/datasets/load.py", line 2153, in load_dataset
builder_instance.download_and_prepare(
File "/usr/local/lib/python3.8/dist-packages/datasets/builder.py", line 954, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.8/dist-packages/datasets/builder.py", line 1717, in _download_and_prepare
super()._download_and_prepare(
File "/usr/local/lib/python3.8/dist-packages/datasets/builder.py", line 1049, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.8/dist-packages/datasets/builder.py", line 1555, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/usr/local/lib/python3.8/dist-packages/datasets/builder.py", line 1712, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.builder.DatasetGenerationError: An error occurred while generating the dataset
No longer experiencing issue. Was due to environment.
skaulintel
changed discussion status to
closed