After upgrading de notebook indicates the following error:

sage: notebook()
The notebook files are stored in: sage_notebook.sagenb
┌────────────────────────────────────────────────┐
│                                                │
│ Open your web browser to http://localhost:8080 │
│                                                │
└────────────────────────────────────────────────┘
Executing twistd  --pidfile="sage_notebook.sagenb/sagenb.pid" -ny 
"sage_notebook.sagenb/twistedconf.tac"
Unhandled Error
Traceback (most recent call last):
  File 
"/usr/lib/python3.5/site-packages/Twisted-16.2.0-py3.5.egg/twisted/application/app.py",
 
line 643, in run
    runApp(config)
  File 
"/usr/lib/python3.5/site-packages/Twisted-16.2.0-py3.5.egg/twisted/scripts/twistd.py",
 
line 25, in runApp
    _SomeApplicationRunner(config).run()
  File 
"/usr/lib/python3.5/site-packages/Twisted-16.2.0-py3.5.egg/twisted/application/app.py",
 
line 374, in run
    self.application = self.createOrGetApplication()
  File 
"/usr/lib/python3.5/site-packages/Twisted-16.2.0-py3.5.egg/twisted/application/app.py",
 
line 439, in createOrGetApplication
    application = getApplication(self.config, passphrase)
--- <exception caught here> ---
  File 
"/usr/lib/python3.5/site-packages/Twisted-16.2.0-py3.5.egg/twisted/application/app.py",
 
line 450, in getApplication
    application = service.loadApplication(filename, style, passphrase)
  File 
"/usr/lib/python3.5/site-packages/Twisted-16.2.0-py3.5.egg/twisted/application/service.py",
 
line 411, in loadApplication
    passphrase)
  File 
"/usr/lib/python3.5/site-packages/Twisted-16.2.0-py3.5.egg/twisted/persisted/sob.py",
 
line 223, in loadValueFromFile
    codeObj = compile(data, filename, "exec")
builtins.SyntaxError: Missing parentheses in call to 'print' 
(twistedconf.tac, line 21)


Failed to load application: Missing parentheses in call to 'print' 
(twistedconf.tac, line 21)

---------------------------------------------------------------------------
error                                     Traceback (most recent call last)
<ipython-input-1-3728cb3d7c7d> in <module>()
----> 1 notebook()

/usr/share/sage/source/sage/misc/lazy_import.pyx in 
sage.misc.lazy_import.LazyImport.__call__ 
(/build/sagemath/src/sage-7.2/src/build/cythonized/sage/misc/lazy_import.c:3629)()
    384             True
    385         """
--> 386         return self._get_object()(*args, **kwds)
    387 
    388     def __repr__(self):

/usr/lib/python2.7/site-packages/sagenb/notebook/notebook_object.pyc in 
__call__(self, *args, **kwds)
    237     """
    238     def __call__(self, *args, **kwds):
--> 239         return self.notebook(*args, **kwds)
    240 
    241     notebook = run_notebook.notebook_run

/usr/lib/python2.7/site-packages/sagenb/notebook/run_notebook.pyc 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)
    638     os.chdir(cwd)
    639     if e == 256:
--> 640         raise socket.error
    641 
    642 def get_admin_passwd():

error: 

This happens with other notebooks.


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to