keras-video-classifier icon indicating copy to clipboard operation
keras-video-classifier copied to clipboard

patool error

Open janvib27 opened this issue 6 years ago • 10 comments

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.

janvib27 avatar Dec 26 '18 07:12 janvib27

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

tianjihuimou avatar Jan 11 '19 05:01 tianjihuimou

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)

LiveNL avatar Jan 18 '19 10:01 LiveNL

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

SheldonXin avatar May 08 '19 07:05 SheldonXin

brew install unrar worked for me on OS X

sasikanth513 avatar Jul 17 '19 05:07 sasikanth513

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

tanujdhiman avatar Aug 20 '21 07:08 tanujdhiman

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

Thijxx avatar Jan 17 '22 13:01 Thijxx

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?

rajat709 avatar Jun 02 '23 06:06 rajat709

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?

Thijxx avatar Jun 05 '23 13:06 Thijxx

Yes, it gives the path where rar files stored.

rajat709 avatar Jun 13 '23 13:06 rajat709

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

Thijxx avatar Jun 14 '23 08:06 Thijxx