SSL issues raspberry pi
On a raspberry pi, with latest distribution of raspbian and all packages up-to-date, I'm getting an SSL error.
Execution and error:
root@raspberrypi:~# cloudprint
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:100: 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/cloudprint", line 9, in
How I installed:
root@raspberrypi:~# pip install cloudprint Downloading/unpacking cloudprint Downloading cloudprint-0.14.tar.gz Running setup.py egg_info for package cloudprint
Requirement already satisfied (use --upgrade to upgrade): argparse in /usr/lib/python2.7 (from cloudprint) Requirement already satisfied (use --upgrade to upgrade): pycups in /usr/local/lib/python2.7/dist-packages (from cloudprint) Requirement already satisfied (use --upgrade to upgrade): requests>=2.7.0 in /usr/local/lib/python2.7/dist-packages (from cloudprint) Installing collected packages: cloudprint Running setup.py install for cloudprint
Installing cloudprint script to /usr/local/bin
Successfully installed cloudprint Cleaning up...
Appranetly it doesn't affect others - I have no idea what's special about my setup. Please advise.
The URL in your failure report looks like it has the answers
First, it says that Python 2.7.9 or newer fixes this. Python2.7.10 is in the Raspbian repository, and the version referenced in stable is 2.7.9. So, upgrading to Jessie should fix this.
Alternatively, it says you should be able to work around this with 'pip install pyopenssl ndg-httpsclient pyasn1'. That sounds simpler.