tuomaskivioja / 3-Simple-Python-Projects

160 stars 95 forks source link

i am not able to run the youtube downloader program.It is showing error #2

Open sunkarisukesh opened 1 year ago

sunkarisukesh commented 1 year ago

Screenshot (264)

RubenMont90 commented 1 year ago

Screenshot (264) not sure if still relevant but I've encountered the same issue, and managed to fix it by adding an extra backslash, in your case would work with this path: "C:\\Users\\sukesh\\Desktop".

coder-gamerz commented 1 year ago

you can also add 'r' right before the path string

azeemprogrammer commented 11 months ago

Yes, I have modified this old script, and it works Perfectly. As for why the old code was not working, the error you encountered, IndexError: list index out of range, was because you were trying to access argv[1] to get the YouTube URL from the command-line arguments

Nandini1071 commented 6 months ago

is this issue still open ?

dayajiji commented 5 months ago

I solved this problem by putting (0) instead of (1) and also inverting the slash and it worked Captura de tela 2024-04-18 173707