Ask Your Question

I'm unable to start notebook in ubuntu 10.10 amd64

asked 2011-03-18 10:23:21 -0600

ebs gravatar image

updated 2011-06-01 12:30:54 -0600

Kelvin Li gravatar image

I have just managed to install ubuntu and then sage a few days ago. Therefore I am an absolute beginner.

When I was using sage, due to external power issues, the computer suddenly switched off and after that, I am unable to open sage notebook. Its showing an error.

| Sage Version 4.6.2, Release Date: 2011-02-25                       |
| Type notebook() for the GUI, and license() for information.        |
sage: notebook()
The notebook files are stored in: sage_notebook.sagenb
ValueError                                Traceback (most recent call last)

/home/bhavanishankar/.sage/<ipython console> in <module>()

/home/bhavanishankar/Applications/sage-4.6.2-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/devel/sagenb/sagenb/notebook/notebook_object.pyc in __call__(self, *args, **kwds)
    215     """
    216     def __call__(self, *args, **kwds):
--> 217         return self.notebook(*args, **kwds)
    219     notebook = run_notebook.notebook_twisted

/home/bhavanishankar/Applications/sage-4.6.2-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/devel/sagenb/sagenb/notebook/run_notebook.pyc in notebook_twisted(self, directory, port, interface, address, port_tries, secure, reset, accounts, require_login, server_pool, ulimit, timeout, open_viewer, sagetex_path, start_path, fork, quiet, subnets)
    403     if open_viewer:
    404         "Open viewer automatically isn't fully implemented.  You have to manually open your web browser to the above URL."
--> 405     return run(port, subnets)

/home/bhavanishankar/Applications/sage-4.6.2-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/devel/sagenb/sagenb/notebook/run_notebook.pyc in run(port, subnets)
    366                 checkPID(pidfile)
    367             except SystemExit as e:
--> 368                 pid = int(open(pidfile).read())
    369                 if str(e).startswith('Another twistd server is running,'):
    370                     sys.exit("""\

ValueError: invalid literal for int() with base 10: ''
edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2011-03-18 10:47:44 -0600

Shashank gravatar image

Try deleting the file /home/bhavanishankar/.sage/sage_notebook.sagenb/ I am not sure what is going on but it seems that sage thinks another notebook is running.

edit flag offensive delete link more


It worked. Thank you:)

ebs gravatar imageebs ( 2011-03-18 23:02:58 -0600 )edit

I had a similar error. I had to delete the

ffwaff gravatar imageffwaff ( 2015-05-07 14:25:07 -0600 )edit

answered 2011-03-18 10:32:53 -0600

Shashank gravatar image

Did you try notebook(reset=True)

edit flag offensive delete link more


I have tried notebook(reset=True). It asked me to set a password and after that it showed the same error.

ebs gravatar imageebs ( 2011-03-18 10:38:54 -0600 )edit

answered 2018-03-19 09:47:14 -0600

H H gravatar image

Hello, I am facing the same problem in Ubuntu 14.04 .. Anyone has the solution ? Urgent!!!

edit flag offensive delete link more

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: 2011-03-18 10:23:21 -0600

Seen: 990 times

Last updated: May 07 '15