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

patool error #9

Open
janvib27 opened this issue Dec 26, 2018 · 10 comments
Open

patool error #9

janvib27 opened this issue Dec 26, 2018 · 10 comments

Comments

@janvib27
Copy link

I have created an environment and executing as instructed in Github.
ubuntu:18.04
python 3.6
On executing this command I am getting the following error:
python vgg16_bidirectional_lstm_train.py
Using TensorFlow backend.
unzipping ucf file
patool: Extracting very_large_data/UCF101.rar ...
Traceback (most recent call last):
File "vgg16_bidirectional_lstm_train.py", line 38, in
main()
File "vgg16_bidirectional_lstm_train.py", line 27, in main
load_ucf(input_dir_path)
File "../keras_video_classifier/library/utility/ucf/UCF101_loader.py", line 75, in load_ucf
download_ucf(data_dir_path)
File "../keras_video_classifier/library/utility/ucf/UCF101_loader.py", line 34, in download_ucf
patoolib.extract_archive(ucf_rar, outdir=data_dir_path)
File "/home/dipesh/anaconda3/lib/python3.6/site-packages/patoolib/init.py", line 684, in extract_archive
return _extract_archive(archive, verbosity=verbosity, interactive=interactive, outdir=outdir, program=program)
File "/home/dipesh/anaconda3/lib/python3.6/site-packages/patoolib/init.py", line 470, in _extract_archive
program = find_archive_program(format, 'extract', program=program)
File "/home/dipesh/anaconda3/lib/python3.6/site-packages/patoolib/init.py", line 336, in find_archive_program
raise util.PatoolError("could not find an executable program to %s format %s; candidates are (%s)," % (command, format, ",".join(programs)))
patoolib.util.PatoolError: could not find an executable program to extract format rar; candidates are (rar,unrar,7z),
Kindly help me resolve this issue. Thanks in advance.

@tianjihuimou
Copy link

Have you solved this problem? I have met it, too

@LiveNL
Copy link

LiveNL commented Jan 18, 2019

The actual error seems to appear here:
patoolib.util.PatoolError: could not find an executable program to extract format rar; candidates are (rar,unrar,7z),

this can be resolved by installing one of the proposed candidates (for example; brew install unrar)

@SheldonXin
Copy link

@janvib27 hey,bro,I met the same problem with you,do you solve it?

@sasikanth513
Copy link

brew install unrar worked for me on OS X

@tanujdhiman
Copy link

Hello all
I'm also using Ubuntu And getting this error. How did you resolve this ?

@Thijxx
Copy link

Thijxx commented Jan 17, 2022

Hello all I'm also using Ubuntu And getting this error. How did you resolve this ?

you can install unrar with sudo apt install unrar

this issue comes up high on google so I necroposted to it

@rajat709
Copy link

rajat709 commented Jun 2, 2023

Hello @Thijxx
I have installed both rar and unrar on Colab and I'm currently working on repacking a zip file into a rar format. However, when using the patoolib.repack_archive() function with verbosity set to 0, I encounter the following error: 'PatoolError: could not find an executable program to create format rar; candidates are (rar)'. Do you have any suggestions on how to resolve this issue?

@Thijxx
Copy link

Thijxx commented Jun 5, 2023

Hello @Thijxx I have installed both rar and unrar on Colab and I'm currently working on repacking a zip file into a rar format. However, when using the patoolib.repack_archive() function with verbosity set to 0, I encounter the following error: 'PatoolError: could not find an executable program to create format rar; candidates are (rar)'. Do you have any suggestions on how to resolve this issue?

does it return something when you run which rar?

@rajat709
Copy link

Yes, it gives the path where rar files stored.

@Thijxx
Copy link

Thijxx commented Jun 14, 2023

could not find an executable program to create format rar; candidates are (rar)'

Then I don't know what is happening, you may want to try StackOverflow, I don't think the problem is directly related to code in this repo

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

8 participants