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

TLS/SSL #602

Open manishbiyani opened 4 years ago

manishbiyani commented 4 years ago

Hi,

windows 10 64 bits Python 3.7.6 Youtube-dl>=2018.06.18 I am getting following error: WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

Traceback (most recent call last): File "c:\users\manis\anaconda3\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "c:\users\manis\anaconda3\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\manis\anaconda3\Scripts\edx-dl.exe__main__.py", line 7, in File "c:\users\manis\anaconda3\lib\site-packages\edx_dl\edx_dl.py", line 1005, in main headers = edx_get_headers() File "c:\users\manis\anaconda3\lib\site-packages\edx_dl\edx_dl.py", line 430, in edx_get_headers 'X-CSRFToken': _get_initial_token(EDX_HOMEPAGE), File "c:\users\manis\anaconda3\lib\site-packages\edx_dl\edx_dl.py", line 167, in _get_initial_token opener.open(url) File "c:\users\manis\anaconda3\lib\urllib\request.py", line 525, in open response = self._open(req, data) File "c:\users\manis\anaconda3\lib\urllib\request.py", line 548, in _open 'unknown_open', req) File "c:\users\manis\anaconda3\lib\urllib\request.py", line 503, in _call_chain result = func(*args) File "c:\users\manis\anaconda3\lib\urllib\request.py", line 1389, in unknown_open raise URLError('unknown url type: %s' % type) urllib.error.URLError: I tried few things like internet security options (revocation of certificate, add website trusted etc) nothing worked. It has worked in the past