notebok server on ubuntu
On ubuntu (versions from 12.04 to 14.04) I got the following error, when I started the notebook server with secure=True parameter:
RuntimeError Traceback (most recent call last) <ipython-input-3-3d6cf59ae321> in <module>() ----> 1 notebook(secure=True)
/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/misc/lazy_import.so in sage.misc.lazy_import.LazyImport.__call__ (build/cythonized/sage/misc/lazy_import.c:3000)()
/usr/lib/sagemath/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/notebook/notebook_object.py in __call__(self, args, *kwds) 226 """ 227 def __call__(self, args, *kwds): --> 228 return self.notebook(args, *kwds) 229 230 notebook = run_notebook.notebook_run
/usr/lib/sagemath/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/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) 475 import OpenSSL 476 except ImportError: --> 477 raise RuntimeError("HTTPS cannot be used without pyOpenSSL" 478 " installed. See the Sage README for more information.") 479
RuntimeError: HTTPS cannot be used without pyOpenSSL installed. See the Sage README for more information.
SOme remarks: First: this server was a live ~6.1* server using secure=True parameter (we used it over https). After some updating of ubuntu it crashed. Second: Since this accident I tried some new versions of Ubuntu and later versions of Sage, but the error remain same. Third: otherwise the program runs - yet the notebook server too (without SSL)
do you have Sage packages openssl and pyopenssl installed?
Yes, they are installed. I found, that this is not ubuntu problem, the effect is same on arch linux.
Do you have certtool installed (on debian it's in the package gnutls-bin)? I tried doing notebook(secure=True) on my system, and it complained about absence of certtool. After installing it it worked.