hi when i compress my mcd/txt files using windows defaults
i get the below message in jypter . it mentions the lzma compression type, so i don't know the zipfile compression type required? using 7-zip i can compress using deflate, LZMA, bzip2, i did not know the type mattered?
NotImplementedError Traceback (most recent call last)
Input In [35], in <cell line: 3>()
8 temp_dirs.append(temp_dir)
9 for zip_file in sorted(zip_files):
---> 10 imcsegpipe.extract_zip_file(zip_file, temp_dir.name)
11 acquisition_metadatas = []
12 for raw_dir in raw_dirs + [Path(temp_dir.name) for temp_dir in temp_dirs]:
File c:\users\antho\documents\githubrepos\imcsegmentationpipeline\src\imcsegpipe\_imcsegpipe.py:24, in extract_zip_file(zip_file, dest_dir)
20 def extract_zip_file(
21 zip_file: Union[str, PathLike], dest_dir: Union[str, PathLike]
22 ) -> None:
23 with ZipFile(zip_file, allowZip64=True) as f:
---> 24 f.extractall(dest_dir)
File ~\anaconda3\envs\imcsegpipe\lib\zipfile.py:1642, in ZipFile.extractall(self, path, members, pwd)
1639 path = os.fspath(path)
1641 for zipinfo in members:
-> 1642 self._extract_member(zipinfo, path, pwd)
File ~\anaconda3\envs\imcsegpipe\lib\zipfile.py:1695, in ZipFile._extract_member(self, member, targetpath, pwd)
1692 os.mkdir(targetpath)
1693 return targetpath
-> 1695 with self.open(member, pwd=pwd) as source, \
1696 open(targetpath, "wb") as target:
1697 shutil.copyfileobj(source, target)
1699 return targetpath
File ~\anaconda3\envs\imcsegpipe\lib\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 ~\anaconda3\envs\imcsegpipe\lib\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 ~\anaconda3\envs\imcsegpipe\lib\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 ~\anaconda3\envs\imcsegpipe\lib\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
hi when i compress my mcd/txt files using windows defaults
i get the below message in jypter . it mentions the lzma compression type, so i don't know the zipfile compression type required? using 7-zip i can compress using deflate, LZMA, bzip2, i did not know the type mattered?