Ask Your Question
0

How do I Open the Web-Browser-based interface when I receive the error in the Description?

asked 2012-11-11 06:16:18 +0100

Brenton Horne gravatar image

updated 2016-07-05 22:04:24 +0100

FrédéricC gravatar image

I am running Ubuntu 12.10 i386 on Vostro 3500 dell laptop.

This is the error:

sage: notebook()
The notebook files are stored in: sage_notebook.sagenb
**************************************************
*                                                *
* Open your web browser to http://localhost:8084 *
*                                                *
**************************************************
Can't check status of PID 30037 from pidfile /home/brentonhorne/.sage/sage_notebook.sagenb/twistd.pid: Operation not permitted
---------------------------------------------------------------------------
error                                     Traceback (most recent call last)

/home/brentonhorne/sage-5.3/<ipython console> in <module>()

/home/brentonhorne/sage-5.3/devel/sagenb/sagenb/notebook/notebook_object.pyc in __call__(self, *args, **kwds)
    204     """
    205     def __call__(self, *args, **kwds):
--> 206         return self.notebook(*args, **kwds)
    207 
    208     notebook = run_notebook.notebook_twisted

/home/brentonhorne/sage-5.3/devel/sagenb/sagenb/notebook/run_notebook.pyc in notebook_twisted(self, directory, port, interface, address, port_tries, secure, reset, require_login, accounts, openid, server_pool, ulimit, timeout, open_viewer, sagetex_path, start_path, fork, quiet, subnets)
    434     if open_viewer:
    435         "Open viewer automatically isn't fully implemented.  You have to manually open your web browser to the above URL."
--> 436     return run(port)
    437 
    438 def get_admin_passwd():

/home/brentonhorne/sage-5.3/devel/sagenb/sagenb/notebook/run_notebook.pyc in run(port)
    419         os.chdir(cwd)
    420         if e == 256:
--> 421             raise socket.error
    422 
    423         return True

error: 
sage:

Any help of how to resolve this error will be greatly appreciated

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2012-11-11 17:13:27 +0100

Dirk Danckaert gravatar image

updated 2012-11-11 17:14:00 +0100

I seem to remember encountering a similar error. If I remember well the culprit was Ubuntu Firewall which kept al ports (with the possible exception of port 80) closed. Since I'm not very worried about security questions I justed turned off the firewall:

sudo ufw disable

and restart the system. (Again: if I remember well. It might have been 'ufw -disable', so consult the help system).

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: 2012-11-11 06:16:18 +0100

Seen: 1,448 times

Last updated: Nov 11 '12