Skip to content

IndexError: list index out of range #87

Open

Description

@cloveropen

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

Activity

  1. tsuyoshily commented on Aug 11, 2021

    @tsuyoshily

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

  2. preetshah7 commented on Oct 3, 2021

    @preetshah7

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

  3. obeychoi0120 commented on Mar 2, 2022

    @obeychoi0120

    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.

  4. ycheng-allen commented on May 8, 2022

    @ycheng-allen

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

  5. ycheng-allen commented on May 8, 2022

    @ycheng-allen

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions