Protocol setup error: SSL required

Collecting rsa==3.1.1 (from -r /racetrack/.requirements.txt (line 41)) eval (python -m virtualfish) Downloading rsa-3.1.1.tar.gz Complete output from command python setup.py egg_info: Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.10.tar.gz Traceback (most recent call last): File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 403: SSL is required 
+6
source share
4 answers

Solution: Go to the latest version of your library.

It all starts here, all of a sudden (October-2017), the Distutils team decided to cancel support for non-HTTPS requests, without worrying about breaking backward compatibility of earlier versions of numerous python libraries. A bit unprofessional, but hey it's the world of Python.

So, here is the fix, just go to the latest version of the library ( rsa==3.4.2 in my case) in any library ( nltk==3.2.5 , etc.)

Alternative solution: fork (or local copy) of the repo version and changing the http URL to https

However, note whether you are doing this while saving another project, since the dependency you are updating may not be compatible with the source library that the author intended, for example, in my context, rsa used in another library as a dependency. So the solution was to update the parent library so that this problem would automatically take care.

PS: To avoid confusion when building requirements.txt make entries only in the libraries that you really use, and not their and their dependencies. Pip will automatically resolve them. (DRY)

+9
source

Using easy_install instead of pip worked for me:

 easy_install funkload 

I tried pip install funkload with pip install funkload and got:

 Collecting funkload Using cached funkload-1.17.1.tar.gz Complete output from command python setup.py egg_info: Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz Traceback (most recent call last): ...<snip> urllib2.HTTPError: HTTP Error 403: SSL is required 

Since funkload dates back to 2011, the old easy_install version works.

0
source

Just easy_install rsa==3.1.1 will do the job.

0
source

The accepted answer did not work in my case (on older Raspbian), but providing the download URL using the command helped me, as described in this post:

 sudo pip install paho-mqtt -i https://pypi.python.org/simple 
0
source

Source: https://habr.com/ru/post/1273095/


All Articles