Datasets:
Dataset Viewer issue
#1
by
cyanic-selkie
- opened
The dataset viewer is not working.
Error details:
Error code: ConfigNamesError
Exception: TypeError
Message: argument of type 'bool' is not iterable
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 55, in compute_config_names_response
for config in sorted(get_dataset_config_names(path=dataset, token=hf_token))
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 351, in get_dataset_config_names
dataset_module = dataset_module_factory(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1495, in dataset_module_factory
raise e1 from None
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1472, in dataset_module_factory
return HubDatasetModuleFactoryWithoutScript(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1069, in get_module
builder_configs, default_config_name = create_builder_configs_from_metadata_configs(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 597, in create_builder_configs_from_metadata_configs
builder_config_cls(
File "<string>", line 11, in __init__
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 136, in __post_init__
if invalid_char in self.name:
TypeError: argument of type 'bool' is not iterable
Thanks for reporting, @cyanic-selkie .
We are investigating the issue.
The issue is caused by the YAML format: the string "no" should be quoted, otherwise YAML considers it as a boolean False: (see: https://yaml.org/type/bool.html)
- Instead of:
- config_name: no
- You should use:
- config_name: 'no'
Also inside language:
language:
- 'no'
albertvillanova
changed discussion status to
closed