No way to open sage Notebook

57 views
Skip to first unread message

Pierre-Yves Bienvenu

unread,
Sep 3, 2016, 7:33:27 AM9/3/16
to sage-s...@googlegroups.com
Hi,
I use Sage 5.11 on Mac OS X.6 and until about one year ago I used to be able to open it without any trouble. Now these days I can't get the notebook to open (safari or firefox declare itself unable to opne localhost:8080). I have to use the terminal version. 
By the way when typing notebook() there, I get

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

    221     """
    222     def __call__(self, *args, **kwds):
--> 223         return self.notebook(*args, **kwds)
    224 
    225     notebook = run_notebook.notebook_run

/Applications/Sage-5.11-OSX-64bit-10.6.app/Contents/Resources/sage/devel/sagenb/sagenb/notebook/run_notebook.pyc in notebook_run(self, directory, port, interface, port_tries, secure, reset, accounts, openid, server_pool, ulimit, timeout, upload, automatic_login, start_path, fork, quiet, server, profile, subnets, require_login, open_viewer, address)
    526     # if none use defaults
    527 
--> 528     nb = notebook.load_notebook(directory)
    529 
    530     directory = nb._dir

/Applications/Sage-5.11-OSX-64bit-10.6.app/Contents/Resources/sage/devel/sagenb/sagenb/notebook/notebook.pyc in load_notebook(dir, interface, port, secure, user_manager)
   1795 
   1796     dir = make_path_relative(dir)
-> 1797     nb = Notebook(dir)
   1798     nb.interface = interface
   1799     nb.port = port

    148         # Set the list of users
    149         try:
--> 150             S.load_users(self._user_manager)
    151         except IOError:
    152             pass

    265             {'admin': admin, 'wstein': wstein}
    266         """
--> 267         for user in self._basic_to_users(self._load('users.pickle')).itervalues():
    268             user_manager.add_user_object(user, force=True)
    269             user_manager.set_password(user.username(), user.password(), encrypt = False)

    165     def _load(self, filename):
    166         with open(self._abspath(filename)) as f:
--> 167             result = cPickle.load(f)
    168         return result
    169 

EOFError: 


Is there any way to fix it? 
Thanks for your help!

Volker Braun

unread,
Sep 3, 2016, 2:39:05 PM9/3/16
to sage-support
Delete the corrupted users.pickle:

rm ~/.sage/sage_notebook.sagenb/users.pickle

will erase any sagenb users, obviously.
Reply all
Reply to author
Forward
0 new messages