Missing or faulty files?
Hi there, I've been working with several past versions of the dataset (13, 14, and 15, mainly), but this error seems new.
As per the title, when loading some specific <language,splits>, some files seem to be missing/faulty/get partially downloaded -- this is happening both in single process or multiprocessing download.
I've already tried to force redownload it or clean the cache completely and download it again.
This is happening when calling load_dataset("mozilla-foundation/common_voice_16_0", "de", split="train")
:
Traceback (most recent call last):
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/shutil.py", line 805, in move
os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: '/data/milanlp/huggingface/datasets/downloads/26fc15630ea70d41da488911341cff4ef02f3fc12ae1116dc5119047593745e3.incomplete' -> '/data/milanlp/huggingface/datasets/downloads/26fc15630ea70d41da488911341cff4ef02f3fc12ae1116dc5119047593745e3'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 387, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True, None)) for v in pbar]
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 387, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True, None)) for v in pbar]
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 387, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True, None)) for v in pbar]
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 387, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True, None)) for v in pbar]
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 370, in _single_map_nested
return function(data_struct)
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/datasets/download/download_manager.py", line 451, in _download
out = cached_path(url_or_filename, download_config=download_config)
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 188, in cached_path
output_path = get_from_cache(
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 630, in get_from_cache
shutil.move(temp_file.name, cache_path)
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/shutil.py", line 825, in move
copy_function(src, real_dst)
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/shutil.py", line 434, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/shutil.py", line 254, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/data/milanlp/huggingface/datasets/downloads/26fc15630ea70d41da488911341cff4ef02f3fc12ae1116dc5119047593745e3.incomplete'
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/AttanasioG/interim-asr-performance-gap/src/transcribe_dataset.py", line 227, in <module>
fire.Fire(main)
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/fire/core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/fire/core.py", line 475, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "/home/AttanasioG/interim-asr-performance-gap/src/transcribe_dataset.py", line 156, in main
data = load_dataset(
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/datasets/load.py", line 2545, in load_dataset
builder_instance.download_and_prepare(
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/datasets/builder.py", line 1003, in download_and_prepare
self._download_and_prepare(
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/datasets/builder.py", line 1765, in _download_and_prepare
super()._download_and_prepare(
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/datasets/builder.py", line 1076, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/AttanasioG/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_16_0/3076bf9caad479bbd4fa71669eac459841567c9efac7e647db5ae1ef78abe82a/common_voice_16_0.py", line 145, in _split_generators
archive_paths = dl_manager.download(audio_urls)
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/datasets/download/download_manager.py", line 426, in download
downloaded_path_or_paths = map_nested(
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 477, in map_nested
mapped = parallel_map(function, iterable, num_proc, types, disable_tqdm, desc, _single_map_nested)
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/datasets/utils/experimental.py", line 40, in _inner_fn
return fn(*args, **kwargs)
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/datasets/parallel/parallel.py", line 34, in parallel_map
return _map_with_multiprocessing_pool(
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/site-packages/datasets/parallel/parallel.py", line 65, in _map_with_multiprocessing_pool
mapped = pool.map(single_map_nested_func, split_kwds)
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/multiprocessing/pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/home/AttanasioG/.conda/envs/py310/lib/python3.10/multiprocessing/pool.py", line 771, in get
raise self._value
FileNotFoundError: [Errno 2] No such file or directory: '/data/milanlp/huggingface/datasets/downloads/26fc15630ea70d41da488911341cff4ef02f3fc12ae1116dc5119047593745e3.incomplete'
Do you know what could be the issue?
If it can help, I've tried to download the dataset from the official Mozilla CV website and I still fail to load some of the mp3 files, e.g.,
soundfile.LibsndfileError: Error opening <_io.BufferedReader name='/data/milanlp/attanasiog/fair_asr/cv-corpus-16.0-2023-12-06/de/clips/common_voice_de_26314714.mp3
The Common Voice team has solved this issue and re-exported the data as version 16.1. Maybe the hugging face team can start importing the 16.1 here?
Anyone knows if this is only happening with the "de"language?
Or it can potentially be happening to more languages?
Anyone knows if this is only happening with the "de"language?
Or it can potentially be happening to more languages?
I find same error in 'zh-CN' language