Ask Your Question

Running SAGE notebook files across multiple platforms via Dropbox

asked 2013-02-25 03:54:51 +0200

GaryMak gravatar image

updated 2013-02-25 11:38:57 +0200

ppurka gravatar image

Hi: this is a kind of follow-up to 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/" -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/", 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/", 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/", line 83, in callWithContext
      File "/Applications/sage/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-macosx-10.6-x86_64.egg/twisted/web/", 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/", 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/", 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/", 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/", 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/", line 1360, in full_dispatch_request
        rv = self.handle_user_exception(e)
      File "/Applications/sage ...
edit retag flag offensive close merge delete


@ppurka - thanks!

GaryMak gravatar imageGaryMak ( 2013-02-25 11:39:53 +0200 )edit

Any solution to this? I have it working on 2 of 3 machines. But on the 3rd, I also get the "Directory not empty" error. I can't recall how I got it going on the 2nd one a while back.

ktkohl96 gravatar imagektkohl96 ( 2013-05-31 11:12:32 +0200 )edit
kcrisman gravatar imagekcrisman ( 2015-05-06 18:45:47 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-01-30 05:30:05 +0200

marv gravatar image

I can't tell you where this error comes from, but i also got it when setting up syncing with Dropbox lately.

As was mentioned in this question Dropbox has a problem with symbolic links.

So I have come to a working solution for me by just symlinking the actual folder of my notebook files, which is /home/myname/.sage/sage_notebook.sagenb/home/admin in my case to a Dropbox folder

ln -s /home/myname/Dropbox/sage/admin/ /home/myname/.sage/sage_notebook.sagenb/home/admin

this done also on my laptop works very good for me. Don't forget to put the files from admin, which is also symlink in first place, into your Dropbox folder.

I have no idea about symlinks in mac os and I can't garantee for anything though.. Greetings, marv

edit flag offensive delete link more


And now it doesn't work any more?? :/. It was ok for about 2 days. I'm confused, sage planted some symbolic links in my dropbox folder

marv gravatar imagemarv ( 2014-02-02 08:58:56 +0200 )edit

A while back somebody suggested setting the DOT_SAGE environment variable. Does anyone know if that works? I'd like to sync worksheets as well. And if Dropbox can't manage the syncing - is there another online resource which will?

Alasdair gravatar imageAlasdair ( 2014-02-05 04:33:43 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2013-02-25 03:54:51 +0200

Seen: 937 times

Last updated: Jan 30 '14