I faced the same problem when installing sage on a different computer and then copying my .sage folder from my original computer across. First I had a permission problem and when fixing this by chown -R newuser .sage, I got the Errno 39 as above. I found out that some symlinks didn't copy across (even when using rsync with pretty much preserve everything...), causing the Errno 39. These symlinks reside in .sage/sage_notebook.sagenb/home/ and after copying them over manually, the notebook starts again. I hope someone can give advice on how to properly migrate the .sage folder to a new computer properly without manual interaction.
On Monday, December 10, 2012 at 1:41:27 PM UTC+1, Emmanuel wrote: > > 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 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 http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
