-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error [SSL: CERTIFICATE_VERIFY_FAILED] - Python 2.7.9 #176
Comments
Got something similar: handshake failure
And here is how the request looked like {
'_Request__r_type': '//www.coursera.org/login?course_id=974076&r=https%3A%2F%2Fclass.coursera.org%2Fdesignbiz-002%2Flecture&user_action=class&topic_name=Design%20Thinking%20for%20Business%20Innovation',
'_Request__original': 'https: //www.coursera.org/login?course_id=974076&r=https%3A%2F%2Fclass.coursera.org%2Fdesignbiz-002%2Flecture&user_action=class&topic_name=Design%20Thinking%20for%20Business%20Innovation',
'data': None,
'_tunnel_host': None,
'host': 'www.coursera.org',
'origin_req_host': 'class.coursera.org',
'headers': {
},
'_Request__fragment': None,
'timeout': <objectobjectat0x7feb545070a0>,
'_Request__r_host': '/login?course_id=974076&r=https%3A%2F%2Fclass.coursera.org%2Fdesignbiz-002%2Flecture&user_action=class&topic_name=Design%20Thinking%20for%20Business%20Innovation',
'unredirected_hdrs': {
'Host': 'www.coursera.org',
'Cookie': '__204u=123XYZ',
'User-agent': 'Python-urllib/2.7'
},
'unverifiable': True,
'type': 'https',
'port': None,
'redirect_dict': {
'https: //class.coursera.org/designbiz-002/lecture': 1,
'https: //www.coursera.org/login?course_id=974076&r=https%3A%2F%2Fclass.coursera.org%2Fdesignbiz-002%2Flecture&user_action=class&topic_name=Design%20Thinking%20for%20Business%20Innovation': 1
}
} |
|
I had this issue on OS X 10.10.2, Python 2.7.6 and OpenSSL 0.9.8zc, coursera-dl version 2.0.2. I fixed this handshaking issue by:
Reference:
|
@david-solis, are you on the mechanize branch or the requests branch? I think the official one is mechanize (since there were download problems with requests) |
On windows, I was able to fix this by upgrading to Python 2.7.9, which has ssl3 disabled for POODLE. |
Hm... Running python 2.7.9 (from Ubuntu Vivid via Docker) fixes the problem under Linux |
upgrading to 2.7.9 fixed the issue on OSX 10.10, too. |
it also works for win7.
upgrading to 2.7.9 fixed the issue on OSX 10.10, too. — |
Hi Sorry for the silly question, I am a novice in both Ubuntu and Python! |
Upgrading to Python 2.7.9 on my Yosemite system didn't fix it for me. I've also upgraded OpenSSL to 1.0.2a and installed the Cryptography package, but still no dice. Any ideas? Rubens-MacBook-Pro:Coursera Lectures ruben$ python -V Rubens-MacBook-Pro:Coursera Lectures ruben$ openssl version -a |
vagrant up ubuntu-15.04? |
Here's my info, @rubenve , in case it helps. OSX 10.10.2
I installed python through homebrew, so maybe that had something to do with it:
(homebrew installed openssl 1.0.2a-1, as well, but openssl version -a gives I run everything in virtualenvs, but here are my versions of coursera-dl dependencies:
Hopefully something in here will help. |
@danmbox I could do that, but I prefer getting it to work natively. @roncanepa Thanks! That did end up helping me. I've just unstalled python 2.7 that shipped with OSX. Then install python 2.7.9 through homebrew. I then reverted my openssl version back to 0.9.8zf, reinstalled coursera-dl and then it worked. Much appreciated! |
Using Pyhton 2.7.9 on Windows7 after using the following command:
coursera-dl -u [email protected] -p XXX -d C:\Coursera algs4partI-007
I receive the following error message:
I tried with different courses, and the other files except for the videos do download, but neither of the videos does.
I am new to using Python, so I would be really grateful if you could walk me through the solution step-by-step.
Thank you
The text was updated successfully, but these errors were encountered: