118 questions
1
vote
1
answer
129
views
PowerShell/Unrar - Use securestring with Unrar Password switch
I have a configuration file with secure strings. These strings are passwords I use for automation.
Typically, I can encrypt my passwords with
Read-Host -AsSecureString | ConvertFrom-SecureString
A ...
0
votes
0
answers
57
views
How to unrar from different subfolders into each specific subfolder?
I use this piece of command to unrar a bunch of files from a folder (which has a lot of subfolders).
All the unpacked files do end up in the same main folder though. How do I unrar every file to it's ...
0
votes
0
answers
109
views
Python package RarFile password protected excraction raises 'NoneType' object is not iterable
What am I missing, when using the package rarfile when simply extracting a password protected rar file? The same exception is raised, when the password is byte-encoded. Right and wrong passwords raise ...
1
vote
0
answers
136
views
get a list of elements into the *.rar file in Linux
I want to get a list of elements (files and folders) that are into the *.rar file.
I have a folder with a lot of *.rar files, each of *.rar have folders and files, I would to get a list of name of ...
0
votes
1
answer
625
views
Couldn't find path to unrar library in aws lambda (Python)
I have a rar file, which I want to unrar in AWS lambda using python. I learned about unrar library in python. I have created the layer for unrar in AWS. But now when I execute the code
from unrar ...
0
votes
2
answers
1k
views
List directories in zip and rar files
I trying to do a data frame/list/vector with a list of folders inside a zip and rar file.
I have a folder with a lot of zip and rar files;
Each zip and rar file has one folder and inside this folder ...
0
votes
0
answers
1k
views
RarFile Python module error: rarfile.RarCannotExec: Cannot find working tool
I want to extract a RAR with rarfile python module:
import rarfile
rar_path = r'C:\...\Test.rar'
rar_password = '123'
# rarfile.UNRAR_TOOL = r'path to what .exe? I cant find it, is this line ...
0
votes
1
answer
301
views
UnRAR DLL unable to be referenced in C#
I was trying to make a program to clean out some directories on my NAS and I noticed that a lot of folders contained nested rar and zip files and I have plenty of space to unpack them. The program ...
0
votes
1
answer
112
views
Memory usage buildup while dictionary password checking using unrar lib in python
I wrote some crude code in python for checking passwords from a dictionary file for password protected rar archive. I even added some multi-threading, runs great. Unfortunately as the script goes ...
0
votes
1
answer
214
views
remove '.part1' from Output directory in 7z
I have 2 files test.part1.rar and test.part2.rar
When extracting them using command
7z x -o* test.part1.rar
The output directory is a folder with test.part1 name
I want the output directory to be a ...
0
votes
1
answer
303
views
The handle is invalid with python patoolib executable file
My python file is working fine
import patoolib patoolib.extract_archive("test.7z")
But when I use pyinstaller to make an executable on windows I got this error:
Traceback (most recent ...
-3
votes
1
answer
1k
views
Can't unrar file
So I used unrar-free to unrar a file that I wanted to extract. When I gave the command in the CMD it showed me this:
unrar 0.0.1 Copyright (C) 2004 Ben Asselstine, Jeroen Dekkers
Extracting from /...
0
votes
1
answer
437
views
How to do unrar operation in SageMaker?
I am trying to unrar the dataset for my object detection model, but I couldn't unrar the compressed file in AWS's SageMaker.
0
votes
1
answer
883
views
PackagesNotFoundError when trying to install unrar with conda
I'm trying to install unrar with conda, with no luck. I installed other packages with no issues before.
Here's the commands I used:
user: conda activate username
user: conda install unrar
Which led ...
0
votes
1
answer
685
views
How to unrar file with password hidden inside rar file as text?
There is rar file with password-protected that I need to extract, but the password to extract is in a text file inside that rar file. How can I extract it without using brute-force method because the ...
0
votes
1
answer
2k
views
Problem with "import rarfile" in python on Ubuntu
Today I turned on my Ubuntu virtual machine and tried to do a project in Python 3.9.4,
but this one used rarfile module. Which is throwing errors.
I know rarfile uses unrar, and I installed both ...
54
votes
4
answers
47k
views
Mac os - brew install unrar fails
I'm trying to run brew install unrar on mac os Big Sur and I'm getting the following error:
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> Updated Casks
...
2
votes
1
answer
1k
views
How to unzip .rar with password?
I have a .rar archive that contains a file csv. The .rar has a password and I want to read it with R Studio ( the csv is the only file into the .rar).
I tried to do it with the following code:
library(...
0
votes
1
answer
1k
views
Unrar the files with the name of the rar files
I have folder with 4 rar (zipped) files.
screenshot #1: rar files and names
This is the python code to unrar them:
#!/usr/bin/python
import os, zipfile, pyunpack, sys
import tkinter as tk
from tkinter ...
0
votes
2
answers
825
views
Google Colab can't Extract a big file saved in my Google Drive
I am trying to Extract a big file saved in Google Drive into itself. I tried Google Drive apps in Google Workspace Marketplace like "ZIP Extractor" and "UnRAR and RAR viewer", But ...
1
vote
1
answer
4k
views
How to unrar files
I am trying to unrar files uploaded by users in django web application. I have gone through different approaches but none of them are working for me.
The below methods work fine in my local OS (Ubuntu ...
2
votes
2
answers
11k
views
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, when I ...
1
vote
1
answer
3k
views
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 using ...
1
vote
3
answers
2k
views
A bash script to unrar all files in a sub directory in linux
I'm on Ubuntu server 18.04.
My main goal is to run a script from a parent directory which unrars all the files inside all sub directories of the parent directory.
I have also installed apt install ...
0
votes
1
answer
205
views
Python unrar module throws MemoryError while reading a .rar file
I have written following code to read .rar files to check if they contain MDF files.
from unrar import rarfile
def is_contain_mdf_file(filepath) -> bool:
try:
if rarfile.is_rarfile(...
-2
votes
1
answer
102
views
How to parse / pass lines from a text file to a program to be run using that string
I use an old program that went out of business, it creates a folder and inside of that "root" folder it creates other folders inside of that folder it creates a rar file of the output from ...
1
vote
2
answers
3k
views
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 Drive/Folder/")`
After ...
0
votes
3
answers
2k
views
How to extract multiple files at the same time in ubuntu terminal using unrar command?
I have about 100 rar files in a directory and I want to extract them in the same directory using unrar in the terminal in Ubuntu 20.04.
I use the following command to unrar them one by one and it's OK:...
0
votes
1
answer
2k
views
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
0
votes
1
answer
1k
views
Unzip failed to finish in Google Colab
So I try to train an autoencoder model but have difficulty on extracting large zipfile and rarfile in Google Drive. its a 3GB zipfile containing 500 dirs of images and a5GB rarfile containing 1.7 ...
-1
votes
1
answer
127
views
Extract recursively and append extension?
I want to make a script that can extract rar files recursively and append an extension to the extracting files.
The extension should be added during the process (so that other software doesn't see a ...
0
votes
1
answer
845
views
extract all rar files in a folder and sub-folder to same folder
I found this post for extracting rar files from one folder to same folder name: extract rar files to same folder name
I want to extract several rar files in sub-folders to sub-folders of the same ...
2
votes
3
answers
2k
views
C#: How to use unrar.dll & unrar.cs from rarlab to extract a split archive?
I've downloaded the unrar.dll for Windows software developers from rarlab.com, included the unrar.dll and the class of unrar.cs into my C# WPF project.
It extracts single archives (even with password ...
1
vote
1
answer
2k
views
How note a wrong password with Python's UnRAR library?
The following code (which tries to “open” an encrypted RAR-file supplying a wrong password):
from unrar import rarfile
import unrar
try:
rarfile.RarFile("encrypted.rar", pwd="wrong_password")
...
3
votes
3
answers
6k
views
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 my ...
0
votes
1
answer
207
views
Warning when upgrading junrar: Symbol extractArchive is deprecated
I'm using junrar 0.7 and am trying to upgrade to version 4.0.0, and in the process I am getting warnings about a certain method I am using to unrar a file to a destination directory. Here is my code (...
7
votes
3
answers
10k
views
How to set path to unrar library in Python?
I am using Pycharm as my IDE (Python 3.7) and am trying to extract a password protected .rar file (I know the password) and have imported rarfile from unrar but am getting this error "LookupError: ...
2
votes
2
answers
200
views
PYTHON - UNRAR : how can I build a thread to monitoring the downloading status
Good Morning,
I need some help concerning my script. I'm a beginner in Python and I would like to know how can I add a thread to verifiy my downloading process ?
Here my Download Script:
class ...
1
vote
1
answer
126
views
Loop doesn't unrar my files... Code doesn't enter into the loop
Morning Everybody,
I've a problem concerning my code. I'll explain, I've a connexion to a local FTP server on my linux instance. I would like to explore all my directories to unrar my files ".rar" ...
3
votes
1
answer
393
views
What is the default size unit of unrar?
I have rar files but want to see the uncompressed size without unraring them.
I am using unrar through the command line.
I am using unrar v which lists:
Attributes Size Packed Ratio Date ...
5
votes
1
answer
12k
views
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 ...
2
votes
2
answers
1k
views
Find and Unrar all files
Hi I am working on a script that syncs content from a remote site using SFTP, then extracts any archives. However I am struggling to get the extracted files to the correct (source) directory.
I ...
0
votes
1
answer
1k
views
Error while running unrar on docker ubuntu
I have installed unrar, my script was running fine when i deployed it on ubuntu (not inside docker). After implementing the same script, i'm getting this error. I've the unrar command is executing, ...
0
votes
0
answers
211
views
unrar with long file path
I have an .rar achive, when I use right click on file explorer, and use the menu "extract here", I can extract the files sucessfully. but when I use unrar.exe to extract the same achive, I got errors ...
-1
votes
1
answer
85
views
How do I decompress a rar archive that does not consist of one file in the linux console?
I have the archives that I downloaded:
2MGF&DPNA.part1.rar
2MGF&DPNA.part2.rar
2MGF&DPNA.part3.rar
2MGF&DPNA.part4.rar
2MGF&DPNA.part5.rar
Everywhere write that utility unrar ...
1
vote
0
answers
129
views
Combining find and unrar commands
I was trying to combine find and unrar commands in macOS but I got some strange results. The command was:
find /Users/priit/Downloads/Show/ -name "*.rar" -execdir unrar -r -o- "{}" /users/priit/...
0
votes
1
answer
5k
views
extract rar files to same folder name
I have many .rar folders within a particular directory. I want to extract contents of each rar folder in the same directory and all the extracted files of rar folder should be placed in the new folder ...
0
votes
1
answer
495
views
Ubuntu unrar does not extract dot files
I'm facing a weird problem. I'm getting a rar file on my ubuntu server through wget and I do unrar e -r file.rar to extract all files. However, files like .htaccess are not extracted. I know it is ...
-3
votes
1
answer
239
views
Archive Extraction Script
I'm new to working in the shell and can use the unrar command to extract a single archive but I'm looking to do a lot more then that. Let me explain.
Ex:
/ParentFolder/ChildFolder1/xyz.rar
/...
1
vote
1
answer
2k
views
Python script to recursively open .rar files in a directory
I'm writing this python script to recursively go through a directory and use the unrar utility on ubuntu to open all .rar files. For some reason it will enter the directory, list some contents, enter ...