I am trying to get Sage notebook working over my server so that students can use it online. I found these two pages:
http://groups.google.com/group/sage-support/browse_thread/thread/b151811379e2b3c0 http://groups.google.com/group/sage-support/browse_thread/thread/b6d99cac522a3cd9/6b99c90b85b68d80?lnk=gst&q=stan+server#6b99c90b85b68d80 But when I type notebook(address="ipaddress", port=8100, secure=True) into Sage, I get the following output: The notebook files are stored in: /home/user/.sage//sage_notebook In order to use an SECURE encrypted notebook, you must first run notebook.setup(). Now running notebook.setup() Using dsage certificates. ERROR: An unexpected error occurred while tokenizing input The following traceback may be corrupted or invalid The error message is: ('EOF in multi-line statement', (5, 0)) --------------------------------------------------------------------------- NameError Traceback (most recent call last) /home/user/.sage/temp/my_computer/27000/ _home_user__sage_init_sage_0.py in <module>() /usr/local/sage-4.0/local/lib/python2.5/site-packages/sage/server/ notebook/notebook_object.pyc in __call__(self, *args, **kwds) 163 """ 164 def __call__(self, *args, **kwds): --> 165 return self.notebook(*args, **kwds) 166 167 notebook = run_notebook.notebook_twisted /usr/local/sage-4.0/local/lib/python2.5/site-packages/sage/server/ notebook/run_notebook.pyc in notebook_twisted(self, directory, port, address, port_tries, secure, reset, accounts, require_login, server_pool, ulimit, timeout, open_viewer, sagetex_path, start_path, fork, quiet) 278 if open_viewer: 279 "Open viewer automatically isn't fully implemented. You have to manually open your web browser to the above URL." --> 280 return run(port) 281 282 /usr/local/sage-4.0/local/lib/python2.5/site-packages/sage/server/ notebook/run_notebook.pyc in run(port) 146 print "In order to use an SECURE encrypted notebook, you must first run notebook.setup()." 147 print "Now running notebook.setup()" --> 148 notebook_setup() 149 if not os.path.exists(private_pem) or not os.path.exists(public_pem): 150 print "Failed to setup notebook. Please try notebook.setup() again manually." /usr/local/sage-4.0/local/lib/python2.5/site-packages/sage/server/ notebook/run_notebook.pyc in notebook_setup(self) 39 print "Using dsage certificates." 40 dsage = os.path.join(DOT_SAGE, 'dsage') ---> 41 sage.dsage.all.dsage.setup() 42 shutil.copyfile(dsage + '/cacert.pem', private_pem) 43 shutil.copyfile(dsage + '/pubcert.pem', public_pem) NameError: global name 'sage' is not defined sage: Does anybody know what this error is and how to fix it? Thanks! --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
