--> --> -->
 
 
<type 'exceptions.KeyError'>
Python 2.7.9: /usr/bin/python
Sun May 29 08:38:04 2016

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /var/www/obc/cgi-bin/bn/datacheck.py in ()
     10 
     11 form = cgi.FieldStorage()
=>   12 sid, path = getsid(form)
     13 
     14 rawf = path  + "/raw.txt"
sid undefined, path undefined, getsid = <function getsid>, form = FieldStorage(None, None, [MiniFieldStorage('popkids', '1')])
 /home/tkt_bcrs/bcourse/bin/bcprelude.py in getsid(form=FieldStorage(None, None, [MiniFieldStorage('popkids', '1')]))
    112 #
    113 def getsid(form):
=>  114     sid  = form['sid'].value
    115     sdir = sessiondir + "/" + getsdir(sid,form)
    116     return sid, sdir
sid undefined, form = FieldStorage(None, None, [MiniFieldStorage('popkids', '1')]), ].value = [MiniFieldStorage('popkids', '1')]
 /usr/lib/python2.7/cgi.py in __getitem__(self=FieldStorage(None, None, [MiniFieldStorage('popkids', '1')]), key='sid')
    538             if item.name == key: found.append(item)
    539         if not found:
=>  540             raise KeyError, key
    541         if len(found) == 1:
    542             return found[0]
builtin KeyError = <type 'exceptions.KeyError'>, key = 'sid'

<type 'exceptions.KeyError'>: 'sid'
      args = ('sid',)
      message = 'sid'