Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

SageMath 9.2 Mac OS Catalina Jupiter will not launch no "_ssl"

I just installed SageMath 9.2 on a new Mac. It does not launch Jupiter either via the App or via terminal launch. It states there is a "ModuleNotFoundError: No module named '_ssl' " error as discussed below, but I am not sure the cause. I have applied the other recommendations listed via other posts.

Below is what happens at via the command line launch. Any suggestions? When I try yo rebuild Python (run "sage -f python3") it gets an error with SciPy installation.

Thank you

$ ./sage -n ┌────────────────────────────────────────────────────────────────────┐ │ SageMath version 9.2, Release Date: 2020-10-24 │ │ Using Python 3.8.5. Type "help()" for help. │ └────────────────────────────────────────────────────────────────────┘ Please wait while the Sage Jupyter Notebook server starts... Traceback (most recent call last): File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/sage/repl/ipython_kernel/install.py", line 307, in have_prerequisites from notebook.notebookapp import NotebookApp File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/notebook/notebookapp.py", line 66, in <module> from tornado import httpserver File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/tornado/httpserver.py", line 29, in <module> import ssl File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/ssl.py", line 98, in <module> import _ssl # if we can't import it, let the error propagate ModuleNotFoundError: No module named '_ssl'

The Jupyter notebook requires ssl, even if you do not use https. Install the openssl development packages in your system and then rebuild Python (sage -f python3).

click to hide/show revision 2
retagged

SageMath 9.2 Mac OS Catalina Jupiter will not launch no "_ssl"

I just installed SageMath 9.2 on a new Mac. It does not launch Jupiter either via the App or via terminal launch. It states there is a "ModuleNotFoundError: No module named '_ssl' " error as discussed below, but I am not sure the cause. I have applied the other recommendations listed via other posts.

Below is what happens at via the command line launch. Any suggestions? When I try yo rebuild Python (run "sage -f python3") it gets an error with SciPy installation.

Thank you

$ ./sage -n ┌────────────────────────────────────────────────────────────────────┐ │ SageMath version 9.2, Release Date: 2020-10-24 │ │ Using Python 3.8.5. Type "help()" for help. │ └────────────────────────────────────────────────────────────────────┘ Please wait while the Sage Jupyter Notebook server starts... Traceback (most recent call last): File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/sage/repl/ipython_kernel/install.py", line 307, in have_prerequisites from notebook.notebookapp import NotebookApp File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/notebook/notebookapp.py", line 66, in <module> from tornado import httpserver File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/tornado/httpserver.py", line 29, in <module> import ssl File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/ssl.py", line 98, in <module> import _ssl # if we can't import it, let the error propagate ModuleNotFoundError: No module named '_ssl'

The Jupyter notebook requires ssl, even if you do not use https. Install the openssl development packages in your system and then rebuild Python (sage -f python3).

SageMath 9.2 on Mac OS Catalina Jupiter will not launch launch: no "_ssl"module named '_ssl'

I just installed SageMath 9.2 on a new Mac. It does not launch Jupiter either via the App or via terminal launch. It states there is a "ModuleNotFoundError: No module named '_ssl' " error as discussed below, but I am not sure the cause. I have applied the other recommendations listed via other posts.

Below is what happens at via the command line launch. Any suggestions? When I try yo rebuild Python (run "sage -f python3") it gets an error with SciPy installation.

Thank you

$ ./sage -n
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.2, Release Date: 2020-10-24                     │
│ Using Python 3.8.5. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
Please wait while the Sage Jupyter Notebook server starts...
Traceback (most recent call last):
  File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/sage/repl/ipython_kernel/install.py", line 307, in have_prerequisites
    from notebook.notebookapp import NotebookApp
  File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/notebook/notebookapp.py", line 66, in <module>
    from tornado import httpserver
  File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/tornado/httpserver.py", line 29, in <module>
    import ssl
  File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/ssl.py", line 98, in <module>
    import _ssl             # if we can't import it, let the error propagate
ModuleNotFoundError: No module named '_ssl'

'_ssl'

The Jupyter notebook requires ssl, even if you do not use https. Install the openssl development packages in your system and then rebuild Python (sage -f python3).