When I try to load “notebook()” from a terminal running sage, I get the following error"
sage: notebook()
/usr/lib/python3.7/site-packages/werkzeug/datastructures.py:16: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import Container, Iterable, MutableSet
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-b5959bb24428> in <module>()
----> 1 notebook()
/usr/lib64/python3.7/site-packages/sage/misc/lazy_import.pyx in sage.misc.lazy_import.LazyImport.__call__ (build/cythonized/sage/misc/lazy_import.c:3648)()
352 True
353 """
--> 354 return self.get_object()(*args, **kwds)
355
356 def __repr__(self):
/usr/lib64/python3.7/site-packages/sagenb/notebook/notebook_object.py in __call__(self, *args, **kwds)
241 """
242 def __call__(self, *args, **kwds):
--> 243 return self.notebook(*args, **kwds)
244
245 notebook = run_notebook.notebook_run
/usr/lib64/python3.7/site-packages/sagenb/notebook/run_notebook.py in notebook_run(self, directory, port, interface, port_tries, secure, reset, accounts, openid, server_pool, ulimit, timeout, doc_timeout, upload, automatic_login, start_path, fork, quiet, server, profile, subnets, require_login, open_viewer, address)
532 # if none use defaults
533
--> 534 nb = notebook.load_notebook(directory)
535
536 directory = nb._dir
/usr/lib64/python3.7/site-packages/sagenb/notebook/notebook.py in load_notebook(dir, interface, port, secure, user_manager)
1837
1838 dir = make_path_relative(dir)
-> 1839 nb = Notebook(dir)
1840 nb.interface = interface
1841 nb.port = port
/usr/lib64/python3.7/site-packages/sagenb/notebook/notebook.py in __init__(self, dir, user_manager)
159 # Set up email notification logger
160 import logging
--> 161 from sagenb.notebook.notification import logger, TwistedEmailHandler
162 logger.addHandler(TwistedEmailHandler(self.conf(), logging.ERROR))
163 # also log to stderr
/usr/lib64/python3.7/site-packages/sagenb/notebook/notification.py in <module>()
2 import logging
3 from .sage_email import default_email_address
----> 4 from .smtpsend import send_mail
5 from socket import getfqdn
6
/usr/lib64/python3.7/site-packages/sagenb/notebook/smtpsend.py in <module>()
19 Bobby Moretti
20 """
---> 21 from twisted.mail import smtp, relaymanager # problematic with python 3
22 from email.mime.base import MIMEBase
23 from email.mime.multipart import MIMEMultipart
ImportError: cannot import name 'relaymanager' from 'twisted.mail' (unknown location)
sage: