Hi,

Thanks for the reply.

On 8/1/07, William Stein <[EMAIL PROTECTED]> wrote:

> I'll fix this for SAGE-2.7.3.  In the meantime, please type
>
>  sage: notebook(reset=True)
>
> which will give you a chance to set the admin password.

I should have mentioned that I had tried that already, and it did not
work: it tries do find a user "admin" which doesn't exist:

boole[~]$ sage
----------------------------------------------------------------------
| SAGE Version 2.7.2.1, Release Date: 2007-07-30                     |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------

sage: notebook(reset="True")
Setting password for the admin user.
Enter new password:
Retype new password:
---------------------------------------------------------------------------
<type 'exceptions.KeyError'>              Traceback (most recent call last)

/home/dept/finotti/<ipython console> in <module>()

/scratch/local/sage/local/lib/python2.5/site-packages/sage/server/notebook/notebook_object.py
in __call__(self, *args, **kwds)
    109     """
    110     def __call__(self, *args, **kwds):
--> 111         return self.notebook(*args, **kwds)
    112
    113     notebook = run_notebook.notebook_twisted

/scratch/local/sage/local/lib/python2.5/site-packages/sage/server/notebook/run_notebook.py
in notebook_twisted(self, directory, port, address, port_tries,
secure, reset, accounts, server_pool, ulimit, open_viewer)
     71                 break
     72         if reset:
---> 73             nb.user('admin').set_password(passwd)
     74             print "Password changed for user 'admin'."
     75         else:

/scratch/local/sage/local/lib/python2.5/site-packages/sage/server/notebook/notebook.py
in user(self, username)
    125             return self.users()[username]
    126         except KeyError:
--> 127             raise KeyError, "no user '%s'"%username
    128
    129     def user_is_admin(self, user):

<type 'exceptions.KeyError'>: "no user 'admin'"


It is not a big deal for me.  Especially if there are files somewhere
in my old "sage_notebook" directory containing my old worksheets that
I could upload with the new admin user.


Thanks,

Luis

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
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://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to