Dataset Viewer issue
#1
by
tbrugger
- opened
The dataset viewer is not working.
I can access the dataset with "load_dataset", whether im streaming it or not, but the dataset viewer does not work. The "source"-key is properly set in all data-files.
Error details:
Error code: StreamingRowsError
Exception: KeyError
Message: 'source'
Traceback: Traceback (most recent call last):
File "/src/workers/datasets_based/src/datasets_based/workers/first_rows.py", line 484, in compute_first_rows_response
rows = get_rows(
File "/src/workers/datasets_based/src/datasets_based/workers/first_rows.py", line 119, in decorator
return func(*args, **kwargs)
File "/src/workers/datasets_based/src/datasets_based/workers/first_rows.py", line 175, in get_rows
rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 850, in __iter__
yield _apply_feature_types_on_example(
File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 648, in _apply_feature_types_on_example
encoded_example = features.encode_example(example)
File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1800, in encode_example
return encode_nested_example(self, example)
File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1202, in encode_nested_example
{
File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1202, in <dictcomp>
{
File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 302, in zip_dict
yield key, tuple(d[key] for d in dicts)
File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 302, in <genexpr>
yield key, tuple(d[key] for d in dicts)
KeyError: 'source'
@tbrugger , thanks for reporting. We are investigating it.
Either way, thanks for the help and looking at it!
tbrugger
changed discussion status to
closed
Thanks @severo for refreshing the viewer and making it work.