Dataset loader dependencies for the Dataset Viewer

#1
by zeio - opened

Is it possible to specify the dataset loader dependencies to be installed by the dataset viewer? My loader uses library music-tag, but it is not installed by default, so I need to somehow install it manually.

Error details:

Error code:   DatasetModuleNotInstalledError
Exception:    ImportError
Message:      To be able to use zeio/baneks-speech, you need to install the following dependency: music_tag.
Please install it using 'pip install music_tag' for instance.
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 1512, in dataset_module_factory
                  raise e1 from None
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1481, in dataset_module_factory
                  return HubDatasetModuleFactoryWithScript(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1202, in get_module
                  local_imports = _download_additional_modules(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 294, in _download_additional_modules
                  raise ImportError(
              ImportError: To be able to use zeio/baneks-speech, you need to install the following dependency: music_tag.
              Please install it using 'pip install music_tag' for instance.

cc @albertvillanova @lhoestq @severo .

you found a workaround, right?

you found a workaround, right?

Not actually :( I've enabled filling the values which should be read from audiofile metadata with placeholders for now

OK, I reopened the issue

Sign up or log in to comment