Ask Your Question
1

Sage worksheet doesn't allow tab completion or evaluation. Crashes

asked 2013-08-17 15:29:08 +0200

anonymous user

Anonymous

updated 2015-01-13 21:18:54 +0200

FrédéricC gravatar image

I used to be able to use the Sage 5.10 notebook (installed from the Ubuntu ppa) without any problems. Now, when I type sage at the command prompt and start the notebook the notebook opens fine and I can see and edit my previous worksheets.

However, I can't evaluate any cells or use tab-completion. Eg, if I create a new worksheet and type E = EllipticCurve("11a") or if I type E = Ellipt and then hit [tab] the worksheet just stalls indefinitely. The sage console displays some errors. I tried searching around but I couldn't find anything like it online. I get the same errors after upgrading to version 5.11, and from using a copy of sage downloaded from the sagemath.org website instead of the Ubuntu ppa.

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-08-17 13:19:21-0500 [-] Log opened. 2013-08-17 13:19:21-0500 [-] twistd 12.3.0 (/usr/lib/sagemath/local/bin/python 2.7.5) starting up. 2013-08-17 13:19:21-0500 [-] reactor class: twisted.internet.epollreactor.EPollReactor. 2013-08-17 13:19:21-0500 [-] QuietSite starting on 8080 2013-08-17 13:19:21-0500 [-] Starting factory <__builtin__.QuietSite instance at 0x6e96ab8>

(process:3245): GLib-CRITICAL *: g_slice_set_config: assertion `sys_page_size == 0' failed 2013-08-17 13:19:44-0500 [-] WSGI application error Traceback (most recent call last): File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/python/threadpool.py", line 195, in _worker o = self.q.get() File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.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/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/python/context.py", line 83, in callWithContext self.contexts.pop() File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/web/wsgi.py", line 340, in run self.started = True --- <exception caught="" here=""> --- File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/web/wsgi.py", line 315, in run appIterator = self.application(self.environ, self.startResponse) File "/usr/lib/sagemath/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/lib/sagemath/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/lib/sagemath/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/lib/sagemath/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/lib/sagemath/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/lib/sagemath/local/lib/python2.7 ...

(more)
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2013-08-18 07:22:02 +0200

Volker Braun gravatar image

Looks like the history pickle is corrupted. You can probably delete it (backup first obviously). Its somewhere in the .sage/sage_notebook.sagenb tree, to find it just search:

find ~/.sage | grep history.pickle
edit flag offensive delete link more

Comments

Thank you so much Volker!!!

LMN gravatar imageLMN ( 2013-08-18 12:24:56 +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

Stats

Asked: 2013-08-17 15:29:08 +0200

Seen: 808 times

Last updated: Aug 18 '13