Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Running SAGE notebook files across multiple platforms via Dropbox

Hi: this is a kind of follow-up to http://ask.sagemath.org/question/1576/running-sage-with-files-on-dropbox. I have two Mac OS X 10.6.8 computers on which I have just installed SAGE v5.7. I have followed the accepted instructions on the above link and it all works fine on machine1, but when I go to run it on machine2 (irrespective of whether it is or is not still running on machine1) I get the screed of errors reproduced below (sorry but my low karma won't allow me to upload the file ...). Since I would like also to use this Dropbox facility on my university HP notebook with Windows 7 (using VM) I would love to know what basic step is missing from what I am doing, so that hopefully I can get it to work across all platforms smoothly.

Any help would be great thanks!!


| Sage Version 5.7, Release Date: 2013-02-19 | | Type "notebook()" for the browser-based notebook interface. |

| Type "help()" for help. |

sage: notebook() The notebook files are stored in: sage_notebook.sagenb


  • *
  • Open your web browser to http://localhost:8080 *
  • *

Executing twistd --pidfile="sage_notebook.sagenb/sagenb.pid" -ny "sage_notebook.sagenb/twistedconf.tac" 2013-02-25 08:40:26+0000 [-] Log opened. 2013-02-25 08:40:26+0000 [-] twistd 12.3.0 (/Applications/sage/local/bin/python 2.7.3) starting up. 2013-02-25 08:40:26+0000 [-] reactor class: twisted.internet.selectreactor.SelectReactor. 2013-02-25 08:40:26+0000 [-] QuietSite starting on 8080 2013-02-25 08:40:26+0000 [-] Starting factory <__builtin__.QuietSite instance at 0x10d5590e0> 2013-02-25 08:40:26+0000 [-] WSGI application error Traceback (most recent call last): File "/Applications/sage/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-macosx-10.6-x86_64.egg/twisted/python/threadpool.py", line 195, in _worker o = self.q.get() File "/Applications/sage/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-macosx-10.6-x86_64.egg/twisted/python/context.py", line 118, in callWithContext return self.currentContext().callWithContext(ctx, func, args, *kw) File "/Applications/sage/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-macosx-10.6-x86_64.egg/twisted/python/context.py", line 83, in callWithContext self.contexts.pop() File "/Applications/sage/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-macosx-10.6-x86_64.egg/twisted/web/wsgi.py", line 340, in run self.started = True --- <exception caught="" here=""> --- File "/Applications/sage/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-macosx-10.6-x86_64.egg/twisted/web/wsgi.py", line 315, in run appIterator = self.application(self.environ, self.startResponse) File "/Applications/sage/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 "/Applications/sage/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 "/Applications/sage/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 "/Applications/sage/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 "/Applications/sage/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 "/Applications/sage/local/lib/python2.7/site-packages/Flask-0.9-py2.7.egg/flask/app.py", line 1344, in dispatch_request return self.view_functionsrule.endpoint File "/Applications/sage/devel/sagenb/flask_version/decorators.py", line 22, in wrapper return f(args, *kwds) File "/Applications/sage/devel/sagenb/flask_version/worksheet_listing.py", line 68, in home return render_worksheet_list(request.args, pub=False, username=username) File "/Applications/sage/devel/sagenb/flask_version/worksheet_listing.py", line 43, in render_worksheet_list search=search, reverse=reverse) File "/Applications/sage/devel/sagenb/sagenb/notebook/notebook.py", line 1283, in worksheet_list_for_user X = self.get_worksheets_with_viewer(user) File "/Applications/sage/devel/sagenb/sagenb/notebook/notebook.py", line 1461, in get_worksheets_with_viewer if self._user_manager.user_is_admin(username): return self.get_all_worksheets() File "/Applications/sage/devel/sagenb/sagenb/notebook/notebook.py", line 1456, in get_all_worksheets for w in self.users_worksheets(username): File "/Applications/sage/devel/sagenb/sagenb/notebook/notebook.py", line 373, in users_worksheets worksheets = self.__storage.worksheets(username) File "/Applications/sage/devel/sagenb/sagenb/storage/filesystem_storage.py", line 600, in worksheets path = self._abspath(self._user_path(username)) File "/Applications/sage/devel/sagenb/sagenb/storage/filesystem_storage.py", line 119, in _user_path os.rename(path, new_path) exceptions.OSError: [Errno 66] Directory not empty

click to hide/show revision 2
No.2 Revision

Running SAGE notebook files across multiple platforms via Dropbox

Hi: this is a kind of follow-up to http://ask.sagemath.org/question/1576/running-sage-with-files-on-dropbox. I have two Mac OS X 10.6.8 computers on which I have just installed SAGE v5.7. I have followed the accepted instructions on the above link and it all works fine on machine1, but when I go to run it on machine2 (irrespective of whether it is or is not still running on machine1) I get the screed of errors reproduced below (sorry but my low karma won't allow me to upload the file ...). Since I would like also to use this Dropbox facility on my university HP notebook with Windows 7 (using VM) I would love to know what basic step is missing from what I am doing, so that hopefully I can get it to work across all platforms smoothly.

Any help would be great thanks!!


----------------------------------------------------------------------
| Sage Version 5.7, Release Date: 2013-02-19                         |
| Type "notebook()" for the browser-based notebook interface.        |

| | Type "help()" for help. |

| ---------------------------------------------------------------------- sage: notebook() The notebook files are stored in: sage_notebook.sagenb


  • *
  • sage_notebook.sagenb ************************************************** * * * Open your web browser to http://localhost:8080 *
  • *

* * * ************************************************** Executing twistd --pidfile="sage_notebook.sagenb/sagenb.pid" -ny "sage_notebook.sagenb/twistedconf.tac" 2013-02-25 08:40:26+0000 [-] Log opened. 2013-02-25 08:40:26+0000 [-] twistd 12.3.0 (/Applications/sage/local/bin/python 2.7.3) starting up. 2013-02-25 08:40:26+0000 [-] reactor class: twisted.internet.selectreactor.SelectReactor. 2013-02-25 08:40:26+0000 [-] QuietSite starting on 8080 2013-02-25 08:40:26+0000 [-] Starting factory <__builtin__.QuietSite instance at 0x10d5590e0> 2013-02-25 08:40:26+0000 [-] WSGI application error Traceback (most recent call last): File "/Applications/sage/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-macosx-10.6-x86_64.egg/twisted/python/threadpool.py", line 195, in _worker o = self.q.get() File "/Applications/sage/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-macosx-10.6-x86_64.egg/twisted/python/context.py", line 118, in callWithContext return self.currentContext().callWithContext(ctx, func, args, *kw) *args, **kw) File "/Applications/sage/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-macosx-10.6-x86_64.egg/twisted/python/context.py", line 83, in callWithContext self.contexts.pop() File "/Applications/sage/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-macosx-10.6-x86_64.egg/twisted/web/wsgi.py", line 340, in run self.started = True --- <exception caught="" here=""> caught here> --- File "/Applications/sage/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-macosx-10.6-x86_64.egg/twisted/web/wsgi.py", line 315, in run appIterator = self.application(self.environ, self.startResponse) File "/Applications/sage/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 "/Applications/sage/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 "/Applications/sage/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 "/Applications/sage/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 "/Applications/sage/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 "/Applications/sage/local/lib/python2.7/site-packages/Flask-0.9-py2.7.egg/flask/app.py", line 1344, in dispatch_request return self.view_functionsrule.endpoint self.view_functions[rule.endpoint](**req.view_args) File "/Applications/sage/devel/sagenb/flask_version/decorators.py", line 22, in wrapper return f(args, *kwds) f(*args, **kwds) File "/Applications/sage/devel/sagenb/flask_version/worksheet_listing.py", line 68, in home return render_worksheet_list(request.args, pub=False, username=username) File "/Applications/sage/devel/sagenb/flask_version/worksheet_listing.py", line 43, in render_worksheet_list search=search, reverse=reverse) File "/Applications/sage/devel/sagenb/sagenb/notebook/notebook.py", line 1283, in worksheet_list_for_user X = self.get_worksheets_with_viewer(user) File "/Applications/sage/devel/sagenb/sagenb/notebook/notebook.py", line 1461, in get_worksheets_with_viewer if self._user_manager.user_is_admin(username): return self.get_all_worksheets() File "/Applications/sage/devel/sagenb/sagenb/notebook/notebook.py", line 1456, in get_all_worksheets for w in self.users_worksheets(username): File "/Applications/sage/devel/sagenb/sagenb/notebook/notebook.py", line 373, in users_worksheets worksheets = self.__storage.worksheets(username) File "/Applications/sage/devel/sagenb/sagenb/storage/filesystem_storage.py", line 600, in worksheets path = self._abspath(self._user_path(username)) File "/Applications/sage/devel/sagenb/sagenb/storage/filesystem_storage.py", line 119, in _user_path os.rename(path, new_path) exceptions.OSError: [Errno 66] Directory not empty

empty