Notebook OpenSSL dependency

52 views
Skip to first unread message

Kiran Kedlaya

unread,
Jul 17, 2021, 6:07:21 PM7/17/21
to sage-devel
I'm building Sage 9.4beta4 on an Ubuntu 21.04 system, and the build superficially looks fine until I try to start Sage in notebook mode:

Traceback (most recent call last):
  File "/home/kedlaya/sage/local/lib/python3.9/site-packages/sage/repl/ipython_kernel/install.py", line 269, in have_prerequisites
    from notebook.notebookapp import NotebookApp
ModuleNotFoundError: No module named 'notebook'

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 presume this is an issue because Sage is using my systemwide Python (3.9.5) rather than building its own. Anyone know what Ubuntu package provides the appropriate dependency? Better yet, why isn't the configure script checking for this?

Kiran

Matthias Koeppe

unread,
Jul 17, 2021, 7:13:35 PM7/17/21
to sage-devel
This has most likely nothing to do with openssl, despite the "helpful" message issued by the script src/bin/sage-notebook

Kiran Kedlaya

unread,
Jul 17, 2021, 7:47:45 PM7/17/21
to sage-devel
My guess is the Sage build was somehow incomplete, I did a fresh rebuild and the issue went away.

If I'm able to reproduce this I'll post again...

Dima Pasechnik

unread,
Jul 18, 2021, 3:52:40 AM7/18/21
to sage-devel
There is a way to use notebook from the system, already in 9.3.
See https://doc.sagemath.org/html/en/installation/launching.html#setting-up-sagemath-as-a-jupyter-kernel-in-an-existing-jupyter-notebook-or-jupyterlab-installation
This doc was added in https://trac.sagemath.org/ticket/30476

IMHO this should become the default way to use jupyter.
> --
> 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/1f24c316-dfd5-47bd-9b7e-00efb4502149n%40googlegroups.com.

Matthias Koeppe

unread,
Aug 13, 2021, 2:50:59 PM8/13/21
to sage-devel
https://trac.sagemath.org/ticket/29291 changes the handling of import errors in "sage-notebook", needs review
Reply all
Reply to author
Forward
0 new messages