--> --> -->
 
 
<type 'exceptions.Exception'>
Python 2.7.9: /usr/bin/python
Wed Dec 8 04:19:57 2021

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/bonito/cgi-bin/run.cgi in ()
     89         print "</pre>"
     90     else:
=>   91         BonitoCGI(user=username).run_unprotected (selectorname='corpname')
     92 
     93 # vim: ts=4 sw=4 sta et sts=4 si tw=80:
BonitoCGI = <class __main__.BonitoCGI>, user undefined, username = None, ).run_unprotected undefined, selectorname undefined
 /usr/local/lib/python2.7/dist-packages/bonito/CGIPublisher.py in run_unprotected(self=<__main__.BonitoCGI instance>, path=['freq_distrib'], selectorname='corpname', outf=<open file '<stdout>', mode 'w'>)
    278         if self._has_access or path[0] == 'feedback':
    279             methodname, tmpl, result = self.process_method (path[0], path,
=>  280                                                                     named_args)
    281         else: # redirect to login or raise error
    282             methodname = path[0]
named_args = {'attrs': u'word', 'corpname': u'HNK_v30', 'ctxattrs': u'word', 'gdex_enabled': u'1', 'gdexcnt': u'100000', 'pagesize': u'2rand[0,1,1]', 'q': [u'q[word=="kada"]', u'e100000 ', u'Fdoc', u'f'], 'refs': u'#,doc,=doc.file,=head.type', 'show_gdex_scores': u'1', 'structs': u'head,p,s,i,table,tr,div'}
 /usr/local/lib/python2.7/dist-packages/bonito/CGIPublisher.py in process_method(self=<__main__.BonitoCGI instance>, methodname='freq_distrib', pos_args=['freq_distrib'], named_args={'attrs': u'word', 'corpname': u'HNK_v30', 'ctxattrs': u'word', 'gdex_enabled': u'1', 'gdexcnt': u'100000', 'pagesize': u'2rand[0,1,1]', 'q': [u'q[word=="kada"]', u'e100000 ', u'Fdoc', u'f'], 'refs': u'#,doc,=doc.file,=head.type', 'show_gdex_scores': u'1', 'structs': u'head,p,s,i,table,tr,div'})
    313             return (methodname,
    314                     getattr (method, 'template', methodname + '.tmpl'),
=>  315                     self.call_method (method, pos_args, named_args))
    316         except Exception, e:
    317             if self.format == 'json':
self = <__main__.BonitoCGI instance>, self.call_method = <bound method BonitoCGI.call_method of <__main__.BonitoCGI instance>>, method = <bound method BonitoCGI.freq_distrib of <__main__.BonitoCGI instance>>, pos_args = ['freq_distrib'], named_args = {'attrs': u'word', 'corpname': u'HNK_v30', 'ctxattrs': u'word', 'gdex_enabled': u'1', 'gdexcnt': u'100000', 'pagesize': u'2rand[0,1,1]', 'q': [u'q[word=="kada"]', u'e100000 ', u'Fdoc', u'f'], 'refs': u'#,doc,=doc.file,=head.type', 'show_gdex_scores': u'1', 'structs': u'head,p,s,i,table,tr,div'}
 /usr/local/lib/python2.7/dist-packages/bonito/CGIPublisher.py in call_method(self=<__main__.BonitoCGI instance>, method=<bound method BonitoCGI.freq_distrib of <__main__.BonitoCGI instance>>, args=['freq_distrib'], named_args={'attrs': u'word', 'corpname': u'HNK_v30', 'ctxattrs': u'word', 'gdex_enabled': u'1', 'gdexcnt': u'100000', 'pagesize': u'2rand[0,1,1]', 'q': [u'q[word=="kada"]', u'e100000 ', u'Fdoc', u'f'], 'refs': u'#,doc,=doc.file,=head.type', 'show_gdex_scores': u'1', 'structs': u'head,p,s,i,table,tr,div'})
    175         na = named_args.copy()
    176         correct_types (na, function_defaults (method), 1, safe=0)
=>  177         return apply (method, args[1:], na)
    178         
    179     def call_function (self, func, args, **named_args):
builtin apply = <built-in function apply>, method = <bound method BonitoCGI.freq_distrib of <__main__.BonitoCGI instance>>, args = ['freq_distrib'], na = {}
 /usr/local/lib/python2.7/dist-packages/bonito/conccgi.py in freq_distrib(self=<__main__.BonitoCGI instance>, fcrit='', flimit=0, res=100, ampl=101, format='')
   1371             self.format = 'json'
   1372         self.fcrit = fcrit
=> 1373         conc = self.call_function(conclib.get_conc, (self._corp(),))
   1374         values = conclib.manatee.IntVector([0]*res)
   1375         begs = conclib.manatee.IntVector([0]*res)
conc undefined, self = <__main__.BonitoCGI instance>, self.call_function = <bound method BonitoCGI.call_function of <__main__.BonitoCGI instance>>, global conclib = <module 'conclib' from '/usr/local/lib/python2.7/dist-packages/bonito/conclib.pyc'>, conclib.get_conc = <function get_conc>, self._corp = <bound method BonitoCGI._corp of <__main__.BonitoCGI instance>>
 /usr/local/lib/python2.7/dist-packages/bonito/CGIPublisher.py in call_function(self=<__main__.BonitoCGI instance>, func=<function get_conc>, args=(<manatee.Corpus; proxy of <Swig Object of type 'Corpus *' at 0x7f3af28018d0> >,), **named_args={})
    181         na.update (named_args)
    182         correct_types (na, function_defaults (func), 1, safe=0)
=>  183         return apply (func, args, na)
    184 
    185     def clone_self (self, safe=1):
builtin apply = <built-in function apply>, func = <function get_conc>, args = (<manatee.Corpus; proxy of <Swig Object of type 'Corpus *' at 0x7f3af28018d0> >,), na = {'_cache_dir': '/home/corpadmin/cache', 'async': 1, 'debug': None, 'fromp': 1, 'pagesize': u'2rand[0,1,1]', 'q': [u'q[word=="kada"]', u'e100000 ', u'Fdoc', u'f'], 'samplesize': 10000000, 'save': 1}
 /usr/local/lib/python2.7/dist-packages/bonito/conclib.py in get_conc(corp=<manatee.Corpus; proxy of <Swig Object of type 'Corpus *' at 0x7f3af28018d0> >, minsize=-1, q=(u'q[word=="kada"]', u'e100000 ', u'Fdoc', u'f'), fromp=1, pagesize=1000, async=1, save=1, _cache_dir='/home/corpadmin/cache/HNK_v30/', samplesize=10000000, debug=None)
    404         else: # synchronous processing
    405             conc = get_sync_conc (corp, q, save, _cache_dir, pid_dir,
=>  406                                   subchash, samplesize, fullsize)
    407 
    408     # process subsequent concordance actions
subchash = None, samplesize = 10000000, fullsize = -1
 /usr/local/lib/python2.7/dist-packages/bonito/conclib.py in get_sync_conc(corp=<manatee.Corpus; proxy of <Swig Object of type 'Corpus *' at 0x7f3af28018d0> >, q=(u'q[word=="kada"]', u'e100000 ', u'Fdoc', u'f'), save=1, _cache_dir='/home/corpadmin/cache/HNK_v30/', pid_dir='/home/corpadmin/cache/HNK_v30//run/', subchash=None, samplesize=10000000, fullsize=-1)
    274         if type(server) == int: # computation got started meanwhile
    275             conc = get_existing_conc (corp, subchash, q[:1], _cache_dir,
=>  276                                       pid_dir, -1, server)
    277     if not conc:
    278         try:
pid_dir = '/home/corpadmin/cache/HNK_v30//run/', server = 0
 /usr/local/lib/python2.7/dist-packages/bonito/conccache.py in get_existing_conc(corp=<manatee.Corpus; proxy of <Swig Object of type 'Corpus *' at 0x7f3af28018d0> >, subchash=None, q=(u'q[word=="kada"]',), _cache_dir='/home/corpadmin/cache/HNK_v30/', pid_dir='/home/corpadmin/cache/HNK_v30//run/', minsize=-1, server_port=0)
    164                                    pid_dir, minsize)
    165         if not conc or i != len (q):         
=>  166             raise Exception ("Failed to compute concordance")
    167     return conc
    168 
builtin Exception = <type 'exceptions.Exception'>

<type 'exceptions.Exception'>: Failed to compute concordance
      args = ('Failed to compute concordance',)
      message = 'Failed to compute concordance'