Dataset Viewer issue: UnexpectedError

#9
by abhi1505 - opened

The dataset viewer is not working.

Error details:

Error code:   UnexpectedError

cc @albertvillanova @lhoestq @severo .

The error message:

[Errno 13] Permission denied: '/tmp/hf-datasets-cache/medium/datasets/59146511988270-config-parquet-and-info-abhi1505-Drone_Data-6928f977/downloads/a3d6d38d9159fb9d6429f28224c80ecc7a281b095c77183e4381751ea5f3ae72.incomplete'

Can you elaborate it, I can’t quite understand from that.

Thank You
Abhiram

Sure, I was just pasting the content for further debugging.

And the traceback

Traceback (most recent call last):
  File \"/src/services/worker/src/worker/job_manager.py\", line 125, in process\n    job_result = self.job_runner.compute()
  File \"/src/services/worker/src/worker/job_runners/config/parquet_and_info.py\", line 1417, in compute\n    compute_config_parquet_and_info_response(
  File \"/src/services/worker/src/worker/job_runners/config/parquet_and_info.py\", line 1324, in compute_config_parquet_and_info_response\n    parquet_operations = convert_to_parquet(builder)
  File \"/src/services/worker/src/worker/job_runners/config/parquet_and_info.py\", line 938, in convert_to_parquet\n    builder.download_and_prepare(
  File \"/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py\", line 1027, in download_and_prepare\n    self._download_and_prepare(
  File \"/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py\", line 1789, in _download_and_prepare\n    super()._download_and_prepare(
  File \"/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py\", line 1100, in _download_and_prepare\n    split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
  File \"/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/folder_based_builder/folder_based_builder.py\", line 114, in _split_generators\n    downloaded_files = dl_manager.download(files)
  File \"/src/services/worker/.venv/lib/python3.9/site-packages/datasets/download/download_manager.py\", line 257, in download\n    downloaded_path_or_paths = map_nested(
  File \"/src/services/worker/.venv/lib/python3.9/site-packages/datasets/utils/py_utils.py\", line 511, in map_nested\n    mapped = [
  File \"/src/services/worker/.venv/lib/python3.9/site-packages/datasets/utils/py_utils.py\", line 512, in <listcomp>\n    _single_map_nested((function, obj, batched, batch_size, types, None, True, None))
  File \"/src/services/worker/.venv/lib/python3.9/site-packages/datasets/utils/py_utils.py\", line 380, in _single_map_nested\n    return [mapped_item for batch in iter_batched(data_struct, batch_size) for mapped_item in function(batch)]
  File \"/src/services/worker/.venv/lib/python3.9/site-packages/datasets/utils/py_utils.py\", line 380, in <listcomp>\n    return [mapped_item for batch in iter_batched(data_struct, batch_size) for mapped_item in function(batch)]
  File \"/src/services/worker/.venv/lib/python3.9/site-packages/datasets/download/download_manager.py\", line 300, in _download_batched\n    return thread_map(
  File \"/src/services/worker/.venv/lib/python3.9/site-packages/tqdm/contrib/concurrent.py\", line 69, in thread_map\n    return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs)
  File \"/src/services/worker/.venv/lib/python3.9/site-packages/tqdm/contrib/concurrent.py\", line 51, in _executor_map\n    return list(tqdm_class(ex.map(fn, *iterables, chunksize=chunksize), **kwargs))
  File \"/src/services/worker/.venv/lib/python3.9/site-packages/tqdm/std.py\", line 1181, in __iter__\n    for obj in iterable:
  File \"/usr/local/lib/python3.9/concurrent/futures/_base.py\", line 609, in result_iterator\n    yield fs.pop().result()
  File \"/usr/local/lib/python3.9/concurrent/futures/_base.py\", line 439, in result\n    return self.__get_result()
  File \"/usr/local/lib/python3.9/concurrent/futures/_base.py\", line 391, in __get_result\n    raise self._exception
  File \"/usr/local/lib/python3.9/concurrent/futures/thread.py\", line 58, in run\n    result = self.fn(*self.args, **self.kwargs)
  File \"/src/services/worker/.venv/lib/python3.9/site-packages/datasets/download/download_manager.py\", line 323, in _download_single\n    out = cached_path(url_or_filename, download_config=download_config)
  File \"/src/services/worker/.venv/lib/python3.9/site-packages/datasets/utils/file_utils.py\", line 201, in cached_path\n    output_path = get_from_cache(
  File \"/src/services/worker/.venv/lib/python3.9/site-packages/datasets/utils/file_utils.py\", line 676, in get_from_cache\n    fsspec_get(
  File \"/src/services/worker/.venv/lib/python3.9/site-packages/datasets/utils/file_utils.py\", line 385, in fsspec_get\n    fs.get_file(path, temp_file.name, callback=callback)
  File \"/src/services/worker/.venv/lib/python3.9/site-packages/huggingface_hub/hf_file_system.py\", line 627, in get_file\n    outfile = open(lpath, \"wb\")
PermissionError: [Errno 13] Permission denied: '/tmp/hf-datasets-cache/medium/datasets/59146511988270-config-parquet-and-info-abhi1505-Drone_Data-6928f977/downloads/a3d6d38d9159fb9d6429f28224c80ecc7a281b095c77183e4381751ea5f3ae72.incomplete'

do you have an idea of the reason @lhoestq @albertvillanova @polinaeterna ?

Sign up or log in to comment