python2.7 pip install fails with SSLError

Steven Smith steve.t.smith at gmail.com
Tue Mar 15 00:09:40 UTC 2022


I’m trying to update calendar-contacts-server to macOS 12.3. This requires installing a bunch of stuff with python2.7’s pip.

I’m hitting an SSLError at the command:

> /opt/local/bin/python2.7 -m pip install -I --user setuptools==18.5

Is there a way of pointing MacPorts python2.7 pip at a set of up-to-date CAs? [Say e.g. from curl-ca-bundle?]

Error:

> ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/69/9d/e6ff1608e4308ae7c544050b58926daa4bf7764e963c09cc9f9a0bcd3728/setuptools-18.5-py2.py3-none-any.whl (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)'),))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20220314/8b4914e5/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3898 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20220314/8b4914e5/attachment-0001.bin>


More information about the macports-dev mailing list