Ask Your Question
1

I'm unable to start notebook in ubuntu 10.10 amd64

asked 2011-03-18 16:23:21 +0100

ebs gravatar image

updated 2011-06-01 19:30:54 +0100

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)
    218 
    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)
    406 
    407 

/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
3

answered 2011-03-18 16:47:44 +0100

Shashank gravatar image

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

edit flag offensive delete link more

Comments

It worked. Thank you:)

ebs gravatar imageebs ( 2011-03-19 05:02:58 +0100 )edit

I had a similar error. I had to delete the sagenb.pid.

ffwaff gravatar imageffwaff ( 2015-05-07 21:25:07 +0100 )edit
0

answered 2011-03-18 16:32:53 +0100

Shashank gravatar image

Did you try notebook(reset=True)

edit flag offensive delete link more

Comments

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 16:38:54 +0100 )edit
0

answered 2018-03-19 15:47:14 +0100

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

Stats

Asked: 2011-03-18 16:23:21 +0100

Seen: 1,284 times

Last updated: May 07 '15