Dataset Viewer issue

#1
by Kriyans - opened

The dataset viewer is not working.

Error details:

Error code:   ConfigNamesError
Exception:    IndentationError
Message:      unindent does not match any outer indentation level (indian-names.py, line 43)
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 360, in get_dataset_config_names
                  builder_cls = get_dataset_builder_class(dataset_module, dataset_name=os.path.basename(path))
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 197, in get_dataset_builder_class
                  builder_cls = import_main_class(dataset_module.module_path)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 115, in import_main_class
                  module = importlib.import_module(module_path)
                File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
                  return _bootstrap._gcd_import(name[level:], package, level)
                File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
                File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
                File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
                File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
                File "<frozen importlib._bootstrap_external>", line 846, in exec_module
                File "<frozen importlib._bootstrap_external>", line 983, in get_code
                File "<frozen importlib._bootstrap_external>", line 913, in source_to_code
                File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
                File "/tmp/modules-cache/datasets_modules/datasets/Kriyans--indian-names/a25518f12b68abd6250c197635610f83185b3389742a1927431a9e894419fab9/indian-names.py", line 43
                  downloaded_files = dl_manager.download_and_extract(urls_to_download)
                                                                                      ^
              IndentationError: unindent does not match any outer indentation level

cc @albertvillanova @lhoestq @severo .

Thanks for reporting, @Kriyans .

I see you already fixed the indentation error. I am closing this issue as no longer pertinent.

albertvillanova changed discussion status to closed

Sign up or log in to comment