Announcement

Collapse
No announcement yet.

Sage notebook() RuntimeError: no available port ? Why ? Kde 4 ? ...SOLVED

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Sage notebook() RuntimeError: no available port ? Why ? Kde 4 ? ...SOLVED

    I am kindy asking someone to look at my problem

    Kubuntu 8.04 KDE 4 64 bit

    I have compiled sage (a mathematical software) and in kde 3.5.9 worked fine
    Now I get the error posted below.
    My questions are simple
    Where can I disable firewall and where are the settings to open ports ?
    If you are an advanced linux user I would appriciate if you check the code below.
    Maybe someone more experienced will know how to solve this.

    Till now I tried:
    compiling and running as root --> works
    compiling and running as user --> works
    downgrading the same program to previous versions --> works
    upgrading --> works
    I have searched this forum for similar topics but couldn find what I was looking for --> did not work
    runnign notebook() FAILS ! ->> this is my problem

    Also important
    notebook() is run inside sage inviroment or sage console
    it provides cool GUI in firefox or other browser
    my problem, nootbook() fails to find an open port and fails


    I am also asking the same question on sage math forum but the reson to post
    this error also here is because I suspect KDE4 might be the problem or my lack of knewledge
    on how to configure KDE 4.


    boris@eV:~/Programs/Sage/sage-3.0.2$ ./sage
    ----------------------------------------------------------------------
    | SAGE Version 3.0.2, Release Date: 2008-05-24 |
    | Type notebook() for the GUI, and license() for information. |
    ----------------------------------------------------------------------

    sage: notebook()
    The notebook files are stored in: /home/boris/.sage//sage_notebook
    Port 8000 is already in use.
    Trying next port...
    Port 8001 is already in use.
    Trying next port...
    Port 8002 is already in use.
    Trying next port...
    Port 8003 is already in use.
    Trying next port...
    Port 8004 is already in use.
    Trying next port...
    Port 8005 is already in use.
    Trying next port...
    Port 8006 is already in use.
    Trying next port...
    Port 8007 is already in use.
    Trying next port...
    Port 8008 is already in use.
    Trying next port...
    Port 8009 is already in use.
    Trying next port...
    Port 8010 is already in use.
    Trying next port...
    Port 8011 is already in use.
    Trying next port...
    Port 8012 is already in use.
    Trying next port...
    Port 8013 is already in use.
    Trying next port...
    Port 8014 is already in use.
    Trying next port...
    Port 8015 is already in use.
    Trying next port...
    Port 8016 is already in use.
    Trying next port...
    Port 8017 is already in use.
    Trying next port...
    Port 8018 is already in use.
    Trying next port...
    Port 8019 is already in use.
    Trying next port...
    Port 8020 is already in use.
    Trying next port...
    Port 8021 is already in use.
    Trying next port...
    Port 8022 is already in use.
    Trying next port...
    Port 8023 is already in use.
    Trying next port...
    Port 8024 is already in use.
    Trying next port...
    Port 8025 is already in use.
    Trying next port...
    Port 8026 is already in use.
    Trying next port...
    Port 8027 is already in use.
    Trying next port...
    Port 8028 is already in use.
    Trying next port...
    Port 8029 is already in use.
    Trying next port...
    Port 8030 is already in use.
    Trying next port...
    Port 8031 is already in use.
    Trying next port...
    Port 8032 is already in use.
    Trying next port...
    Port 8033 is already in use.
    Trying next port...
    Port 8034 is already in use.
    Trying next port...
    Port 8035 is already in use.
    Trying next port...
    Port 8036 is already in use.
    Trying next port...
    Port 8037 is already in use.
    Trying next port...
    Port 8038 is already in use.
    Trying next port...
    Port 8039 is already in use.
    Trying next port...
    Port 8040 is already in use.
    Trying next port...
    Port 8041 is already in use.
    Trying next port...
    Port 8042 is already in use.
    Trying next port...
    Port 8043 is already in use.
    Trying next port...
    Port 8044 is already in use.
    Trying next port...
    Port 8045 is already in use.
    Trying next port...
    Port 8046 is already in use.
    Trying next port...
    Port 8047 is already in use.
    Trying next port...
    Port 8048 is already in use.
    Trying next port...
    Port 8049 is already in use.
    Trying next port...
    Port 8050 is already in use.
    Trying next port...
    ---------------------------------------------------------------------------
    RuntimeError Traceback (most recent call last)

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

    /home/boris/Programs/Sage/sage-3.0.2/local/lib/python2.5/site-packages/sage/server/notebook/notebook_object.py in __call__(self, *args, **kwds)
    141 """
    142 def __call__(self, *args, **kwds):
    --> 143 return self.notebook(*args, **kwds)
    144
    145 notebook = run_notebook.notebook_twisted

    /home/boris/Programs/Sage/sage-3.0.2/local/lib/python2.5/site-packages/sage/server/notebook/run_notebook.py in notebook_twisted(self, directory, port, address, port_tries, secure, reset, accounts, require_login, server_pool, ulimit, timeout, open_viewer, sagetex_path, start_path, fork, quiet)
    264 print "*"*70
    265
    --> 266 port = find_next_available_port(port, port_tries)
    267 #if open_viewer:
    268 # open_page(address, port, secure, pause=PAUSE)

    /home/boris/Programs/Sage/sage-3.0.2/local/lib/python2.5/site-packages/sage/server/misc.py in find_next_available_port(start, max_tries, verbose)
    99 print "Port %s is already in use."%port
    100 print "Trying next port..."
    --> 101 raise RuntimeError, "no available port."
    102
    103

    RuntimeError: no available port.


    Thank you for response and effort

    Lp
    Boris

    #2
    Re: Sage notebook() RuntimeError: no available port ? Why ? Kde 4 ?

    SOLVED with halp from sage people

    ifconfig needs "lo" part
    you get that if you have the following lines in /etc/netwroks/interfaces
    auto lo
    iface lo inet loopback

    then I recompiled sage and it works now

    boris@eV:~$ ifconfig
    eth0 Link encap:Ethernet HWaddr 00:16:d4:dc:b8:03
    inet addr:212.235.176.149 Bcast:212.235.176.255 Mask:255.255.255.128
    inet6 addr: fe80::216:d4ff:fedc:b803/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:470934 errors:0 dropped:0 overruns:0 frame:0
    TX packets:933774 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:56077011 (53.4 MB) TX bytes:1305643053 (1.2 GB)
    Interrupt:17

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:316 errors:0 dropped:0 overruns:0 frame:0
    TX packets:316 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:88396 (86.3 KB) TX bytes:88396 (86.3 KB)

    Comment

    Working...
    X