<type 'exceptions.ImportError'> | Python 2.7.9: /usr/bin/python Wed Jan 27 15:03:59 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/cgi-bin/run.cgi in |
89 print "</pre>" |
90 else: |
=> 91 BonitoCGI(user=username).run_unprotected (selectorname='corpname') |
92 |
93 # 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/local/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'>) |
290 % _('You are not allowed to use this corpus.') |
291 self.output_headers() |
=> 292 self.output_result (methodname, tmpl, result, outf) |
293 |
294 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'msd', 'n': u'msd'}, {'label': u'notHML', 'n': u'notHML'}, {'label': u'nottag', 'n': u'nottag'}], 'Corplist': [{'id': u'HNK_v20', 'name': u'HNK_v20'}, {'id': u'HNK_v25', 'name': u'HNK_v25'}, {'id': u'HNK_v30', 'name': u'HNK_v30'}, {'id': u'Klasici', 'name': u'Klasici'}, {'id': u'Marulic', 'name': u'Marulic'}, {'id': u'NN1990-2013', 'name': u'NN1990-2013'}, {'id': u'Nacional108-265', 'name': u'Nacional108-265'}, {'id': u'Vj2000-2003', 'name': u'Vj2000-2003'}, {'id': u'Vl1999_03-04', 'name': u'Vl1999_03-04'}, {'id': u'cw1998-2000', 'name': u'cw1998-2000'}, {'id': u'cw2000', 'name': u'cw2000'}, {'id': u'dv2005', 'name': u'dv2005'}, {'id': u'fo2003-2005', 'name': u'fo2003-2005'}, {'id': u'gs2002-2005', 'name': u'gs2002-2005'}, {'id': u'hr51-55', 'name': u'hr51-55'}, {'id': u'hrAcquis', 'name': u'hrAcquis'}, {'id': u'itAcquis', 'name': u'itAcquis'}, {'id': u'mazuranic', 'name': u'mazuranic'}, {'id': u'mazuranic_sve', 'name': u'mazuranic_sve'}], 'Globals': [{'name': 'corpname', 'value': u'HNK_v30'}, {'name': 'refs', 'value': u'doc'}], 'Histlist': [], 'Lposlist': [], 'Q': [], 'StructAttrList': [{'label': u'tip', 'n': u'doc.type'}, {'label': u'izv', 'n': u'doc.file'}, {'label': u'div0.type', 'n': u'div0.type'}, {'label': u'head.type', 'n': u'head.type'}, {'label': u's.id', 'n': u's.id'}], 'WSposlist': [], 'Wposlist': [], '_bonito_version': 'open-3.80.5', ...}, outf = <open file '<stdout>', mode 'w'> |
/usr/local/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'msd', 'n': u'msd'}, {'label': u'notHML', 'n': u'notHML'}, {'label': u'nottag', 'n': u'nottag'}], 'Corplist': [{'id': u'HNK_v20', 'name': u'HNK_v20'}, {'id': u'HNK_v25', 'name': u'HNK_v25'}, {'id': u'HNK_v30', 'name': u'HNK_v30'}, {'id': u'Klasici', 'name': u'Klasici'}, {'id': u'Marulic', 'name': u'Marulic'}, {'id': u'NN1990-2013', 'name': u'NN1990-2013'}, {'id': u'Nacional108-265', 'name': u'Nacional108-265'}, {'id': u'Vj2000-2003', 'name': u'Vj2000-2003'}, {'id': u'Vl1999_03-04', 'name': u'Vl1999_03-04'}, {'id': u'cw1998-2000', 'name': u'cw1998-2000'}, {'id': u'cw2000', 'name': u'cw2000'}, {'id': u'dv2005', 'name': u'dv2005'}, {'id': u'fo2003-2005', 'name': u'fo2003-2005'}, {'id': u'gs2002-2005', 'name': u'gs2002-2005'}, {'id': u'hr51-55', 'name': u'hr51-55'}, {'id': u'hrAcquis', 'name': u'hrAcquis'}, {'id': u'itAcquis', 'name': u'itAcquis'}, {'id': u'mazuranic', 'name': u'mazuranic'}, {'id': u'mazuranic_sve', 'name': u'mazuranic_sve'}], 'Globals': [{'name': 'corpname', 'value': u'HNK_v30'}, {'name': 'refs', 'value': u'doc'}], 'Histlist': [], 'Lposlist': [], 'Q': [], 'StructAttrList': [{'label': u'tip', 'n': u'doc.type'}, {'label': u'izv', 'n': u'doc.file'}, {'label': u'div0.type', 'n': u'div0.type'}, {'label': u'head.type', 'n': u'head.type'}, {'label': u's.id', 'n': u's.id'}], 'WSposlist': [], 'Wposlist': [], '_bonito_version': 'open-3.80.5', ...}, outf=<open file '<stdout>', mode 'w'>, return_template=False) |
426 class_name = template[:-5] # appropriate module import |
427 file, pathname, description = \ |
=> 428 imp.find_module(class_name, [self._template_dir]) |
429 module = imp.load_module(class_name, file, pathname, description) |
430 |
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/local/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'