<type 'exceptions.ImportError'> | Python 2.7.12: /usr/bin/python Wed Jan 20 19:47:45 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 |
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'>) |
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'}], 'Corplist': [{'id': u'simtho', 'name': u'simtho'}], 'Globals': [{'name': 'corpname', 'value': u'simtho'}, {'name': 'attrs', 'value': u'word'}, {'name': 'ctxattrs', 'value': u'word'}, {'name': 'structs', 'value': u''}, {'name': 'refs', 'value': u'=doc.ForeignLanguageTitle'}], 'Histlist': [], 'Lposlist': [], 'Q': [], 'StructAttrList': [{'label': u'doc.id', 'n': u'doc.id'}, {'label': u'doc.EnglishTitle', 'n': u'doc.EnglishTitle'}, {'label': u'doc.ForeignLanguageTitle', 'n': u'doc.ForeignLanguageTitle'}, {'label': u'doc.Author', 'n': u'doc.Author'}, {'label': u'doc.Meter', 'n': u'doc.Meter'}, {'label': u'doc.Genre', 'n': u'doc.Genre'}, {'label': u'doc.GenreType', 'n': u'doc.GenreType'}, {'label': u'doc.SyriacGenre', 'n': u'doc.SyriacGenre'}, {'label': u'doc.Translation', 'n': u'doc.Translation'}, {'label': u'doc.Medium', 'n': u'doc.Medium'}, {'label': u'doc.Composition', 'n': u'doc.Composition'}, {'label': u'doc.CompositionYear', 'n': u'doc.CompositionYear'}, {'label': u'doc.Denomination', 'n': u'doc.Denomination'}, {'label': u'doc.DocumentType', 'n': u'doc.DocumentType'}, {'label': u'doc.DocumentSource', 'n': u'doc.DocumentSource'}, {'label': u'doc.DocTagging', 'n': u'doc.DocTagging'}, {'label': u'doc.POSTagging', 'n': u'doc.POSTagging'}, {'label': u'doc.Reference', 'n': u'doc.Reference'}, {'label': u'doc.CreationDate', 'n': u'doc.CreationDate'}, {'label': u'doc.UpdateDate', 'n': u'doc.UpdateDate'}, ...], 'Wposlist': [], '_bonito_version': 'open-3.105.1', '_version': u'2.36.7-open-2.158.8-open-3.105.1', ...}, 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'}], 'Corplist': [{'id': u'simtho', 'name': u'simtho'}], 'Globals': [{'name': 'corpname', 'value': u'simtho'}, {'name': 'attrs', 'value': u'word'}, {'name': 'ctxattrs', 'value': u'word'}, {'name': 'structs', 'value': u''}, {'name': 'refs', 'value': u'=doc.ForeignLanguageTitle'}], 'Histlist': [], 'Lposlist': [], 'Q': [], 'StructAttrList': [{'label': u'doc.id', 'n': u'doc.id'}, {'label': u'doc.EnglishTitle', 'n': u'doc.EnglishTitle'}, {'label': u'doc.ForeignLanguageTitle', 'n': u'doc.ForeignLanguageTitle'}, {'label': u'doc.Author', 'n': u'doc.Author'}, {'label': u'doc.Meter', 'n': u'doc.Meter'}, {'label': u'doc.Genre', 'n': u'doc.Genre'}, {'label': u'doc.GenreType', 'n': u'doc.GenreType'}, {'label': u'doc.SyriacGenre', 'n': u'doc.SyriacGenre'}, {'label': u'doc.Translation', 'n': u'doc.Translation'}, {'label': u'doc.Medium', 'n': u'doc.Medium'}, {'label': u'doc.Composition', 'n': u'doc.Composition'}, {'label': u'doc.CompositionYear', 'n': u'doc.CompositionYear'}, {'label': u'doc.Denomination', 'n': u'doc.Denomination'}, {'label': u'doc.DocumentType', 'n': u'doc.DocumentType'}, {'label': u'doc.DocumentSource', 'n': u'doc.DocumentSource'}, {'label': u'doc.DocTagging', 'n': u'doc.DocTagging'}, {'label': u'doc.POSTagging', 'n': u'doc.POSTagging'}, {'label': u'doc.Reference', 'n': u'doc.Reference'}, {'label': u'doc.CreationDate', 'n': u'doc.CreationDate'}, {'label': u'doc.UpdateDate', 'n': u'doc.UpdateDate'}, ...], 'Wposlist': [], '_bonito_version': 'open-3.105.1', '_version': u'2.36.7-open-2.158.8-open-3.105.1', ...}, outf=<open file '<stdout>', mode 'w'>) |
382 class_name = template[:-5] # appropriate module import |
383 file, pathname, description = \ |
=> 384 imp.find_module(class_name, [self._template_dir]) |
385 module = imp.load_module(class_name, file, pathname, description) |
386 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'