coursera-dl / edx-dl

A simple tool to download video lectures from edx.org (and other openedx sites)
GNU Lesser General Public License v3.0
1.92k stars 638 forks source link

ERROR: Did not get any data blocks. returned non-zero exit status 1. Any Solution? #645

Open diamneth opened 3 years ago

diamneth commented 3 years ago

🚨Please review the Troubleshooting section before reporting any issue. Don't forget also to check the current issues to avoid duplicates.

Subject of the issue

ERROR: Did not get any data blocks. returned non-zero exit status 1

Your environment

Steps to reproduce

Tell us how to reproduce this issue. Please provide us the course URL, and the specific subsection or unit if possible.

Expected behaviour

download the full course.

Actual behaviour

[download] Got server HTTP error: Downloaded 72877 bytes, expected 7659720 bytes. Retrying (attempt 1 of 10)...

ERROR: Did not get any data blocks Traceback (most recent call last): File "c:\users-\appdata\local\programs\python\python38-32\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users-\appdata\local\programs\python\python38-32\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users-\AppData\Local\Programs\Python\Python38-32\Scripts\edx-dl.exe__main__.py", line 7, in File "c:\users-\appdata\local\programs\python\python38-32\lib\site-packages\edx_dl\edx_dl.py", line 1073, in main download(args, selections, filtered_units, headers) File "c:\users-\appdata\local\programs\python\python38-32\lib\site-packages\edx_dl\edx_dl.py", line 849, in download download_unit(unit, args, target_dir, filename_prefix, File "c:\users-\appdata\local\programs\python\python38-32\lib\site-packages\edx_dl\edx_dl.py", line 811, in download_unit download_video(unit.videos[0], args, target_dir, filename_prefix, File "c:\users-\appdata\local\programs\python\python38-32\lib\site-packages\edx_dl\edx_dl.py", line 794, in download_video skip_or_download(youtube_downloads, headers, args) File "c:\users-\appdata\local\programs\python\python38-32\lib\site-packages\edx_dl\edx_dl.py", line 781, in skip_or_download f(url, filename, headers, args) File "c:\users-\appdata\local\programs\python\python38-32\lib\site-packages\edx_dl\edx_dl.py", line 707, in download_url download_youtube_url(url, filename, headers, args) File "c:\users-\appdata\local\programs\python\python38-32\lib\site-packages\edx_dl\edx_dl.py", line 754, in download_youtube_url execute_command(cmd, args) File "c:\users-\appdata\local\programs\python\python38-32\lib\site-packages\edx_dl\utils.py", line 42, in execute_command raise e File "c:\users-\appdata\local\programs\python\python38-32\lib\site-packages\edx_dl\utils.py", line 37, in execute_command subprocess.check_call(cmd) File "c:\users-\appdata\local\programs\python\python38-32\lib\subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['youtube-dl', '--ignore-config', '-o', 'Downloaded\Data_Analysis_for_Social_Scientists\11-Module_10-_Endogeneity_Instrumental_Variables_Experimental_Design_and_Data_Visualization\36-%(title)s-%(id)s.%(ext)s', '-f', 'mp4', 'https://youtube.com/watch?v=qkoi2F2mnWE']' returned non-zero exit status 1.

aaannndddyyy commented 3 years ago

I've run into this one too. And a 500.