<type 'exceptions.ImportError'> | Python 2.7.17: /usr/bin/python Thu Nov 21 11:52:20 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=['findx_form'], selectorname='corpname', outf=<open file '<stdout>', mode 'w'>) |
264 result = self.error_template % err_msg |
265 self.output_headers(methodname=path[0], params=named_args) |
=> 266 self.output_result(methodname, tmpl, result, outf, named_args) |
267 |
268 def process_method (self, methodname, pos_args, named_args): |
self = <__main__.BonitoCGI instance>, self.output_result = <bound method BonitoCGI.output_result of <__main__.BonitoCGI instance>>, methodname = 'findx_form', tmpl = 'findx_form.tmpl', result = {'AttrList': [{'label': u'word', 'n': u'word'}, {'label': u'tag', 'n': u'tag'}, {'label': u'lemma', 'n': u'lemma'}], 'Corplist': [{'id': 'coliweb', 'name': u'CoLIWeb'}, {'id': 'imag', 'name': u'Imagact spoken'}, {'id': 'imag_w', 'name': u'Imagact spoken W'}, {'id': 'paisa', 'name': u'Paisa 1.6'}, {'id': 'paisa_w', 'name': u'Paisa 1.6 W'}, {'id': 'wikieng', 'name': u'WikiHow - English'}, {'id': 'wikiesp', 'name': u'WikiHow - Spanish'}, {'id': 'wikifra', 'name': u'WikiHow - French'}, {'id': 'wikiger', 'name': u'WikiHow - German'}, {'id': 'wikiita', 'name': u'WikiHow - Italian'}, {'id': 'wikipor', 'name': u'WikiHow - Portuguese'}, {'id': 'zannoni', 'name': u'Corpus Zannoni'}], 'Globals': [{'name': 'corpname', 'value': u'coliweb'}, {'name': 'attrs', 'value': u'word'}, {'name': 'ctxattrs', 'value': u'word'}, {'name': 'structs', 'value': u''}, {'name': 'refs', 'value': u''}, {'name': 'pagesize', 'value': 50}, {'name': 'gdexcnt', 'value': 0}], 'Histlist': [], 'Lposlist': [], 'Q': [], 'StructAttrList': [{'label': u'doc.sito', 'n': u'doc.sito'}, {'label': u'doc.url', 'n': u'doc.url'}, {'label': u'doc.categoria', 'n': u'doc.categoria'}, {'label': u'doc.produzione', 'n': u'doc.produzione'}, {'label': u'doc.wordcount', 'n': u'doc.wordcount'}], 'Wposlist': [], '_bonito_version': 'open-3.116.13', '_version': u'2.36.7-open-2.167.8-open-3.116.13', ...}, outf = <open file '<stdout>', mode 'w'>, named_args = {'corpname': u'coliweb'} |
/usr/lib/python2.7/dist-packages/bonito/CGIPublisher.py in output_result(self=<__main__.BonitoCGI instance>, methodname='findx_form', template='findx_form.tmpl', result={'AttrList': [{'label': u'word', 'n': u'word'}, {'label': u'tag', 'n': u'tag'}, {'label': u'lemma', 'n': u'lemma'}], 'Corplist': [{'id': 'coliweb', 'name': u'CoLIWeb'}, {'id': 'imag', 'name': u'Imagact spoken'}, {'id': 'imag_w', 'name': u'Imagact spoken W'}, {'id': 'paisa', 'name': u'Paisa 1.6'}, {'id': 'paisa_w', 'name': u'Paisa 1.6 W'}, {'id': 'wikieng', 'name': u'WikiHow - English'}, {'id': 'wikiesp', 'name': u'WikiHow - Spanish'}, {'id': 'wikifra', 'name': u'WikiHow - French'}, {'id': 'wikiger', 'name': u'WikiHow - German'}, {'id': 'wikiita', 'name': u'WikiHow - Italian'}, {'id': 'wikipor', 'name': u'WikiHow - Portuguese'}, {'id': 'zannoni', 'name': u'Corpus Zannoni'}], 'Globals': [{'name': 'corpname', 'value': u'coliweb'}, {'name': 'attrs', 'value': u'word'}, {'name': 'ctxattrs', 'value': u'word'}, {'name': 'structs', 'value': u''}, {'name': 'refs', 'value': u''}, {'name': 'pagesize', 'value': 50}, {'name': 'gdexcnt', 'value': 0}], 'Histlist': [], 'Lposlist': [], 'Q': [], 'StructAttrList': [{'label': u'doc.sito', 'n': u'doc.sito'}, {'label': u'doc.url', 'n': u'doc.url'}, {'label': u'doc.categoria', 'n': u'doc.categoria'}, {'label': u'doc.produzione', 'n': u'doc.produzione'}, {'label': u'doc.wordcount', 'n': u'doc.wordcount'}], 'Wposlist': [], '_bonito_version': 'open-3.116.13', '_version': u'2.36.7-open-2.167.8-open-3.116.13', ...}, outf=<open file '<stdout>', mode 'w'>, named_args={'corpname': u'coliweb'}) |
405 class_name = template[:-5] # appropriate module import |
406 file, pathname, description = \ |
=> 407 imp.find_module(class_name, [self._template_dir]) |
408 module = imp.load_module(class_name, file, pathname, description) |
409 TemplateClass = getattr(module, class_name) |
global imp = <module 'imp' (built-in)>, imp.find_module = <built-in function find_module>, class_name = 'findx_form', self = <__main__.BonitoCGI instance>, self._template_dir = '/usr/lib/python2.7/dist-packages/bonito/cmpltmpl' |
<type 'exceptions.ImportError'>: No module named findx_form
args =
('No module named findx_form',)
message =
'No module named findx_form'