Datasets:

Modalities:
Text
Languages:
English
Libraries:
Datasets
License:

Dataset Viewer issue: AttributeError: 'str' object has no attribute 'read'

#1
by albertvillanova HF staff - opened
BigScience Biomedical Datasets org

The dataset viewer is not working.

Error details:

Error code:   StreamingRowsError
Exception:    AttributeError
Message:      'str' object has no attribute 'read'
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 747, in __iter__
                  for key, example in self._iter():
                File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 737, in _iter
                  yield from ex_iterable
                File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 106, in __iter__
                  yield from self.generate_examples_fn(**self.kwargs)
                File "/tmp/modules-cache/datasets_modules/datasets/bigbio--meqsum/f5d225ee82d4d6b62745fe65ffd3357d174f48dd46ffa385106c387c1ae0c2ae/meqsum.py", line 146, in _generate_examples
                  corpus = pd.read_excel(filepath)
                File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 720, in xpandas_read_excel
                  return pd.read_excel(BytesIO(filepath_or_buffer.read()), **kwargs)
              AttributeError: 'str' object has no attribute 'read'

Sign up or log in to comment