-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[ssl-issues] sslv3 alert handshake failure on Debian System #330
Comments
What is the version of your Python? It should work on v2.7.9, v3.2 and above. |
The version of the python Debian package is 2.7.3-4+deb7u1. It is the current version in Debian Wheezy. But soon Debian Jessie will become stable which means that I (as well as many other Debian users) will upgrade and then have python 2.7.9.
|
Hi, Matthias. On Apr 04 2015, MatthiasJaeger wrote:
Oh, super nice. I'll take that as a compliment! :)
OK. I will see what I can do. I do have interest in having even older So you said that substituting AUTH_URL_V3 with AUTH_URL makes things work Do you happen to use any on-demand course or only regular ones? I'm just Regards, Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA |
I have modified my local copy to use It would be nice to have more people testing these changes before I go ahead and commit a change to our repository. Thanks, Rogério Brito. |
Hi. I have a really hard time getting coursera-dl to work again and I'm running out of ideas.
Please, tell me what to do in order to resume downloading my 70+ courses ! |
Please tell me if there is anything else I can test to help you. I originally tested it on a normal course and a final project. Now I also tried testing it for an on-demand course. It shows the same problem, but even after substituting
The test and output with
While set to
|
Hi. On Apr 05 2015, Cxrille wrote:
No problems, but a better options would have been to use Debian testing
Is this the accessible version of Python in your
Here we have a problem: the coursera-dl that you downloaded using Python is In fact, it is almost always a bad idea to mess around with system-wide In my particular case (but I know that I am an exception), I use
What do you get if you fire up a python interpreter and import requests,
OK, a quick and dirty way that won't fix the situation that you already have
This will create an environment that has no conflicts with your other Please let me know if this fixes your immediate needs. Hope this helps, Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA |
Well, debian sid was my first love 10-15 years ago ! Without virtualenv :
With virtualenv (and git clone, pip install, ...):
Python 2.7.6 ??? I guess I messed something up. |
Hi. On Apr 06 2015, Cxrille wrote:
If you want to, just point your sources.list file to testing instead of
This is likely to present you with some problems. You should uninstall it,
No, that's simply that the virtualenv picked up the Python 2.7.6 But before you do that, can you please take a moment while you still have This is similar to my change in
Hope all this helps, Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA |
virtualenv + python 2.7.6 + PROTOCOL_SSLv23 :
I tried to set a python 2.7.9 virtualenv with -p, but it failed (ImportError: cannot import name HTTPSHandler). |
Hi. On Apr 06 2015, Cxrille wrote:
Please, install also the package urllib3 inside the virtual environment:
If that's not sufficient, then try to install the following packages:
The last one will install pyOpenSSL which will require some compilation. Please, post back the results. Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA |
urlib3 is not sufficient. So... I will reinstall Mint then come back later for python-pyasn1 and ndg-httpsclient. This time, no more sudo pip install either! |
It works with urllib3 + pyasn1 + ndg-httpsclient ! Thank you ! |
Coursera-dl and python novice here and I'm getting a similar |
You don't need to upgrade. From a fresh mint (ubuntu) install with python 2.7.6 :
(No need to edit cookies.py) |
Hi, @Cxrille. On Apr 07 2015, Cxrille wrote:
So you are now able to use everything (after installing said packages) with I am going to push a change so that the extra packages are present in the I guess that the most important one is pyOpenSSL, which, unfortunately, is Perhaps for people using Debian/Ubuntu/Linux Mint, all the virtual env dance
Perhaps the crucial part is to have a recent enough I would accept a patch/pull request to the documentation (README.md) that is Regards, Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA |
Had same problem, @Cxrille's solution worked w/o problem 👍 |
@marjinal1st. Excellent. When the new versions of Ubuntu and Debian get released this month, the installation will be much simpler as a newer version of Python will be available. |
@Cxrille's solution worked without any problems on linux mint 17.1 with python 2.7.6 |
Had the same issue. @Cxrille's solution worked like a charm. Thanks! Win7 Python 2.7.3 |
There is another approach using python3.
This works for me. |
yes!! I definitely got it working with @Cxrille solution for python version 2.7.6 |
@Cxrille's instructions not working here (Ubuntu 14.04 64 bit, python 2.7.6). I'm getting the ResponseNotReady error referenced in #348 (even if I try --clear-cache, logging out, replacing AUTH_URL_V3, or installing in a @rihbyne does it still work for you or is it broken now? |
@zhaozhao Awesome. Switching to Python 3 solved it for me as well. |
Hi, Andrea. On Jun 01 2015, Andrea Pravato wrote:
Excellent. I am really leaning towards recommending that people move on to
Ooops. The coursera-dl that you get with pip is a different project than
Anyway, for Debian-derived distributions, things may be much easier once the Regards, Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA |
@zhaozhao's solution (python3) worked for me, too. I was unable to make it work with 2.7.6 in Ubuntu 14.04. |
Hi there. Is anybody else experiencing this bug? If not, then I'd like to close this bug. Otherwise, I would like to:
All this with an eye to close this bug and concentrate discussion on issue #377, to make things simpler. I appreciate any help that I can have here, so that we build something that works for as many users as possible (and this includes us). Thanks, Rogério. |
Python 2.7.6 @ Ubuntu 14.04 Starting new HTTPS connection (1): class.coursera.org /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning Starting new HTTPS connection (1): www.coursera.org /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning Traceback (most recent call last): File "/usr/local/bin/coursera-dl", line 9, in load_entry_point('coursera==0.0.3', 'console_scripts', 'coursera-dl')() File "/usr/local/lib/python2.7/dist-packages/coursera/coursera_dl.py", line 944, in main result = download_class(args, class_name) File "/usr/local/lib/python2.7/dist-packages/coursera/coursera_dl.py", line 842, in download_class username=args.username, password=args.password) File "/usr/local/lib/python2.7/dist-packages/coursera/cookies.py", line 337, in get_cookies_for_class get_authentication_cookies(session, class_name, username, password) File "/usr/local/lib/python2.7/dist-packages/coursera/cookies.py", line 160, in get_authentication_cookies login(session, username, password, class_name=class_name) File "/usr/local/lib/python2.7/dist-packages/coursera/cookies.py", line 115, in login headers=headers, allow_redirects=False) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 508, in post return self.request('POST', url, data=data, json=json, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 465, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 573, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 431, in send raise SSLError(e, request=request) requests.exceptions.SSLError: [Errno 1] _ssl.c:510: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure |
virtualenv -p python3 my-coursera it works |
Hi, has anyone an idea on how to solve the issue on Windows 10 64bit? thanks! ATTENTION! PLEASE READ THIS!The following error has just occurred:SSLError HTTPSConnectionPool(host='www.coursera.org', port=443): Max retries exceeded with url: /api/login/v3 (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_read_bytes', 'sslv3 alert handshake failure')],)",),))Please read instructions on how to fix this error here:https://github.com/coursera-dl/coursera-dl#sslerror-errno-1-_sslc504-error14094410ssl-routinesssl3_read_bytessslv3-alert-handshake-failure##################################################################### |
@rbrito
|
Sorry. I have no idea, as I don't have any Windows machine. I would suggest that you install a recent version of Python (e.g., Python 3.8), since it quite probably has all the "modern" pieces in place. Also, if you don't need Python 2 for any other project, I recommend that you get rid of Python 2, as it won't have any kind of support (including security, crypto algorithms and protocols etc.). |
After experiencing #323 I switched to your project as it seems to be better maintained and downloaded the master branch. The problem is not fixed for me. But if I replace "AUTH_URL_V3" by "AUTH_URL" in coockies.py, line 116 I can use the downloader.
Unmodified master branch output:
The text was updated successfully, but these errors were encountered: