Dataset Viewer issue: ConfigNamesError

#1
by nroggendorff - opened

The dataset viewer is not working.

Error details:

Error code:   ConfigNamesError
Exception:    AttributeError
Message:      'str' object has no attribute 'items'
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 1879, in dataset_module_factory
                  raise e1 from None
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1854, in dataset_module_factory
                  return HubDatasetModuleFactoryWithoutScript(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1306, in get_module
                  {
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1307, in <dictcomp>
                  config_name: DatasetInfo.from_dict(dataset_info_dict)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/info.py", line 361, in from_dict
                  return cls(**{k: v for k, v in dataset_info_dict.items() if k in field_names})
              AttributeError: 'str' object has no attribute 'items'

cc @albertvillanova @lhoestq @severo .

Hi ! It looks like your dataset_infos.json is incorrect, feel free to remove it and it will fix the viewer (all the info is already available in the README.md YAML header anyway)

Sign up or log in to comment