<type 'exceptions.ImportError'> | Python 2.7.12: /usr/bin/python Sun Jan 24 19:30:38 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/run.cgi in |
101 print "</pre>" |
102 else: |
=> 103 BonitoCGI(user=username).run_unprotected (selectorname='corpname') |
104 |
105 # 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'>) |
262 result = self.error_template % err_msg |
263 self.output_headers() |
=> 264 self.output_result (methodname, tmpl, result, outf) |
265 |
266 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'normalised', 'n': u'normalised'}, {'label': u'word (lowercase)', 'n': u'lc'}], 'Corplist': [{'id': u'archimob_release1', 'name': u'ArchiMob_Release1'}, {'id': u'archimob_release2', 'name': u'ArchiMob_Release2'}, {'id': u'susanne', 'name': u'Susanne'}], 'Globals': [{'name': 'corpname', 'value': u'archimob_release2'}, {'name': 'refs', 'value': ''}], 'Histlist': [], 'Lposlist': [], 'Q': [], 'StructAttrList': [{'label': u'doc.doc_id', 'n': u'doc.doc_id'}, {'label': u'doc.location', 'n': u'doc.location'}, {'label': u'doc.wordcount', 'n': u'doc.wordcount'}], 'Wposlist': [], '_bonito_version': 'open-3.99.9', '_version': u'2.36.5-open-2.151.5-open-3.99.9', ...}, outf = <open file '<stdout>', mode 'w'> |
/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'normalised', 'n': u'normalised'}, {'label': u'word (lowercase)', 'n': u'lc'}], 'Corplist': [{'id': u'archimob_release1', 'name': u'ArchiMob_Release1'}, {'id': u'archimob_release2', 'name': u'ArchiMob_Release2'}, {'id': u'susanne', 'name': u'Susanne'}], 'Globals': [{'name': 'corpname', 'value': u'archimob_release2'}, {'name': 'refs', 'value': ''}], 'Histlist': [], 'Lposlist': [], 'Q': [], 'StructAttrList': [{'label': u'doc.doc_id', 'n': u'doc.doc_id'}, {'label': u'doc.location', 'n': u'doc.location'}, {'label': u'doc.wordcount', 'n': u'doc.wordcount'}], 'Wposlist': [], '_bonito_version': 'open-3.99.9', '_version': u'2.36.5-open-2.151.5-open-3.99.9', ...}, outf=<open file '<stdout>', mode 'w'>) |
381 class_name = template[:-5] # appropriate module import |
382 file, pathname, description = \ |
=> 383 imp.find_module(class_name, [self._template_dir]) |
384 module = imp.load_module(class_name, file, pathname, description) |
385 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'