压缩文件与PPMD压缩,以编程方式解压缩 [英] Zip File with PPMD Compression, Programmatically Unzip

查看:290
本文介绍了压缩文件与PPMD压缩,以编程方式解压缩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个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 file

Searching 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 supported

I've tried 7zip:

Extracting  fileName     Unsupported Method

I thought I hit pay-dirt with a command line utility ppmd, but:

Fast PPMII compressor for textual data, variant I, Nov  6 2009
Segmentation fault

Anything 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压缩,以编程方式解压缩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆