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

patoolib.util.PatoolError: could not find an executable program to extract format rar; candidates are rar,unrar,7z,7zz,7zzs,unar #149

Open
AMAprogrammer opened this issue Feb 21, 2024 · 3 comments

Comments

@AMAprogrammer
Copy link

hello
i want to extract a zip file by patoolib in python but this error shows

@AMAprogrammer
Copy link
Author

AMAprogrammer commented Feb 21, 2024

i tried this way

        patoolib.extract_archive(archive=file_adress, outdir=f"/home/container/users_file/{chat_id}/files/",password=password)

but this error shows

patoolib.util.PatoolError: could not find an executable program to extract format rar; candidates are rar,unrar,7z,7zz,7zzs,unar

@harkabeeparolus
Copy link

could not find an executable program to extract format rar

This indicates that the file is perhaps not a zip file. Patool seems to detect it as a RAR file.

@wummel
Copy link
Owner

wummel commented Nov 9, 2024

Use the newest patool version and run with option "-vv" (twice verbose). The debugging output will tell you what file type is detected.

You can also run file yourarchive.zip to display information about the archive file.

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

3 participants