Dataset Viewer issue: ConfigNamesError
#1
by
pierreslamich
- opened
Hello folks,
The dataset viewer is not working. It's a zip of our MongoDB database export.
It would probably be useful for developers looking to play with food to be able to preview it.
Error details:
Error code: ConfigNamesError
Exception: DataFilesNotFoundError
Message: No (supported) data files found in openfoodfacts/openfoodfacts-mongo-export
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 72, in compute_config_names_response
config_names = get_dataset_config_names(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 347, in get_dataset_config_names
dataset_module = dataset_module_factory(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1904, in dataset_module_factory
raise e1 from None
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1885, in dataset_module_factory
return HubDatasetModuleFactoryWithoutScript(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1270, in get_module
module_name, default_builder_kwargs = infer_module_for_data_files(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 597, in infer_module_for_data_files
raise DataFilesNotFoundError("No (supported) data files found" + (f" in {path}" if path else ""))
datasets.exceptions.DataFilesNotFoundError: No (supported) data files found in openfoodfacts/openfoodfacts-mongo-export
Hi, we don't support showing the content of mongo dumps in the Viewer. Have you considered exporting to another file format like JSON Lines or Parquet ?
noted, is a jsonl.gz ok, or does it need to be uncompressed ?
jsonl.gz is ok