Dataset Viewer issue: StreamingRowsError
#2
by
andersonbcdefg
- opened
The dataset viewer is not working. I tried the steps in Manual Configuration, but couldn't get it to recognize/read the files. Then I tried just putting the files in default/train and that didn't work either. I think it's because they're compressed? But IDK.
Error details:
Error code: StreamingRowsError
Exception: TypeError
Message: readable file expected
Traceback: Traceback (most recent call last):
File "pyarrow/io.pxi", line 2018, in pyarrow.lib.get_native_file
File "/src/services/worker/.venv/lib/python3.9/site-packages/pyarrow/util.py", line 151, in _stringify_path
raise TypeError("not a path-like object")
TypeError: not a path-like object
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
return get_rows(
File "/src/libs/libcommon/src/libcommon/utils.py", line 197, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 2093, in __iter__
for key, example in ex_iterable:
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 279, in __iter__
for key, pa_table in self.generate_tables_fn(**gen_kwags):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/parquet/parquet.py", line 82, in _generate_tables
parquet_file = pq.ParquetFile(f)
File "/src/services/worker/.venv/lib/python3.9/site-packages/pyarrow/parquet/core.py", line 318, in __init__
self.reader.open(
File "pyarrow/_parquet.pyx", line 1467, in pyarrow._parquet.ParquetReader.open
File "pyarrow/io.pxi", line 2038, in pyarrow.lib.get_reader
File "pyarrow/io.pxi", line 2024, in pyarrow.lib.get_native_file
File "pyarrow/io.pxi", line 869, in pyarrow.lib.PythonFile.__cinit__
TypeError: readable file expected