Sage Installation Issues on mac

34 views
Skip to first unread message

Masoud Soroush

unread,
Jan 5, 2021, 8:01:37 PM1/5/21
to sage-...@googlegroups.com
Hello Sage Team,

I am contacting you to ask for help in regard to Sage installation on my macBook pro. I would like to install Sage on my macOS Big Sur (version 11.1) with Intel Core i7. Among the options for installation, I chose SageMath-9.2.app.dmg (I tried the other 2 other options, but I ran into even more severe issues). After dragging SageMath into the Applications folder, a shortcut is created. When I execute SageMath through the created shortcut, a Safari browser is opened for the Jupyter notebook asking to wait until Jupyter initiates. But shortly after, I get a message that Sage cannot start, and I am referred to the log file which has been copy pasted in below:

***************************************************************************************************

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'
┌────────────────────────────────────────────────────────────────────┐
│ 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...

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).

**********************************************************************************************

I have installed "openssl" package through anaconda, but it still seems to be an issue here. If I just go ahead and run "./sage -f python3" (as the above log file suggests at the end), after a long compilation, I get an Error 1 message (please see the attached file). Now not only do I get the Jupyter issue resolved, I will also lose the ability to run Sage through Terminal! Could you kindly look into this issue and instruct how to proceed? I really hope for jupyter notebook integrated solution, as programming in terminal is not convenient.

Thank you for your assistance,
Masoud
python3-3.8.5.log

Nathan Dunfield

unread,
Jan 5, 2021, 10:29:28 PM1/5/21
to sage-devel
Masoud,


Best,

Nathan

Masoud Soroush

unread,
Jan 5, 2021, 11:41:55 PM1/5/21
to sage-...@googlegroups.com
Hello Nathan,

Thank you so much for your tip! It indeed solved the problem, and I can now run Sage commands in Jupyter environment! Thank you again.

Best,
Masoud

--
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/ace51625-735a-4ad2-8d7e-76a8af7aac68n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages