sageRegina: Mac OS, SageMath, and SSL

Symptom

If you receive this message

    pip is configured with locations that require TLS/SSL,
    however the ssl module in Python is not available.


when running

    sage -pip install sageRegina

it is because recent versions of SageMath do not support SSL properly under Mac OS.

Fix

You can install the necessary SSL libraries according to sage-support as follows:

    sage -i openssl
    sage -i -f python2
    sage -i pyopenssl

    sage -pip install sageRegina


This appears to be broken though under Mac OS Sierra (10.12.1) and Xcode 8.2.1 with Sage 7.4 and 7.5.1 (fixed though in Sage 7.6). Thanks to Saul Schleimer for reporting this. See discussion.
And many thanks to Apple for making our lives more complicated by breaking C header files! We still love you, just much less.

Workaround if fix fails

You can instead use

    sage -pip install http://sageRegina.unhyperbolic.org/sageRegina-5.1+1.tar.gz --log reginaInstall.log

to use ordinary HTTP instead of HTTPS which is required by pypi.