Sunday, 15 September 2013

python - SSL InsecurePlatform error when using Requests package -


I'm using Python 2.7.3 and the requests. I installed the request through PIP I believe that this is the latest version. I am running on Debian VG.

I have used the requests many times and have never faced this problem, but it seems that when the https requests are sent to requests I unsafe leaflet Get an exception.

In the error urllib3 is mentioned, but I do not have this installed. I had installed it to check whether it solves the error, but it was not.

  /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/use/ssl_.py:79: Unsafe Playform Warning: A True SSLContext object is not available . This urllib3 prevents proper SSL configuration and some SSL connections may fail. For more information, see https://urlib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.  

Any idea why I'm getting this? I have checked the docs, as specified in the error message, but urlib3 is asking to import and can either disable the alert, or provide a certificate.

No comments:

Post a Comment