Unrar a file with python without relying on unrar.dll

Here https://stackoverflow.com/questions/17614467/how-can-unrar-a-file-with-python we can see that some modules can be useful for extracting .rar files. But it seems that : rarfile module needs...

Overwriting previously extracted files instead of creating new ones

There are a few libraries used to extract archive files through Python, such as gzip, zipfile library, rarfile, tarfile, patool etc. I found one of the libraries (patool) to be especially useful...

Decompressing rar file in Python error

I am trying to unrar a file using pyunpack but I always get an error. If I use a zip file everything works just fine but with rar files not. This is my code: from pyunpack import...

UnRARing files in Python in OSX

This is driving me nuts, I've looked at & tried a number of the answers here for solving this problem but nothing is working out so far. The basic problem is that I have some 1300+ rar files that...

Python: Compress file

I am a beginner in Python. I want to compress a file with password. I know there are some compress-libraries like zigfile, patool, tarfile, gzip and so on. But I couldn't find a library with I can...

Hide a specific output message from terminal when excuting a python script?

I'm excuting a python script that utilizes patoollibrary (a library for creating/extracting compressed archives). The thing is that when I run the script, it gives me the following lines: patool:...

JSON ValueError in CMS, tornado

I'm tring to run Contest Management System (docs) in Ubuntu 16.04. CMS runs quite OK, but sometimes it returns error, like this in short: ValueError: No JSON object could be decoded I'm afraid if...

can't build python docker image

I am trying to build a docker image of python using the following dockerfile: I'm looking to have the smallest image so I use elyase/conda:2.7 image as a base: # Pull base image. FROM...

Conda package build error

I'm trying to build a package and host it on anaconda, but I cannot successfully build the package and it is giving me an error that I don't know how to solve. This is the package's meta.yaml...

Rename a directory after extracting zip archive uploaded by user

I'm trying to rename the directory after extracting it in a temporary directory.The archive upload by user. What I mean, User will upload a .tar OR .zip file then I will make a temporary...

Downgrade tar package to particalar version

Dears, Under Ubuntu/Linux I want to downgrade "tar" package from 1.27-1 version to 1.26ver. per apt-cache showpkg tar I have: Package: tar Versions: 1.27.1-1ubuntu0.1...

How to use pyunpack to unpack .7z file?

Im trying to unpack a 7z file but got an error. This is the code: from pyunpack import Archive Archive('E:/Desktop/vnpt2/2_1_0_2841.7z').extractall('E:/Desktop/vnpt2/new') And this is...

How to unzip .rar file with Python and patoolib

I need uncompress .rar file in Google Colab with Python3. First I tried to do localy in MacOS. I have installed Patoolib package: pip install patool and unrar to unzip .rar files brew install...

Error connecting django-rq: ImportError: cannot import name get_failed_queue

Never worked with django-rq, redis. The problem should be solved easily, I think, but I do not know how. When I start the server, I get this error ImportError: cannot import name...

How to use patool in a pyinstaller .exe

I have a simple python script that unpack a file.rar It works fine until I compile it into an exe with pyinstaller and it stops working. Python 3.7 Windows 7 PyInstaller 3.4 My file.py ...

Python extract / unrar RAR file errors

I'm trying to extract RAR file in Python script. I've found only two possible ways to do that: by using patoolib or by using rarfile. Unfortunately, both of those options raise a lot of errors in...

How to decode Zip file from sftp file using paramiko python

I have to read the zip,rar and 7z file present in the server and extract there itself for further processing. I am using paramiko and python. I have a sftp file but I am not able to pass it...

Extract .cpgz file with Python

On my mac I've create an archive file archived_dir.cpgz using the native macOS Archive Utility tool. The contents of this file are the following: / myFile.java /dir myOtherFile.java ...

Use pyunpack inside an executable file made with pyinstaller in combination with try except

I have a strange behaviour for pyunpack, a package for unpacking, inside an executable. I want to do the following thing: I have a .7z type of file whose ending is not in .7z but in .sent. First I...

How to extract a Rar file with password in google colab?

Hi i'm currently using Google Colab and i need a extract a Rar file with password. I use Patool but it doesn't support Password's file

How To Extract Password Protected Rar File Using Patool On Google Colab

I have installed patool on Google Colab. The patool command works file with: patoolib.extract_archive("/content/drive/My Drive/File_name.part1.rar", outdir="/content/drive/My...

How big is too big for a Pyinstaller exe file?

Apologies for the extremely vague question, but I've been wrecking my head trying to reduce the size of an Pyinstaller .exe and I decided to check what more experienced Python developers think...

Running .exe without a console - OSError: [WinError 6] The handle is invalid

EDIT: Please note, I have seen other topics concerning this issue and already tried most of the suggestions there I use pyinstaller to run an .exe file and now I am tryng to run it without a...

Unable to use patoolib after 'pip3 install patool'

I am using a macbook, and have python3 installed and using spyder. I have installed patool and it's listed in pip3 list. When I import patoolib and run the program it says, ModuleNotFoundError: No...

PatoolError Python: problem in unpacking .rar file

I can't unpack a .rar file using patoolib in Python. I always get the error message: PatoolError: could not find an executable program to extract format rar; candidates are (rar,unrar,7z), I'm...

How to unpack .rar file in Python?

I have a problem in unpacking .rar files in Python. I am using macOS, with Anaconda Navigator and Spyder IDE. I have already installed unrar, pyunpack, py7zr, rarfile, patool packages. However,...