five-video-classification-methods
five-video-classification-methods copied to clipboard
list index out of range error on Windows 10, Python
Hi!
I am not able to go through this error.
Traceback (most recent call last):
File "1_move_files.py", line 81, in
I have tried every suggestion to solve it in other similar issues. I tried parts = video.split('\'). but didn't change a thing. I have all the files in the same directory I am working in. I tried installing ffmpeg but it also didn't help.
I am working on Windows 10 and Anaconda. Please help me solve this issue as I am not able to code further.
Thanks in advance!
I was trying to solve the issue in python command line but now I tried the code on Jupyter notebook and wrote: parts = video.split('/')
The code is working properly now.
Change it to
parts = os.path.split(video)