--> --> -->
 
 
<type 'exceptions.AttributeError'>
Python 2.7.3: /usr/bin/python
Thu Oct 19 17:26:11 2017

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/korpuss/bonito-cgi/run.cgi in ()
     50 if __name__ == '__main__':
     51     if not os.environ.has_key ('MANATEE_REGISTRY'):
     52         os.environ['MANATEE_REGISTRY'] = '/data/manatee'
=>   53     BonitoCGI().run_unprotected (selectorname='corpname')
     54 
BonitoCGI = <class __main__.BonitoCGI>, ).run_unprotected = <unbound method BonitoCGI.run_unprotected>, selectorname undefined
 /usr/local/lib/python2.7/dist-packages/bonito2/CGIPublisher.py in run_unprotected(self=<__main__.BonitoCGI instance>, path=['subcorp_form'], selectorname='corpname')
    284         named_args = self.parse_parameters (selectorname)
    285         self.set_localisation()
=>  286         methodname, tmpl, result = self.process_method (path[0], path, named_args)
    287         self.output_headers()
    288         self.output_result (methodname, tmpl, result)
methodname undefined, tmpl undefined, result undefined, self = <__main__.BonitoCGI instance>, self.process_method = <bound method BonitoCGI.process_method of <__main__.BonitoCGI instance>>, path = ['subcorp_form'], named_args = {'corpname': 'LNB_books'}
 /usr/local/lib/python2.7/dist-packages/bonito2/CGIPublisher.py in process_method(self=<__main__.BonitoCGI instance>, methodname='subcorp_form', pos_args=['subcorp_form'], named_args={'corpname': 'LNB_books'})
    308             return (methodname,
    309                     getattr (method, 'template', methodname + '.tmpl'),
=>  310                     self.call_method (method, pos_args, named_args))
    311         except Exception, e:
    312             if self.format == 'json':
self = <__main__.BonitoCGI instance>, self.call_method = <bound method BonitoCGI.call_method of <__main__.BonitoCGI instance>>, method = <bound method BonitoCGI.subcorp_form of <__main__.BonitoCGI instance>>, pos_args = ['subcorp_form'], named_args = {'corpname': 'LNB_books'}
 /usr/local/lib/python2.7/dist-packages/bonito2/CGIPublisher.py in call_method(self=<__main__.BonitoCGI instance>, method=<bound method BonitoCGI.subcorp_form of <__main__.BonitoCGI instance>>, args=['subcorp_form'], named_args={'corpname': 'LNB_books'})
    155         #print >> sys.stderr, 'CGIPublisher: call_method %s %s %s' % \
    156         #      (method, args[1:], na)
=>  157         return apply (method, args[1:], na)
    158         
    159     def call_function (self, func, args, **named_args):
builtin apply = <built-in function apply>, method = <bound method BonitoCGI.subcorp_form of <__main__.BonitoCGI instance>>, args = ['subcorp_form'], na = {}
 /usr/local/lib/python2.7/dist-packages/bonito2/conccgi.py in subcorp_form(self=<__main__.BonitoCGI instance>, subcorpattrs='')
   1348 
   1349     def subcorp_form (self, subcorpattrs=''):
=> 1350         tt_sel = self.texttypes_with_norms()
   1351         if tt_sel.has_key('error'): 
   1352             return {'error': tt_sel['error'], 'TextTypeSel': tt_sel }
tt_sel undefined, self = <__main__.BonitoCGI instance>, self.texttypes_with_norms = <bound method BonitoCGI.texttypes_with_norms of <__main__.BonitoCGI instance>>
 /usr/local/lib/python2.7/dist-packages/bonito2/conccgi.py in texttypes_with_norms(self=<__main__.BonitoCGI instance>, subcorpattrs='doc.id,doc.date,doc.title,doc.label,doc.type,doc...oc.pages,doc.realpages,doc.label_original,page.nr', list_all=False, format_num=True, ret_nums=True)
   1328                     else:
   1329                         val['xcnt'] = compute_norm(aname, attr, val['v'])
=> 1330         return {'Blocks': tt, 'Normslist': self.get_normslist(basestructname)}
   1331 
   1332     def get_normslist(self, structname):
tt = [{'Line': [{'attr_doc': '', 'attr_doc_label': '', 'label': 'doc.id', 'name': 'doc.id', 'textboxlength': 30}]}, {'Line': [{'attr_doc': '', 'attr_doc_label': '', 'label': 'doc.date', 'name': 'doc.date', 'textboxlength': 30}]}, {'Line': [{'attr_doc': '', 'attr_doc_label': '', 'label': 'doc.title', 'name': 'doc.title', 'textboxlength': 30}]}, {'Line': [{'attr_doc': '', 'attr_doc_label': '', 'label': 'doc.label', 'name': 'doc.label', 'textboxlength': 30}]}, {'Line': [{'Values': [{'v': 'METAe_Monograph', 'xcnt': '506423231'}], 'attr_doc': '', 'attr_doc_label': '', 'label': 'doc.type', 'name': 'doc.type'}]}, {'Line': [{'attr_doc': '', 'attr_doc_label': '', 'label': 'doc.path', 'name': 'doc.path', 'textboxlength': 30}]}, {'Line': [{'Values': [{'v': 'lav', 'xcnt': '506423231'}], 'attr_doc': '', 'attr_doc_label': '', 'label': 'doc.language', 'name': 'doc.language'}]}, {'Line': [{'Values': [{'v': '', 'xcnt': '467304304'}, {'v': 'fracture', 'xcnt': '38931648'}, {'v': 'manuscript', 'xcnt': '187279'}], 'attr_doc': '', 'attr_doc_label': '', 'label': 'doc.textcode', 'name': 'doc.textcode'}]}, {'Line': [{'attr_doc': '', 'attr_doc_label': '', 'label': 'doc.pages', 'name': 'doc.pages', 'textboxlength': 30}]}, {'Line': [{'attr_doc': '', 'attr_doc_label': '', 'label': 'doc.realpages', 'name': 'doc.realpages', 'textboxlength': 30}]}, {'Line': [{'attr_doc': '', 'attr_doc_label': '', 'label': 'doc.label_original', 'name': 'doc.label_original', 'textboxlength': 30}]}, {'Line': [{'attr_doc': '', 'attr_doc_label': '', 'label': 'page.nr', 'name': 'page.nr', 'textboxlength': 30}]}], self = <__main__.BonitoCGI instance>, self.get_normslist = <bound method BonitoCGI.get_normslist of <__main__.BonitoCGI instance>>, basestructname = 'doc'
 /usr/local/lib/python2.7/dist-packages/bonito2/conccgi.py in get_normslist(self=<__main__.BonitoCGI instance>, structname='doc')
   1343                 corp.get_attr(structname + ".wordcount")
   1344                 normslist.append({'n':'wordcount', 'label':'Word counts'})
=> 1345             except conclib.manatee.AttrNotFound:
   1346                 pass
   1347         return normslist
global conclib = <module 'conclib' from '/usr/local/lib/python2.7/dist-packages/bonito2/conclib.pyc'>, conclib.manatee = <module 'manatee' from '/usr/local/lib/python2.7/dist-packages/manatee.pyc'>, conclib.manatee.AttrNotFound undefined

<type 'exceptions.AttributeError'>: 'module' object has no attribute 'AttrNotFound'
      args = ("'module' object has no attribute 'AttrNotFound'",)
      message = "'module' object has no attribute 'AttrNotFound'"