Datasets:
Dataset Viewer issue
#2
by
mickylan2367
- opened
The dataset viewer is not working.
I added data files in zip file. Metadata.jsonl and about 5000 png files are in the train.zip.
However, the dataset viewer doesn't work.
I couldn't understand why.
cc
@albertvillanova
@lhoestq
@severo
.
It looks like your ZIP files can't be read with zipfile
in python somehow:
File ~/.pyenv/versions/3.9.15/lib/python3.9/zipfile.py:1568, in ZipFile.open(self, name, mode, pwd, force_zip64)
1565 else:
1566 pwd = None
-> 1568 return ZipExtFile(zef_file, mode, zinfo, pwd, True)
1569 except:
1570 zef_file.close()
File ~/.pyenv/versions/3.9.15/lib/python3.9/zipfile.py:799, in ZipExtFile.__init__(self, fileobj, mode, zipinfo, pwd, close_fileobj)
796 self._compress_left = zipinfo.compress_size
797 self._left = zipinfo.file_size
--> 799 self._decompressor = _get_decompressor(self._compress_type)
801 self._eof = False
802 self._readbuffer = b''
File ~/.pyenv/versions/3.9.15/lib/python3.9/zipfile.py:698, in _get_decompressor(compress_type)
697 def _get_decompressor(compress_type):
--> 698 _check_compression(compress_type)
699 if compress_type == ZIP_STORED:
700 return None
File ~/.pyenv/versions/3.9.15/lib/python3.9/zipfile.py:678, in _check_compression(compression)
675 raise RuntimeError(
676 "Compression requires the (missing) lzma module")
677 else:
--> 678 raise NotImplementedError("That compression method is not supported")
NotImplementedError: That compression method is not supported
Can you try to recreate them ?
Thanks for your advise! I recreated them, and dataset viewer now woking!
- This error seemed to be occured because the remain of my local PC memory was very small, so it couldn't have created zip file correctly.
mickylan2367
changed discussion status to
closed