Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error starting notbook: No available port on Ubuntu 10.10

Hello,

I am using ubuntu 10.10, 32 bit and sage 4.8.

When I try to start the notebook I get the following error message:

    ----------------------------------------------------------------------
| Sage Version 4.8, Release Date: 2012-01-20                         |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: notebook(reset=true)
The notebook files are stored in: sage_notebook.sagenb



Please choose a new password for the Sage Notebook 'admin' user.
Do _not_ choose a stupid password, since anybody who could guess your password
and connect to your machine could access or delete your files.
NOTE: Only the md5 hash of the password you type is stored by Sage.
You can change your password by typing notebook(reset=True).



Enter new password: 
Retype new password: 
Please login to the notebook with the username 'admin' and the above password.
Password changed for user 'admin'.
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (97, 0))

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)

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

/opt/sage-4.8-linux-32bit-ubuntu_10.04_lts-i686-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

/opt/sage-4.8-linux-32bit-ubuntu_10.04_lts-i686-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)
    441             print "*" * 70
    442 
--> 443     port = find_next_available_port(interface, port, port_tries)
    444     if open_viewer:
    445         "Open viewer automatically isn't fully implemented.  You have to manually open your web browser to the above URL."

/opt/sage-4.8-linux-32bit-ubuntu_10.04_lts-i686-Linux/devel/sagenb/sagenb/misc/misc.pyc in find_next_available_port(interface, start, max_tries, verbose)
    132             print "Port %s is already in use."%port
    133             print "Trying next port..."
--> 134     raise RuntimeError, "no available port."
    135 
    136 

RuntimeError: no available port.
sage:

Any idea how to fix this? I don't have any firewall running.

Best regards:

Uwe Fechner