--> --> -->
 
 
<type 'exceptions.IOError'>
Python 2.7.17: /usr/bin/python
Sat May 25 05:00:23 2024

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/run.cgi in <module>()
     83         print "</pre>"
     84     else:
=>   85         BonitoCGI(user=username).run_unprotected (selectorname='corpname')
     86 
     87 # 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/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'>)
    241         if self._has_access or path[0] == 'feedback':
    242             methodname, tmpl, result = self.process_method (path[0], path,
=>  243                                                                     named_args)
    244         else: # redirect to login or raise error
    245             methodname = path[0]
named_args = {'attrs': u'word,tag,lemma', 'corpname': u'coliweb', 'ctxattrs': u'word', 'gdexcnt': u'3', 'ml1attr': u'doc.sito', 'ml1pos': u'0', 'ml2attr': u'doc.categoria', 'ml2pos': u'0', 'pagesize': u'100', 'q': [u'q[lemma=="ad"]', u'r250', u'sdoc.sito/ 0>0 doc.categoria/ 0>0'], ...}
 /usr/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,tag,lemma', 'corpname': u'coliweb', 'ctxattrs': u'word', 'gdexcnt': u'3', 'ml1attr': u'doc.sito', 'ml1pos': u'0', 'ml2attr': u'doc.categoria', 'ml2pos': u'0', 'pagesize': u'100', 'q': [u'q[lemma=="ad"]', u'r250', u'sdoc.sito/ 0>0 doc.categoria/ 0>0'], ...})
    289             return (methodname,
    290                     getattr (method, 'template', methodname + '.tmpl'),
=>  291                     self.call_method (method, pos_args, named_args))
    292         except Exception, e:
    293             if self.format in self.export_formats:
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,tag,lemma', 'corpname': u'coliweb', 'ctxattrs': u'word', 'gdexcnt': u'3', 'ml1attr': u'doc.sito', 'ml1pos': u'0', 'ml2attr': u'doc.categoria', 'ml2pos': u'0', 'pagesize': u'100', 'q': [u'q[lemma=="ad"]', u'r250', u'sdoc.sito/ 0>0 doc.categoria/ 0>0'], ...}
 /usr/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,tag,lemma', 'corpname': u'coliweb', 'ctxattrs': u'word', 'gdexcnt': u'3', 'ml1attr': u'doc.sito', 'ml1pos': u'0', 'ml2attr': u'doc.categoria', 'ml2pos': u'0', 'pagesize': u'100', 'q': [u'q[lemma=="ad"]', u'r250', u'sdoc.sito/ 0>0 doc.categoria/ 0>0'], ...})
    148         na = named_args.copy()
    149         correct_types (na, function_defaults (method), 1, safe=0)
=>  150         return apply (method, args[1:], na)
    151         
    152     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.sito', 'ml1pos': 0, 'ml2attr': u'doc.categoria', 'ml2pos': 0, 'sortlevel': 2}
 /usr/lib/python2.7/dist-packages/bonito/conccgi.py in mlsortx(self=<__main__.BonitoCGI instance>, ml1attr=u'doc.sito', ml1pos=0, ml1icase='', ml1bward='', ml1fcode='rc', ml2attr=u'doc.categoria', ml2pos=0, ml2icase='', ml2bward='', ml2fcode='rc', ml3attr='word', ml3pos=1, ml3icase='', ml3bward='', ml3fcode='rc', sortlevel=2, ml1ctx='', ml2ctx='', ml3ctx='')
    958                                       ml3icase, ml3bward)
    959         self.q.append (crit)
=>  960         return self.view()
    961 
    962     mlsortx.template = 'view.tmpl'
self = <__main__.BonitoCGI instance>, self.view = <bound method BonitoCGI.view of <__main__.BonitoCGI instance>>
 /usr/lib/python2.7/dist-packages/bonito/conccgi.py in view(self=<__main__.BonitoCGI instance>, change_gdex=True)
    706                     del self.q[i]
    707                 i += 1
=>  708         conc = self.call_function (conclib.get_conc, (self._corp(),))
    709         if not conc.size():
    710             if self.exceptmethod == 'PREV-CONC':
conc undefined, self = <__main__.BonitoCGI instance>, self.call_function = <bound method BonitoCGI.call_function of <__main__.BonitoCGI instance>>, global conclib = <module 'conclib' from '/usr/lib/python2.7/dist-packages/bonito/conclib.py'>, conclib.get_conc = <function get_conc>, self._corp = <bound method BonitoCGI._corp of <__main__.BonitoCGI instance>>
 /usr/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 0x7fd0ffb17de0> >,), **named_args={})
    154         na.update (named_args)
    155         correct_types (na, function_defaults (func), 1, safe=0)
=>  156         return apply (func, args, na)
    157 
    158     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 0x7fd0ffb17de0> >,), na = {'_cache_dir': '/var/lib/bonito/cache', 'async': 1, 'debug': None, 'fromp': 1, 'pagesize': 100, 'q': [u'q[lemma=="ad"]', u'r250', u'sdoc.sito/ 0>0 doc.categoria/ 0>0'], 'samplesize': 10000000, 'save': 1}
 /usr/lib/python2.7/dist-packages/bonito/conclib.py in get_conc(corp=<manatee.Corpus; proxy of <Swig Object of type 'Corpus *' at 0x7fd0ffb17de0> >, minsize=-1, q=(u'q[lemma=="ad"]', u'r250', u'sdoc.sito/ 0>0 doc.categoria/ 0>0'), fromp=1, pagesize=100, async=1, save=1, _cache_dir='/var/lib/bonito/cache/coliweb/', samplesize=10000000, debug=None)
    402             cachefile, pidfile, server = add_to_map (_cache_dir, pid_dir,
    403                                                      subchash, q[:act + 1],
=>  404                                                      conc.size())
    405             if type(server) != int: # nobody started the computation yet
    406                 conc.save (cachefile)
conc = <pyconc.PyConc; proxy of <Swig Object of type 'Concordance *' at 0x7fd0ffb1b4b0> >, conc.size = <bound method PyConc.size of <pyconc.PyConc; pro...ect of type 'Concordance *' at 0x7fd0ffb1b4b0> >>
 /usr/lib/python2.7/dist-packages/bonito/conccache.py in add_to_map(_cache_dir='/var/lib/bonito/cache/coliweb/', pid_dir='/var/lib/bonito/cache/coliweb//run/', subchash=None, key=(u'q[lemma=="ad"]', u'r250', u'sdoc.sito/ 0>0 doc.categoria/ 0>0'), size=250)
     41         f = open (_cache_dir + '00CONCS.map', 'r+b')
     42     except IOError:
=>   43         f = open (_cache_dir + '00CONCS.map', 'wb')
     44         kmap = {}
     45     flck_ex_lock (f)
f undefined, builtin open = <built-in function open>, _cache_dir = '/var/lib/bonito/cache/coliweb/'

<type 'exceptions.IOError'>: [Errno 2] No such file or directory: '/var/lib/bonito/cache/coliweb/00CONCS.map'
      args = (2, 'No such file or directory')
      errno = 2
      filename = '/var/lib/bonito/cache/coliweb/00CONCS.map'
      message = ''
      strerror = 'No such file or directory'