r0oth3x49 / udemy-dl

A cross-platform python based utility to download courses from udemy for personal offline use.
MIT License
4.83k stars 1.19k forks source link

Error in downloading course 'Traceback (most recent call last):' #611

Closed mattdaspy closed 3 years ago

mattdaspy commented 3 years ago

Describe the bug When trying to download chapters from a course that I'm enrolled, it throws me an error. I can see the contents using --info and the connection works, but before the download starts I receive the following message:

Traceback (most recent call last): File "C:\Users\Matheus\Documents\GitHub\udemy-dl\udemy-dl.py", line 629, in main() File "C:\Users\Matheus\Documents\GitHub\udemy-dl\udemy-dl.py", line 599, in main udemy_obj.course_download( File "C:\Users\Matheus\Documents\GitHub\udemy-dl\udemy-dl.py", line 366, in course_download self.download_lecture( File "C:\Users\Matheus\Documents\GitHub\udemy-dl\udemy-dl.py", line 91, in download_lecture retval = lecture.download( File "C:\Users\Matheus\Documents\GitHub\udemy-dl\udemy\shared.py", line 137, in download retVal = FFMPeg(None, self.url, self.token, temp_filepath).download() File "C:\Users\Matheus\Documents\GitHub\udemy-dl\udemy\ffmpeg.py", line 174, in download with subprocess.Popen( File "C:\Users\Matheus\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 947, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\Matheus\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1416, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] The system cannot find the file specified

To Reproduce Steps to reproduce the behavior:

python udemy-dl.py https://www.udemy.com/course/web-completo -k cookie.txt -q 1080 --skip-sub --chapter-start 10 --chapter-end 24 -o 'D:\01 - Curso Desenvolvimento Web\'

Expected behavior Simply to download the chapters I needed from the course I enrolled.

Python Environment (please complete the following information):

jenovateurs commented 3 years ago

Hi @mattdaspy, I have the same issue, how did you solved it ?