Good afternoon,

Havin installed sage 5.4 on my Ubuntu distribution 12.10, I have no problem 
to run sage in a terminal. However, I can no more run it on my browser , 
apparently due to exceptions.OSError: [Errno 39] Directory not empty (see 
below). If I delet the .sage directory in mu user directory, then 
everything works fine but I have no more access to my old worksheets. Can 
someone suggest an idea of what is happening?

Executing twistd  --pidfile="sage_notebook.sagenb/sagenb.pid" -ny 
"sage_notebook.sagenb/twistedconf.tac"
2012-12-10 13:30:52+0100 [-] Log opened.
2012-12-10 13:30:52+0100 [-] twistd 12.1.0 
(/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/local/bin/python 
2.7.3) starting up.
2012-12-10 13:30:52+0100 [-] reactor class: 
twisted.internet.epollreactor.EPollReactor.
2012-12-10 13:30:52+0100 [-] QuietSite starting on 8081
2012-12-10 13:30:52+0100 [-] Starting factory <__builtin__.QuietSite 
instance at 0xad4636c>
2012-12-10 13:30:53+0100 [-] WSGI application error
Traceback (most recent call last):
  File 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/local/lib/python2.7/site-packages/Twisted-12.1.0-py2.7-linux-i686.egg/twisted/python/threadpool.py",
 
line 167, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/local/lib/python2.7/site-packages/Twisted-12.1.0-py2.7-linux-i686.egg/twisted/python/context.py",
 
line 118, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/local/lib/python2.7/site-packages/Twisted-12.1.0-py2.7-linux-i686.egg/twisted/python/context.py",
 
line 81, in callWithContext
    return func(*args,**kw)
  File 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/local/lib/python2.7/site-packages/Twisted-12.1.0-py2.7-linux-i686.egg/twisted/web/wsgi.py",
 
line 332, in run
    self.reactor.callFromThread(wsgiError, self.started, *exc_info())
--- <exception caught here> ---
  File 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/local/lib/python2.7/site-packages/Twisted-12.1.0-py2.7-linux-i686.egg/twisted/web/wsgi.py",
 
line 315, in run
    appIterator = self.application(self.environ, self.startResponse)
  File 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/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 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/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 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/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 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/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 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/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 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/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 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/devel/sagenb/flask_version/decorators.py",
 
line 22, in wrapper
    return f(*args, **kwds)
  File 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/devel/sagenb/flask_version/worksheet_listing.py",
 
line 68, in home
    return render_worksheet_list(request.args, pub=False, username=username)
  File 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/devel/sagenb/flask_version/worksheet_listing.py",
 
line 43, in render_worksheet_list
    search=search, reverse=reverse)
  File 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/devel/sagenb/sagenb/notebook/notebook.py",
 
line 1282, in worksheet_list_for_user
    X = self.get_worksheets_with_viewer(user)
  File 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/devel/sagenb/sagenb/notebook/notebook.py",
 
line 1460, in get_worksheets_with_viewer
    if self._user_manager.user_is_admin(username): return 
self.get_all_worksheets()
  File 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/devel/sagenb/sagenb/notebook/notebook.py",
 
line 1455, in get_all_worksheets
    for w in self.users_worksheets(username):
  File 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/devel/sagenb/sagenb/notebook/notebook.py",
 
line 372, in users_worksheets
    worksheets = self.__storage.worksheets(username)
  File 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/devel/sagenb/sagenb/storage/filesystem_storage.py",
 
line 600, in worksheets
    path = self._abspath(self._user_path(username))
  File 
"/opt/sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/devel/sagenb/sagenb/storage/filesystem_storage.py",
 
line 119, in _user_path
    os.rename(path, new_path)
exceptions.OSError: [Errno 39] Directory not empty

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To post to this group, send email to sage-support@googlegroups.com.
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.


Reply via email to