<type 'exceptions.ImportError'> | Python 2.7.5: /usr/bin/python Sat Nov 9 08:04:33 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 |
85 print "</pre>" |
86 else: |
=> 87 BonitoCGI(user=username).run_unprotected (selectorname='corpname') |
88 |
89 # 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/site-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'}], 'Corplist': [{'id': u'elllo', 'name': u'elllo', 'order': 1}, {'id': u'youtube_corpus', 'name': u'\u3010\u83ef\u3011Youtube\u7bc0\u76ee\u83ef\u8a9e\u5b57\u5e55\u8a9e\u6599\u5eab(Youtube Clip Chinese Subtitle Corpus)', 'order': 1}, {'id': u'ASBC', 'name': u'\u3010\u83ef\u3011\u4e2d\u7814\u9662\u5e73\u8861\u8a9e\u6599\u5eab4.0 (Academia Sinica Balanced Corpus)', 'order': 2}, {'id': u'civillaw', 'name': u'\u3010\u83ef\u3011\u6c11\u6cd5\u83ef\u8a9e\u8a9e\u6599\u5eab(Civil Law Corpus)', 'order': 3}, {'id': u'Shooter', 'name': u'\u3010\u83ef\u3011\u5c04\u624b\u7db2\u83ef\u8a9e\u5b57\u5e55\u8a9e\u6599\u5eab(Shooter Chinese Subtitles Corpus)', 'order': 4}, {'id': u'chinese_learners_spoken_corpus', 'name': u'\u3010\u83ef\u3011\u83ef\u8a9e\u5b78\u7fd2\u8005\u53e3\u8a9e\u8a9e\u6599\u5eab(Chinese Learner Spoken Corpus)', 'order': 5}, {'id': u'chinese_learners_written_corpus', 'name': u'\u3010\u83ef\u3011\u83ef\u8a9e\u5b78\u7fd2\u8005\u66f8\u9762\u8a9e\u8a9e\u6599\u5eab(Chinese Learner Written Corpus)', 'order': 6}, {'id': u'covid19', 'name': u'\u3010\u83ef\u3011\u4ee5\u65b0\u578b\u51a0\u72c0\u75c5\u6bd2\u70ba\u4e3b\u984c\u4e4b\u83ef\u8a9e\u8a9e\u6599\u5eab(Chinese Web Corpus of COVID 19)', 'order': 7}, {'id': u'technologychinese', 'name': u'\u3010\u83ef\u3011\u7db2\u8def\u79d1\u6280\u83ef\u8a9e\u8a9e\u6599\u5eab(Web Technology Chinese Corpus)', 'order': 8}, {'id': u'Tourism', 'name': u'\u3010\u83ef\u3011\u7db2\u8def\u65c5\u904a\u83ef\u8a9e\u8a9e\u6599\u5eab(Web Travel Chinese Corpus)', 'order': 9}, {'id': u'businesschinese', 'name': u'\u3010\u83ef\u3011\u7db2\u8def\u5546\u52d9\u83ef\u8a9e\u8a9e\u6599\u5eab(Web Business Chinese Corpus)', 'order': 10}, {'id': u'TWWaC', 'name': u'\u3010\u83ef\u3011\u81fa\u7063\u7db2\u8def\u5de8\u91cf\u8a9e\u6599\u5eab(TWWAC)', 'order': 11}, {'id': u'chinese_academic_corpus', 'name': u'\u3010\u83ef\u3011\u5b78\u8853\u83ef\u8a9e\u8a9e\u6599\u5eab(Academic Chinese Corpus)', 'order': 12}, {'id': u'academicspokendata', 'name': u'academicspokendata', 'order': 21}, {'id': u'elementandjuniortextmerged', 'name': u'elementandjuniortextmerged', 'order': 21}, {'id': u'prea', 'name': u'prea', 'order': 21}, {'id': u'tai_zhong_ri_han_guo_zhong_ying_wen_ke_ben', 'name': u'tai_zhong_ri_han_guo_zhong_ying_wen_ke_ben', 'order': 21}, {'id': u'a1_level', 'name': u'a1_level', 'order': 22}, {'id': u'collocationof5domains', 'name': u'collocationof5domains', 'order': 22}, {'id': u'AL_Master_Thesis_494', 'name': u'AL_Master_Thesis_494 \u53f0\u7063\u82f1\u8a9e\u6559\u5b78\u78a9\u8ad6\u8a9e\u6599\u5eab ', 'order': 1000}, ...], 'Globals': [{'name': 'corpname', 'value': u'covid19'}, {'name': 'refs', 'value': ''}], 'Histlist': [], 'Lposlist': [{'n': u'adjective', 'v': u'A|VH'}, {'n': u'adverb', 'v': u'D.*'}, {'n': u'conjunction', 'v': u'C.*'}, {'n': u'determiner', 'v': u'Ne.*'}, {'n': u'noun', 'v': u'Na|Nb|Nc|Ncd|Nd|Nf|Nh|Nv'}, {'n': u'preposition', 'v': u'P'}, {'n': u'pronoun', 'v': u'Nhaa|Nhab|Nhb|Nhc'}, {'n': u'verb', 'v': u'V.*'}], 'Q': [], 'StructAttrList': [{'label': u'text.id', 'n': u'text.id'}], 'Wposlist': [{'n': u'adjective', 'v': u'A|VH'}, {'n': u'adverb', 'v': u'D.*'}, {'n': u'conjunction', 'v': u'C.*'}, {'n': u'determiner', 'v': u'Ne.*'}, {'n': u'noun', 'v': u'Na|Nb|Nc|Ncd|Nd|Nf|Nh|Nv'}, {'n': u'preposition', 'v': u'P'}, {'n': u'pronoun', 'v': u'Nhaa|Nhab|Nhb|Nhc'}, {'n': u'verb', 'v': u'V.*'}], '_bonito_version': 'open-3.105.2', '_version': u'2.36.7-open-2.158.8-open-3.105.2', ...}, outf = <open file '<stdout>', mode 'w'> |
/usr/lib/python2.7/site-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'}], 'Corplist': [{'id': u'elllo', 'name': u'elllo', 'order': 1}, {'id': u'youtube_corpus', 'name': u'\u3010\u83ef\u3011Youtube\u7bc0\u76ee\u83ef\u8a9e\u5b57\u5e55\u8a9e\u6599\u5eab(Youtube Clip Chinese Subtitle Corpus)', 'order': 1}, {'id': u'ASBC', 'name': u'\u3010\u83ef\u3011\u4e2d\u7814\u9662\u5e73\u8861\u8a9e\u6599\u5eab4.0 (Academia Sinica Balanced Corpus)', 'order': 2}, {'id': u'civillaw', 'name': u'\u3010\u83ef\u3011\u6c11\u6cd5\u83ef\u8a9e\u8a9e\u6599\u5eab(Civil Law Corpus)', 'order': 3}, {'id': u'Shooter', 'name': u'\u3010\u83ef\u3011\u5c04\u624b\u7db2\u83ef\u8a9e\u5b57\u5e55\u8a9e\u6599\u5eab(Shooter Chinese Subtitles Corpus)', 'order': 4}, {'id': u'chinese_learners_spoken_corpus', 'name': u'\u3010\u83ef\u3011\u83ef\u8a9e\u5b78\u7fd2\u8005\u53e3\u8a9e\u8a9e\u6599\u5eab(Chinese Learner Spoken Corpus)', 'order': 5}, {'id': u'chinese_learners_written_corpus', 'name': u'\u3010\u83ef\u3011\u83ef\u8a9e\u5b78\u7fd2\u8005\u66f8\u9762\u8a9e\u8a9e\u6599\u5eab(Chinese Learner Written Corpus)', 'order': 6}, {'id': u'covid19', 'name': u'\u3010\u83ef\u3011\u4ee5\u65b0\u578b\u51a0\u72c0\u75c5\u6bd2\u70ba\u4e3b\u984c\u4e4b\u83ef\u8a9e\u8a9e\u6599\u5eab(Chinese Web Corpus of COVID 19)', 'order': 7}, {'id': u'technologychinese', 'name': u'\u3010\u83ef\u3011\u7db2\u8def\u79d1\u6280\u83ef\u8a9e\u8a9e\u6599\u5eab(Web Technology Chinese Corpus)', 'order': 8}, {'id': u'Tourism', 'name': u'\u3010\u83ef\u3011\u7db2\u8def\u65c5\u904a\u83ef\u8a9e\u8a9e\u6599\u5eab(Web Travel Chinese Corpus)', 'order': 9}, {'id': u'businesschinese', 'name': u'\u3010\u83ef\u3011\u7db2\u8def\u5546\u52d9\u83ef\u8a9e\u8a9e\u6599\u5eab(Web Business Chinese Corpus)', 'order': 10}, {'id': u'TWWaC', 'name': u'\u3010\u83ef\u3011\u81fa\u7063\u7db2\u8def\u5de8\u91cf\u8a9e\u6599\u5eab(TWWAC)', 'order': 11}, {'id': u'chinese_academic_corpus', 'name': u'\u3010\u83ef\u3011\u5b78\u8853\u83ef\u8a9e\u8a9e\u6599\u5eab(Academic Chinese Corpus)', 'order': 12}, {'id': u'academicspokendata', 'name': u'academicspokendata', 'order': 21}, {'id': u'elementandjuniortextmerged', 'name': u'elementandjuniortextmerged', 'order': 21}, {'id': u'prea', 'name': u'prea', 'order': 21}, {'id': u'tai_zhong_ri_han_guo_zhong_ying_wen_ke_ben', 'name': u'tai_zhong_ri_han_guo_zhong_ying_wen_ke_ben', 'order': 21}, {'id': u'a1_level', 'name': u'a1_level', 'order': 22}, {'id': u'collocationof5domains', 'name': u'collocationof5domains', 'order': 22}, {'id': u'AL_Master_Thesis_494', 'name': u'AL_Master_Thesis_494 \u53f0\u7063\u82f1\u8a9e\u6559\u5b78\u78a9\u8ad6\u8a9e\u6599\u5eab ', 'order': 1000}, ...], 'Globals': [{'name': 'corpname', 'value': u'covid19'}, {'name': 'refs', 'value': ''}], 'Histlist': [], 'Lposlist': [{'n': u'adjective', 'v': u'A|VH'}, {'n': u'adverb', 'v': u'D.*'}, {'n': u'conjunction', 'v': u'C.*'}, {'n': u'determiner', 'v': u'Ne.*'}, {'n': u'noun', 'v': u'Na|Nb|Nc|Ncd|Nd|Nf|Nh|Nv'}, {'n': u'preposition', 'v': u'P'}, {'n': u'pronoun', 'v': u'Nhaa|Nhab|Nhb|Nhc'}, {'n': u'verb', 'v': u'V.*'}], 'Q': [], 'StructAttrList': [{'label': u'text.id', 'n': u'text.id'}], 'Wposlist': [{'n': u'adjective', 'v': u'A|VH'}, {'n': u'adverb', 'v': u'D.*'}, {'n': u'conjunction', 'v': u'C.*'}, {'n': u'determiner', 'v': u'Ne.*'}, {'n': u'noun', 'v': u'Na|Nb|Nc|Ncd|Nd|Nf|Nh|Nv'}, {'n': u'preposition', 'v': u'P'}, {'n': u'pronoun', 'v': u'Nhaa|Nhab|Nhb|Nhc'}, {'n': u'verb', 'v': u'V.*'}], '_bonito_version': 'open-3.105.2', '_version': u'2.36.7-open-2.158.8-open-3.105.2', ...}, 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/site-packages/bonito/cmpltmpl' |
<type 'exceptions.ImportError'>: No module named findx_form
args =
('No module named findx_form',)
message =
'No module named findx_form'