-
Notifications
You must be signed in to change notification settings - Fork 6
Older python 2.7 setup
John Bradley edited this page Jan 5, 2017
·
10 revisions
For python 2 the preferred version is 2.7.9+ as it contains a functional ssl module.
In testing the Redhat patched python version 2.7.8 works without modification.
This following error can occur if you are using a python < 2.7.9 with an unpatched ssl module:
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.
- Official guide to fix the ssl module: https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl-py2 (in practice I have seen this fail to install)
- Stack overflow question with some options to try: http://stackoverflow.com/questions/29134512/insecureplatformwarning-a-true-sslcontext-object-is-not-available-this-prevent.
You may need superuser(root) to install additional dependancies needed by these fixes.