Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACE support in windows #51

Open
dadokkio opened this issue Sep 21, 2017 · 0 comments
Open

ACE support in windows #51

dadokkio opened this issue Sep 21, 2017 · 0 comments

Comments

@dadokkio
Copy link

dadokkio commented Sep 21, 2017

Hi,
we needed to open ACE archive on a windows platform but we had some problem.
In detail we had to install peazip with ace add-on (in order to have unace.exe) and then edit the extract_ace function in unace.py.

Default code output was:

>>> x = patoolib.extract_archive("pippo.ace", verbosity=1, outdir=".")
patool: Extracting pippo.ace ...
patool: running "C:\Program Files\PeaZip\res\unace\unace.exe" x pippo.ace ./
Info: creating file list

Error: no files specified
Info: finished creating file list

ActiveACE operation return code: 2
patool: ... pippo.ace extracted to .

We had to change the x flag to e [extract in current folder] and remove the output folder

def extract_ace (archive, compression, cmd, verbosity, interactive, outdir):
    """Extract an ACE archive."""
    return [cmd, 'e', archive]
>>> x = patoolib.extract_archive("pippo.ace", verbosity=1, outdir=".")
patool: Extracting pippo.ace ...
patool: running "C:\Program Files\PeaZip\res\unace\unace.exe" e pippo.ace
Info: creating file list
Info: adding file to file list
Info: finished creating file list
Extracting pippo.ace

  Extracting pippo.txt  (12 byte uncompressed, 12 byte compressed)
    processed: 0 of 12 bytes (0 of 12 bytes)
    processed: 0 of 12 bytes (0 of 12 bytes)
    processed: 0 of 12 bytes (0 of 12 bytes)
    processed: 12 of 12 bytes (12 of 12 bytes)
   CRC OK

ActiveACE operation return code: 0
patool: ... pippo.ace extracted to `.'.

There is a better way to proceed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant