<type 'exceptions.ImportError'> | Python 2.7.17: /usr/bin/python Thu Nov 21 20:28:09 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>() |
80 profstats.sort_stats('time','calls').print_stats(50) |
81 profstats.sort_stats('cumulative').print_stats(50) |
82 else: |
=> 83 BonitoCGI(user=username).run_unprotected (selectorname='corpname') |
84 |
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'lemma', 'n': u'lemma'}, {'label': u'tag', 'n': u'tag'}, {'label': u'morpho', 'n': u'morpho'}, {'label': u'deptype', 'n': u'deptype'}, {'label': u'head', 'n': u'head'}], 'Corplist': [{'id': u'Internet_Parsebank_4B', 'name': u'Internet_Parsebank_4B'}], 'Globals': [{'name': 'corpname', 'value': u'Internet_Parsebank_4B'}, {'name': 'attrs', 'value': u'word'}, {'name': 'ctxattrs', 'value': u'word'}, {'name': 'structs', 'value': u''}, {'name': 'refs', 'value': u''}, {'name': 'gdexcnt', 'value': 0}], 'Histlist': [], 'Lposlist': [], 'Q': [], 'StructAttrList': [{'label': u'doc.url', 'n': u'doc.url'}, {'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'Internet_Parsebank_4B'} |
/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'morpho', 'n': u'morpho'}, {'label': u'deptype', 'n': u'deptype'}, {'label': u'head', 'n': u'head'}], 'Corplist': [{'id': u'Internet_Parsebank_4B', 'name': u'Internet_Parsebank_4B'}], 'Globals': [{'name': 'corpname', 'value': u'Internet_Parsebank_4B'}, {'name': 'attrs', 'value': u'word'}, {'name': 'ctxattrs', 'value': u'word'}, {'name': 'structs', 'value': u''}, {'name': 'refs', 'value': u''}, {'name': 'gdexcnt', 'value': 0}], 'Histlist': [], 'Lposlist': [], 'Q': [], 'StructAttrList': [{'label': u'doc.url', 'n': u'doc.url'}, {'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'Internet_Parsebank_4B'}) |
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'