sagemath 9.0 for MacOS is not linked with SSL

77 views
Skip to first unread message

Junwei Wang

unread,
Mar 2, 2020, 5:21:05 AM3/2/20
to sage-devel
(sage-sh) junwei@jwang-imac:~/git/tool_whitebox-engine/web_service/services/api$ which pip
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/pip
(sage-sh) junwei@jwang-imac:~/git/tool_whitebox-engine/web_service/services/api$ pip install tqdm
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting tqdm
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/tqdm/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/tqdm/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/tqdm/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/tqdm/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/tqdm/
  Could not fetch URL https://pypi.org/simple/tqdm/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/tqdm/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  Could not find a version that satisfies the requirement tqdm (from versions: )
No matching distribution found for tqdm
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

Nathan Dunfield

unread,
Mar 2, 2020, 11:27:33 PM3/2/20
to sage-devel
Unfortunately, no recent SageMath binary for macOS comes with a working SSL lib.  Two fixes:

1) Download "mac_sage9.tgz" from 


unpack, and follow the instructions.

2) Assuming you have the XCode command line tools installed, the following usually works to enable SSL on SageMath 9.0:

/Applications/SageMath-9.0.app/sage -i openssl
/Applications/SageMath-9.0.app/sage -f python3

Note the second command will take quite some time to run as it will recompile much of the Sage library proper.

Best,

Nathan

Junwei Wang

unread,
Mar 3, 2020, 3:34:34 AM3/3/20
to sage-...@googlegroups.com
Would you like to put one of the option in Homebrew?

--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/b596fdb1-850b-4742-9700-555d9d32149c%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages