Delete the corrupted users.pickle:
rm ~/.sage/sage_notebook.sagenb/users.pickle
will erase any sagenb users, obviously.
On Saturday, September 3, 2016 at 1:33:27 PM UTC+2, Pierre-Yves Bienvenu
wrote:
>
> 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()
>
> /Applications/Sage-5.11-OSX-64bit-10.6.app/Contents/Resources/sage/devel/sagenb/sagenb/notebook/notebook_object.pyc
>
> in __call__(self, *args, **kwds)
> 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
>
> /Applications/Sage-5.11-OSX-64bit-10.6.app/Contents/Resources/sage/devel/sagenb/sagenb/notebook/notebook.pyc
>
> in __init__(self, dir, user_manager)
> 148 # Set the list of users
> 149 try:
> --> 150 S.load_users(self._user_manager)
> 151 except IOError:
> 152 pass
>
> /Applications/Sage-5.11-OSX-64bit-10.6.app/Contents/Resources/sage/devel/sagenb/sagenb/storage/filesystem_storage.pyc
>
> in load_users(self, user_manager)
> 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)
>
> /Applications/Sage-5.11-OSX-64bit-10.6.app/Contents/Resources/sage/devel/sagenb/sagenb/storage/filesystem_storage.pyc
>
> in _load(self, filename)
> 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!
>
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.