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

FileNotFoundError: [WinError 2] The system cannot find the file specified #638

Closed yomoko closed 3 years ago

yomoko commented 3 years ago

This is the error I get, Why is that? I used the command python udemy-dl.py course link and I typed correctly. Some courses can be d/led, but will be stopped half way, some can't be d/led completely as this case.

Traceback (most recent call last):
  File "udemy-dl.py", line 650, in <module>
    main()
  File "udemy-dl.py", line 634, in main
    skip_hls_stream=args.skip_hls_stream,
  File "udemy-dl.py", line 371, in course_download
    quality,
  File "udemy-dl.py", line 94, in download_lecture
    callback=self.show_progress,
  File "F:\Python\udemy-dl-1.1\udemy\shared.py", line 137, in download
    retVal = FFMPeg(None, self.url, self.token, temp_filepath).download()
  File "F:\Python\udemy-dl-1.1\udemy\ffmpeg.py", line 175, in download
    command, stdout=subprocess.PIPE, stderr=subprocess.PIPE
  File "C:\programdata\Anaconda3\lib\subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "C:\programdata\Anaconda3\lib\subprocess.py", line 1178, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
r0oth3x49 commented 3 years ago

never tested with anaconda so i can't help much here, try to use it directly with python installation instead and let me know. you can also try --skip-hls