我有一个Linux Python脚本,需要解压缩一些zip文件。我正在使用zipfile模块。在这些文件中的一些我得到:
BadZipfile:不支持的压缩方法98文件搜索这些文件似乎是使用方法98 PPMD压缩。我想如果python不能做到这一点,我会做一个黑客系统调用解压缩6.0并完成它。此错误:
skipping:fileName`PPMd'方法不支持我试过7zip:
提取fileName不支持的方法我以为我用命令行实用程序ppmd命中了pay-dirt,但是:
用于文本数据的快速PPMII压缩器,变体I,2009年11月6日分段故障 pre>还有什么我可以试试吗? WinZip在Windows中没有这些文件的问题,但我需要在Linux中这样做。
解决方案p7zip(二进制)?
似乎支持PPMD压缩格式。
一些PPMd开关:-mmem = 24b,-mmem = 24k,-mmem = 24m,-mo = 2和-mo = 32
I have a Linux Python script that needs to unzip some zip files. I was using the zipfile module. On a few of these files I'm getting:
BadZipfile: Unsupported compression method 98 for fileSearching around it seems these files are using Method 98 PPMD compression. I figured if python couldn't do it, I'd make a hack system call to unzip 6.0 and be done with it. This errors:
skipping: fileName `PPMd' method not supportedI've tried 7zip:
Extracting fileName Unsupported MethodI thought I hit pay-dirt with a command line utility ppmd, but:
Fast PPMII compressor for textual data, variant I, Nov 6 2009 Segmentation faultAnything else I can try? WinZip in windows has no problem with these files, but I need to do this in Linux.
解决方案Have you taken a look at the p7zip (binary)?
It seems to support the PPMD compression format.
Some PPMd switches: -mmem=24b, -mmem=24k, -mmem=24m, -mo=2, and -mo=32
更多推荐
压缩文件与PPMD压缩,以编程方式解压缩
发布评论