Dataset Viewer issue: ConfigNamesError
#2
by
CaraJ
- opened
The dataset viewer is not working.
Hi! I am trying to specify the data type for the 'alternative_gt_answers' key as a python list. But I keep failing to do so. Any help is appreciated!
Error details:
Error code: ConfigNamesError
Exception: KeyError
Message: 'name'
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 66, 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 1914, in dataset_module_factory
raise e1 from None
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1889, in dataset_module_factory
return HubDatasetModuleFactoryWithoutScript(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1238, in get_module
dataset_infos = DatasetInfosDict.from_dataset_card_data(dataset_card_data)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/info.py", line 456, in from_dataset_card_data
{
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/info.py", line 457, in <dictcomp>
dataset_info_yaml_dict.get("config_name", "default"): DatasetInfo._from_yaml_dict(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/info.py", line 395, in _from_yaml_dict
yaml_data["features"] = Features._from_yaml_list(yaml_data["features"])
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1921, in _from_yaml_list
return cls.from_dict(from_yaml_inner(yaml_data))
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1917, in from_yaml_inner
return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1917, in <dictcomp>
return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1897, in from_yaml_inner
return {"feature": from_yaml_inner(_feature), **obj, "_type": "Sequence"}
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1916, in from_yaml_inner
names = [_feature.pop("name") for _feature in obj]
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1916, in <listcomp>
names = [_feature.pop("name") for _feature in obj]
KeyError: 'name'
CaraJ
changed discussion status to
closed