Ask Your Question
0

Cannot access notebook Mac OSX Lion

asked 2012-05-05 14:57:52 +0200

ramanath gravatar image

updated 2015-10-22 21:31:58 +0200

FrédéricC gravatar image

I downloaded sage-4.8-OSX-64bit-10.6-x86_64-Darwin-app.p0.dmg to my Mac OSX 10.7.3 (lion). I can start Sage from the terminal and do command line calculations, but when I say notebook() it gives me an error (traceback below). Same thing when I tried with the non-app version. It used to work fine when I was on Snow Leopard!

Traceback:

sage: notebook()
---------------------------------------------------------------------------
EOFError                                  Traceback (most recent call last)

/Users/ramanath/.sage/<ipython console> in <module>()

/Applications/sage/devel/sagenb/sagenb/notebook/notebook_object.pyc in __call__(self, *args, **kwds)
    215     """
    216     def __call__(self, *args, **kwds):
--> 217         return self.notebook(*args, **kwds)
    218 
    219     notebook = run_notebook.notebook_twisted

/Applications/sage/devel/sagenb/sagenb/notebook/run_notebook.pyc in notebook_twisted(self, directory, port, interface, address, port_tries, secure, reset, accounts, require_login, server_pool, ulimit, timeout, open_viewer, sagetex_path, start_path, fork, quiet, subnets)
    200         print '*' * 70
    201 
--> 202     nb = notebook.load_notebook(directory)
    203 
    204     directory = nb._dir

/Applications/sage/devel/sagenb/sagenb/notebook/notebook.pyc in load_notebook(dir, interface, port, secure)
   1798 
   1799     dir = make_path_relative(dir)
-> 1800     nb = Notebook(dir)
   1801     nb.interface = interface
   1802     nb.port = port

/Applications/sage/devel/sagenb/sagenb/notebook/notebook.pyc in __init__(self, dir)
     86         # Now set the configuration, loaded from the datastore.
     87         try:
---> 88             self.__conf = S.load_server_conf()
     89         except IOError:
     90             # Worksheet has never been saved before, so the server conf doesn't exist.

/Applications/sage/devel/sagenb/sagenb/storage/filesystem_storage.pyc in load_server_conf(self)
    181     
    182     def load_server_conf(self):
--> 183         return self._basic_to_server_conf(self._load('conf.pickle'))
    184     
    185     def save_server_conf(self, server_conf):

/Applications/sage/devel/sagenb/sagenb/storage/filesystem_storage.pyc in _load(self, filename)
    132     #########################################################################
    133     def _load(self, filename):
--> 134         return cPickle.load(open(self._abspath(filename)))
    135 
    136     def _save(self, obj, filename, ):

EOFError: 
sage:
edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
1

answered 2012-05-05 16:03:32 +0200

ramanath gravatar image

It works if I start sage from command line as

./sage -c "notebook(interface='localhost', directory='./sage_notebook.sagenb',port=8000)"

I found the answer in an earlier thread (Jason grout, ctennenh) that I had missed (modulo tweaking it a bit).

thanks!

-Ram

edit flag offensive delete link more
0

answered 2015-06-26 14:41:42 +0200

molnar gravatar image

I just had a similar issue, after years of running Sage with no problems (I have 4.6) an error message like the above appeared when I called notebook(). I found this page, and tried Ram's solution, which "worked" in the sense that Sage opened in my browser (after prompting me for a new password). Did I just nuke all my files?

David

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-05-05 14:57:52 +0200

Seen: 956 times

Last updated: Jun 27 '15