This user has asked this question multiple times, and if there isn't
something strange about the computer, this is a fairly significant and
unexpected regression, presumably due to the new(est) "Flask" notebook
changes.  I have to say that we haven't heard much about it, but then
again perhaps not everyone has OpenID accounts going on.

 exceptions.AttributeError: 'OpenIDUserManager' object has no
attribute 'default_user'


@mmarco: That said, it seems unlikely to me that it's universal to
Sage upgrades, since many of us haven't had problems with keeping the
same notebooks for many, many versions, and e.g. sagenb.org hasn't
lost any of its in upgrading.  Is there ANY unusual setting you have
on this machine, perhaps to do with how people are asked to log in to
this server?


On Jan 30, 6:51 am, mmarco <mma...@unizar.es> wrote:
> I don't know if it is the right place to ask this. I have asked in
> sage-notebook list but got no response.
>
> The problem is that i am running a server with sage 5.2 version. Now i
> want to upgrade to sage 5.6, but the notebook directory seems to be
> incompatible somehow.
>
> When i try to run it, and access to the server with a browser, i get
> the following message:
>
> sage@sage-server:~$ sage56 -notebook
> directory="sage_notebook_fis.sagenb"
> ----------------------------------------------------------------------
> | Sage Version 5.6, Release Date: 2013-01-21                         |
> | Type "notebook()" for the browser-based notebook interface.        |
> | Type "help()" for help.                                            |
> ----------------------------------------------------------------------
>
> Please wait while the Sage Notebook server starts...
> notebook(directory=r'''sage_notebook_fis.sagenb''')
> The notebook files are stored in: sage_notebook_fis.sagenb
> **************************************************
> *                                                *
> * Open your web browser tohttp://localhost:8080*
> *                                                *
> **************************************************
> Executing twistd  --pidfile="sage_notebook_fis.sagenb/sagenb.pid" -ny
> "sage_notebook_fis.sagenb/twistedconf.tac"
> 2013-01-30 12:50:41+0100 [-] Log opened.
> 2013-01-30 12:50:41+0100 [-] twistd 12.1.0 (/usr/local/sage-5.6/local/
> bin/python 2.7.3) starting up.
> 2013-01-30 12:50:41+0100 [-] reactor class:
> twisted.internet.epollreactor.EPollReactor.
> 2013-01-30 12:50:41+0100 [-] QuietSite starting on 8080
> 2013-01-30 12:50:41+0100 [-] Starting factory <__builtin__.QuietSite
> instance at 0x4428bd8>
> No protocol specified
> xprop:  unable to open display ':0.0'
> No protocol specified
>
> (chromium-browser:14962): Gtk-WARNING **: cannot open display: :0.0
> 2013-01-30 12:50:51+0100 [-] WSGI application error
>         Traceback (most recent call last):
>           File "/usr/local/sage-5.6/local/lib/python2.7/site-packages/
> Twisted-12.1.0-py2.7-linux-x86_64.egg/twisted/python/threadpool.py",
> line 167, in _worker
>             result = context.call(ctx, function, *args, **kwargs)
>           File "/usr/local/sage-5.6/local/lib/python2.7/site-packages/
> Twisted-12.1.0-py2.7-linux-x86_64.egg/twisted/python/context.py", line
> 118, in callWithContext
>             return self.currentContext().callWithContext(ctx, func, *args,
> **kw)
>           File "/usr/local/sage-5.6/local/lib/python2.7/site-packages/
> Twisted-12.1.0-py2.7-linux-x86_64.egg/twisted/python/context.py", line
> 81, in callWithContext
>             return func(*args,**kw)
>           File "/usr/local/sage-5.6/local/lib/python2.7/site-packages/
> Twisted-12.1.0-py2.7-linux-x86_64.egg/twisted/web/wsgi.py", line 332,
> in run
>             self.reactor.callFromThread(wsgiError, self.started, *exc_info())
>         --- <exception caught here> ---
>           File "/usr/local/sage-5.6/local/lib/python2.7/site-packages/
> Twisted-12.1.0-py2.7-linux-x86_64.egg/twisted/web/wsgi.py", line 315,
> in run
>             appIterator = self.application(self.environ, self.startResponse)
>           File "/usr/local/sage-5.6/local/lib/python2.7/site-packages/
> Flask-0.9-py2.7.egg/flask/app.py", line 1701, in __call__
>             return self.wsgi_app(environ, start_response)
>           File "/usr/local/sage-5.6/local/lib/python2.7/site-packages/
> Flask-0.9-py2.7.egg/flask/app.py", line 1689, in wsgi_app
>             response = self.make_response(self.handle_exception(e))
>           File "/usr/local/sage-5.6/local/lib/python2.7/site-packages/
> Flask-0.9-py2.7.egg/flask/app.py", line 1687, in wsgi_app
>             response = self.full_dispatch_request()
>           File "/usr/local/sage-5.6/local/lib/python2.7/site-packages/
> Flask-0.9-py2.7.egg/flask/app.py", line 1360, in full_dispatch_request
>             rv = self.handle_user_exception(e)
>           File "/usr/local/sage-5.6/local/lib/python2.7/site-packages/
> Flask-0.9-py2.7.egg/flask/app.py", line 1358, in full_dispatch_request
>             rv = self.dispatch_request()
>           File "/usr/local/sage-5.6/local/lib/python2.7/site-packages/
> Flask-0.9-py2.7.egg/flask/app.py", line 1344, in dispatch_request
>             return self.view_functions[rule.endpoint](**req.view_args)
>           File "/usr/local/sage-5.6/devel/sagenb/flask_version/base.py", line
> 117, in index
>             return login()
>           File "/usr/local/sage-5.6/devel/sagenb/flask_version/
> authentication.py", line 24, in login
>             'default_user': g.notebook.user_manager().default_user(),
>         exceptions.AttributeError: 'OpenIDUserManager' object has no
> attribute 'default_user'
>
> And nothing shows in the bowser.

-- 
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 sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to