--> --> -->
 
 
<type 'exceptions.TypeError'>
Python 2.7.9: /usr/bin/python
Tue Sep 21 03:10:46 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=['mlsortx'], 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', 'ml1attr': u'doc.file', 'ml1pos': u'0', 'ml2attr': u'head.type', 'ml2pos': u'0', 'pagesize': u'2rand[0,1,1]', ...}
 /usr/local/lib/python2.7/dist-packages/bonito/CGIPublisher.py in process_method(self=<__main__.BonitoCGI instance>, methodname='mlsortx', pos_args=['mlsortx'], named_args={'attrs': u'word', 'corpname': u'HNK_v30', 'ctxattrs': u'word', 'gdex_enabled': u'1', 'gdexcnt': u'100000', 'ml1attr': u'doc.file', 'ml1pos': u'0', 'ml2attr': u'head.type', 'ml2pos': u'0', 'pagesize': u'2rand[0,1,1]', ...})
    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.mlsortx of <__main__.BonitoCGI instance>>, pos_args = ['mlsortx'], named_args = {'attrs': u'word', 'corpname': u'HNK_v30', 'ctxattrs': u'word', 'gdex_enabled': u'1', 'gdexcnt': u'100000', 'ml1attr': u'doc.file', 'ml1pos': u'0', 'ml2attr': u'head.type', 'ml2pos': u'0', 'pagesize': u'2rand[0,1,1]', ...}
 /usr/local/lib/python2.7/dist-packages/bonito/CGIPublisher.py in call_method(self=<__main__.BonitoCGI instance>, method=<bound method BonitoCGI.mlsortx of <__main__.BonitoCGI instance>>, args=['mlsortx'], named_args={'attrs': u'word', 'corpname': u'HNK_v30', 'ctxattrs': u'word', 'gdex_enabled': u'1', 'gdexcnt': u'100000', 'ml1attr': u'doc.file', 'ml1pos': u'0', 'ml2attr': u'head.type', 'ml2pos': u'0', 'pagesize': u'2rand[0,1,1]', ...})
    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.mlsortx of <__main__.BonitoCGI instance>>, args = ['mlsortx'], na = {'ml1attr': u'doc.file', 'ml1pos': 0, 'ml2attr': u'head.type', 'ml2pos': 0, 'sortlevel': 2}
 /usr/local/lib/python2.7/dist-packages/bonito/conccgi.py in mlsortx(self=<__main__.BonitoCGI instance>, ml1attr=u'doc.file', ml1pos=0, ml1icase='', ml1bward='', ml1fcode='rc', ml2attr=u'head.type', ml2pos=0, ml2icase='', ml2bward='', ml2fcode='rc', ml3attr='word', ml3pos=1, ml3icase='', ml3bward='', ml3fcode='rc', sortlevel=2, ml1ctx='', ml2ctx='', ml3ctx='')
    737                                       
    738         self.q.append (crit)
=>  739         return self.view()
    740 
    741     mlsortx.template = 'view.tmpl'
self = <__main__.BonitoCGI instance>, self.view = <bound method BonitoCGI.view of <__main__.BonitoCGI instance>>
 /usr/local/lib/python2.7/dist-packages/bonito/conccgi.py in view(self=<__main__.BonitoCGI instance>)
    526                                  tbl_template=self.tbl_template)
    527         out['Sort_idx'] = self.call_function (conclib.get_sort_idx, (conc,),
=>  528                                                       enc=self.self_encoding())
    529         if self.annotconc:
    530             self.annotverb = self.annotconc.split('-')[0]
enc undefined, self = <__main__.BonitoCGI instance>, self.self_encoding = <bound method BonitoCGI.self_encoding of <__main__.BonitoCGI instance>>
 /usr/local/lib/python2.7/dist-packages/bonito/CGIPublisher.py in call_function(self=<__main__.BonitoCGI instance>, func=<function get_sort_idx>, args=(<pyconc.PyConc; proxy of <Swig Object of type 'Concordance *' at 0x7f41cc47dc00> >,), **named_args={'enc': u'UTF-8'})
    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_sort_idx>, args = (<pyconc.PyConc; proxy of <Swig Object of type 'Concordance *' at 0x7f41cc47dc00> >,), na = {'enc': u'UTF-8', 'pagesize': u'2rand[0,1,1]', 'q': [u'q[word=="kada"]', u'e100000 ', u'sdoc.file/ 0>0 head.type/ 0>0']}
 /usr/local/lib/python2.7/dist-packages/bonito/conclib.py in get_sort_idx(conc=<pyconc.PyConc; proxy of <Swig Object of type 'Concordance *' at 0x7f41cc47dc00> >, q=[u'q[word=="kada"]', u'e100000 ', u'sdoc.file/ 0>0 head.type/ 0>0'], pagesize=u'2rand[0,1,1]', enc=u'UTF-8')
    239     else: just_letters = True
    240     conc.sort_idx(crit, vals, idx, just_letters)
=>  241     out = [(v, pos/pagesize + 1) for v, pos in zip(vals, idx)]
    242     if just_letters:
    243         result = []; keys = []
out undefined, v = u'1990_01_1_1.html', pos = 4, pagesize = u'2rand[0,1,1]', builtin zip = <built-in function zip>, vals = <manatee.StrVector; proxy of <Swig Object of type 'Tokens *' at 0x7f4190feb870> >, idx = <manatee.IntVector; proxy of <Swig Object of type 'std::vector< int > *' at 0x7f4190feb8a0> >

<type 'exceptions.TypeError'>: unsupported operand type(s) for /: 'int' and 'unicode'
      args = ("unsupported operand type(s) for /: 'int' and 'unicode'",)
      message = "unsupported operand type(s) for /: 'int' and 'unicode'"