Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

IndexError: list index out of range #87

Open
cloveropen opened this issue Aug 4, 2021 · 5 comments
Open

IndexError: list index out of range #87

cloveropen opened this issue Aug 4, 2021 · 5 comments

Comments

@cloveropen
Copy link

Hi,when i run "python download.py ./data/kinetics-600_train.csv dd_train ",after a while,get the error:

Traceback (most recent call last):
File "d:\ProgramData\Anaconda3\lib\site-packages\joblib\externals\loky\process_executor.py", line 431, in _process_worker
r = call_item()
File "d:\ProgramData\Anaconda3\lib\site-packages\joblib\externals\loky\process_executor.py", line 285, in call
return self.fn(*self.args, **self.kwargs)
File "d:\ProgramData\Anaconda3\lib\site-packages\joblib_parallel_backends.py", line 595, in call
return self.func(*args, **kwargs)
File "d:\ProgramData\Anaconda3\lib\site-packages\joblib\parallel.py", line 262, in call
return [func(*args, **kwargs)
File "d:\ProgramData\Anaconda3\lib\site-packages\joblib\parallel.py", line 262, in
return [func(*args, *kwargs)
File "download.py", line 132, in download_clip_wrapper
downloaded, log = download_clip(row['video-id'], output_filename,
File "download.py", line 100, in download_clip
tmp_filename = glob.glob('%s
' % tmp_filename.split('.')[0])[0]
IndexError: list index out of range
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "download.py", line 223, in
main(**vars(p.parse_args()))
File "download.py", line 194, in main
status_lst = Parallel(n_jobs=num_jobs)(delayed(download_clip_wrapper)(
File "d:\ProgramData\Anaconda3\lib\site-packages\joblib\parallel.py", line 1061, in call
self.retrieve()
File "d:\ProgramData\Anaconda3\lib\site-packages\joblib\parallel.py", line 940, in retrieve
self._output.extend(job.get(timeout=self.timeout))
File "d:\ProgramData\Anaconda3\lib\site-packages\joblib_parallel_backends.py", line 542, in wrap_future_result
return future.result(timeout=timeout)
File "d:\ProgramData\Anaconda3\lib\concurrent\futures_base.py", line 439, in result
return self.__get_result()
File "d:\ProgramData\Anaconda3\lib\concurrent\futures_base.py", line 388, in __get_result
raise self._exception
IndexError: list index out of range

@tsuyoshily
Copy link

I'm facing the same problem.
Did you find any solution?

@preetshah7
Copy link

I am facing the same error, it downloads some videos and then shows this error. Please help

@obeychoi0120
Copy link

in 'tmp_filename = glob.glob('%s' % tmp_filename.split('.')[0])[0]' :

when i check the variable 'tmp_filename', It is empty.
I deleted the very outer indexing [0] as now, but i think it is not the perfect way.

@Allencheng97
Copy link

I got the same problem. I think this repo might be helpful. It's easier then debug for official scripts.

@Allencheng97
Copy link

I create a new repo using aria2c to download. Feel free to use this code.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants