<type 'exceptions.ImportError'> | Python 2.7.15rc1: /usr/bin/python Wed May 7 09:05:14 2025 |
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 |
84 print "</pre>" |
85 else: |
=> 86 BonitoCGI(user=username).run_unprotected (selectorname='corpname') |
87 |
88 # 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'lemma', 'n': u'lemma'}, {'label': u'tag', 'n': u'tag'}, {'label': u'status', 'n': u'status'}, {'label': u'word (lowercase)', 'n': u'lc'}, {'label': u'lemma (lowercase)', 'n': u'lemma_lc'}], 'Corplist': [{'id': 'marketing_dr', 'name': u'marketing_dr'}, {'id': 'marketing_lj_diploma', 'name': u'marketing_lj_diploma'}, {'id': 'marketing_lj_dr', 'name': u'marketing_lj_dr'}, {'id': 'marketing_lj_mag', 'name': u'marketing_lj_mag'}, {'id': 'marketing_mag', 'name': u'marketing_mag'}, {'id': 'marketing_mb_diploma', 'name': u'marketing_mb_diploma'}, {'id': 'marketing_mb_dr', 'name': u'marketing_mb_dr'}, {'id': 'marketing_mb_mag', 'name': u'marketing_mb_mag'}, {'id': 'marketing_upr_diploma', 'name': u'marketing_upr_diploma'}, {'id': 'marketing_upr_dr', 'name': u'marketing_upr_dr'}, {'id': 'marketing_upr_mag', 'name': u'marketing_upr_mag'}, {'id': u'susanne', 'name': u'Susanne'}, {'id': 'turk', 'name': u'turk'}, {'id': 'turk1', 'name': u'turk1'}, {'id': 'turk12', 'name': u'turk12'}, {'id': 'turk12nov', 'name': u'turk12nov'}, {'id': 'turk1nov', 'name': u'turk1nov'}, {'id': 'turk2', 'name': u'turk2'}, {'id': 'turk2nov', 'name': u'turk2nov'}], 'Globals': [{'name': 'corpname', 'value': u'susanne'}, {'name': 'refs', 'value': u'doc'}], 'Histlist': [], 'Lposlist': [], 'Q': [], 'StructAttrList': [{'label': u'doc.file', 'n': u'doc.file'}, {'label': u'doc.wordcount', 'n': u'doc.wordcount'}, {'label': u'doc.n', 'n': u'doc.n'}, {'label': u'font.type', 'n': u'font.type'}, {'label': u'head.type', 'n': u'head.type'}], 'Wposlist': [], '_bonito_version': 'open-3.97.6', '_version': u'2.35.2-open-2.150-open-3.97.6', ...}, 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'lemma', 'n': u'lemma'}, {'label': u'tag', 'n': u'tag'}, {'label': u'status', 'n': u'status'}, {'label': u'word (lowercase)', 'n': u'lc'}, {'label': u'lemma (lowercase)', 'n': u'lemma_lc'}], 'Corplist': [{'id': 'marketing_dr', 'name': u'marketing_dr'}, {'id': 'marketing_lj_diploma', 'name': u'marketing_lj_diploma'}, {'id': 'marketing_lj_dr', 'name': u'marketing_lj_dr'}, {'id': 'marketing_lj_mag', 'name': u'marketing_lj_mag'}, {'id': 'marketing_mag', 'name': u'marketing_mag'}, {'id': 'marketing_mb_diploma', 'name': u'marketing_mb_diploma'}, {'id': 'marketing_mb_dr', 'name': u'marketing_mb_dr'}, {'id': 'marketing_mb_mag', 'name': u'marketing_mb_mag'}, {'id': 'marketing_upr_diploma', 'name': u'marketing_upr_diploma'}, {'id': 'marketing_upr_dr', 'name': u'marketing_upr_dr'}, {'id': 'marketing_upr_mag', 'name': u'marketing_upr_mag'}, {'id': u'susanne', 'name': u'Susanne'}, {'id': 'turk', 'name': u'turk'}, {'id': 'turk1', 'name': u'turk1'}, {'id': 'turk12', 'name': u'turk12'}, {'id': 'turk12nov', 'name': u'turk12nov'}, {'id': 'turk1nov', 'name': u'turk1nov'}, {'id': 'turk2', 'name': u'turk2'}, {'id': 'turk2nov', 'name': u'turk2nov'}], 'Globals': [{'name': 'corpname', 'value': u'susanne'}, {'name': 'refs', 'value': u'doc'}], 'Histlist': [], 'Lposlist': [], 'Q': [], 'StructAttrList': [{'label': u'doc.file', 'n': u'doc.file'}, {'label': u'doc.wordcount', 'n': u'doc.wordcount'}, {'label': u'doc.n', 'n': u'doc.n'}, {'label': u'font.type', 'n': u'font.type'}, {'label': u'head.type', 'n': u'head.type'}], 'Wposlist': [], '_bonito_version': 'open-3.97.6', '_version': u'2.35.2-open-2.150-open-3.97.6', ...}, 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'