--> -->
 
 
<type 'exceptions.ValueError'>
Python 2.7.6: /usr/bin/python
Tue Mar 19 03:16:01 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 ()
     78         print "</pre>"
     79     else:
=>   80         BonitoCGI(user=username).run_unprotected (selectorname='corpname')
     81 
     82 
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=['saveconc_form'], selectorname='corpname', outf=<open file '<stdout>', mode 'w'>)
    275                              % _('You are not allowed to use this corpus.')
    276         self.output_headers()
=>  277         self.output_result (methodname, tmpl, result, outf)
    278 
    279     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 = 'saveconc', tmpl = 'saveconc_form.tmpl', result = {'AttrList': [{'label': u'word', 'n': u'word'}, {'label': u'lemma', 'n': u'lemma'}, {'label': u'tag', 'n': u'tag'}, {'label': u'word (lowercase)', 'n': u'lc'}], 'Corplist': [{'id': u'aclarc2', 'name': u'ACL ARC 2.0 segmented, PoS tagged and cleaned (to an extent)'}, {'id': u'aclrdtec2ak', 'name': u'ACL-RD TEC 2.0 --- Annotations by Anne-Kathrin Schumann'}, {'id': u'aclrdtec2bq', 'name': u'ACL-RD TEC 2.0 --- Annotations by Behrang QasemiZadeh'}, {'id': u'fa_ud_dev', 'name': u'fa_ud_dev: The Development Set of the Persian Universal Dependency Treebank (v1.1)'}, {'id': u'frameinduction', 'name': u'Frame Induction Corpus'}, {'id': u'frameinduction2', 'name': u'Frame Induction Corpus 2.0'}, {'id': u'mgrams', 'name': u'M-Grams'}, {'id': u'motion-frameinduction', 'name': u'Motion Frame Induction Corpus 2.0'}, {'id': u'multext_east_farsi', 'name': u'oana-fa: the 1984 corpus, Farsi version'}, {'id': u'sample_raw_web_corpus', 'name': u'Sample raw web corpus'}, {'id': u'shargh_corpus', 'name': u'Shargh Corpus'}], 'Globals': [{'name': 'corpname', 'value': u'aclrdtec2ak'}, {'name': 'viewmode', 'value': u'kwic'}, {'name': 'attrs', 'value': u'word'}, {'name': 'attr_allpos', 'value': u'kw'}, {'name': 'ctxattrs', 'value': u'word'}, {'name': 'structs', 'value': u'term'}, {'name': 'refs', 'value': u'%3Dterm.class%2C%3Dterm.id%2C%3Dterm.annotatorid'}, {'name': 'copy_icon', 'value': 1}, {'name': 'attr_tooltip', 'value': u'attr_tooltip'}], 'Lposlist': [], 'Q': [{'q': u'aword%2C%3Cterm %2F%3E within %3Cdoc id%3D%22P01-1009%22 %2F%3E'}], 'StructAttrList': [{'label': u'doc.id', 'n': u'doc.id'}, {'label': u'doc.title', 'n': u'doc.title'}, {'label': u'doc.annotatorid', 'n': u'doc.annotatorid'}, {'label': u's.id', 'n': u's.id'}, {'label': u's.annotatorid', 'n': u's.annotatorid'}, {'label': u'term.class', 'n': u'term.class'}, {'label': u'term.id', 'n': u'term.id'}, {'label': u'term.annotatorid', 'n': u'term.annotatorid'}], 'WSposlist': [], 'Wposlist': [], '_version': u'2.31-open-2.121.1-open-3.56.8', 'can_wseval': '', ...}, outf = <open file '<stdout>', mode 'w'>
 /usr/lib/python2.7/dist-packages/bonito/CGIPublisher.py in output_result(self=<__main__.BonitoCGI instance>, methodname='saveconc', template='saveconc_form.tmpl', result={'AttrList': [{'label': u'word', 'n': u'word'}, {'label': u'lemma', 'n': u'lemma'}, {'label': u'tag', 'n': u'tag'}, {'label': u'word (lowercase)', 'n': u'lc'}], 'Corplist': [{'id': u'aclarc2', 'name': u'ACL ARC 2.0 segmented, PoS tagged and cleaned (to an extent)'}, {'id': u'aclrdtec2ak', 'name': u'ACL-RD TEC 2.0 --- Annotations by Anne-Kathrin Schumann'}, {'id': u'aclrdtec2bq', 'name': u'ACL-RD TEC 2.0 --- Annotations by Behrang QasemiZadeh'}, {'id': u'fa_ud_dev', 'name': u'fa_ud_dev: The Development Set of the Persian Universal Dependency Treebank (v1.1)'}, {'id': u'frameinduction', 'name': u'Frame Induction Corpus'}, {'id': u'frameinduction2', 'name': u'Frame Induction Corpus 2.0'}, {'id': u'mgrams', 'name': u'M-Grams'}, {'id': u'motion-frameinduction', 'name': u'Motion Frame Induction Corpus 2.0'}, {'id': u'multext_east_farsi', 'name': u'oana-fa: the 1984 corpus, Farsi version'}, {'id': u'sample_raw_web_corpus', 'name': u'Sample raw web corpus'}, {'id': u'shargh_corpus', 'name': u'Shargh Corpus'}], 'Globals': [{'name': 'corpname', 'value': u'aclrdtec2ak'}, {'name': 'viewmode', 'value': u'kwic'}, {'name': 'attrs', 'value': u'word'}, {'name': 'attr_allpos', 'value': u'kw'}, {'name': 'ctxattrs', 'value': u'word'}, {'name': 'structs', 'value': u'term'}, {'name': 'refs', 'value': u'%3Dterm.class%2C%3Dterm.id%2C%3Dterm.annotatorid'}, {'name': 'copy_icon', 'value': 1}, {'name': 'attr_tooltip', 'value': u'attr_tooltip'}], 'Lposlist': [], 'Q': [{'q': u'aword%2C%3Cterm %2F%3E within %3Cdoc id%3D%22P01-1009%22 %2F%3E'}], 'StructAttrList': [{'label': u'doc.id', 'n': u'doc.id'}, {'label': u'doc.title', 'n': u'doc.title'}, {'label': u'doc.annotatorid', 'n': u'doc.annotatorid'}, {'label': u's.id', 'n': u's.id'}, {'label': u's.annotatorid', 'n': u's.annotatorid'}, {'label': u'term.class', 'n': u'term.class'}, {'label': u'term.id', 'n': u'term.id'}, {'label': u'term.annotatorid', 'n': u'term.annotatorid'}], 'WSposlist': [], 'Wposlist': [], '_version': u'2.31-open-2.121.1-open-3.56.8', 'can_wseval': '', ...}, outf=<open file '<stdout>', mode 'w'>, return_template=False)
    401             self.set_localisation() # in case run_protected has not ran (CA)
    402             self._add_globals (result)
=>  403             self.add_undefined (result, methodname)
    404             result = self.rec_recode(result)
    405             for attr in dir(self): # recoding self
self = <__main__.BonitoCGI instance>, self.add_undefined = <bound method BonitoCGI.add_undefined of <__main__.BonitoCGI instance>>, result = {'AttrList': [{'label': u'word', 'n': u'word'}, {'label': u'lemma', 'n': u'lemma'}, {'label': u'tag', 'n': u'tag'}, {'label': u'word (lowercase)', 'n': u'lc'}], 'Corplist': [{'id': u'aclarc2', 'name': u'ACL ARC 2.0 segmented, PoS tagged and cleaned (to an extent)'}, {'id': u'aclrdtec2ak', 'name': u'ACL-RD TEC 2.0 --- Annotations by Anne-Kathrin Schumann'}, {'id': u'aclrdtec2bq', 'name': u'ACL-RD TEC 2.0 --- Annotations by Behrang QasemiZadeh'}, {'id': u'fa_ud_dev', 'name': u'fa_ud_dev: The Development Set of the Persian Universal Dependency Treebank (v1.1)'}, {'id': u'frameinduction', 'name': u'Frame Induction Corpus'}, {'id': u'frameinduction2', 'name': u'Frame Induction Corpus 2.0'}, {'id': u'mgrams', 'name': u'M-Grams'}, {'id': u'motion-frameinduction', 'name': u'Motion Frame Induction Corpus 2.0'}, {'id': u'multext_east_farsi', 'name': u'oana-fa: the 1984 corpus, Farsi version'}, {'id': u'sample_raw_web_corpus', 'name': u'Sample raw web corpus'}, {'id': u'shargh_corpus', 'name': u'Shargh Corpus'}], 'Globals': [{'name': 'corpname', 'value': u'aclrdtec2ak'}, {'name': 'viewmode', 'value': u'kwic'}, {'name': 'attrs', 'value': u'word'}, {'name': 'attr_allpos', 'value': u'kw'}, {'name': 'ctxattrs', 'value': u'word'}, {'name': 'structs', 'value': u'term'}, {'name': 'refs', 'value': u'%3Dterm.class%2C%3Dterm.id%2C%3Dterm.annotatorid'}, {'name': 'copy_icon', 'value': 1}, {'name': 'attr_tooltip', 'value': u'attr_tooltip'}], 'Lposlist': [], 'Q': [{'q': u'aword%2C%3Cterm %2F%3E within %3Cdoc id%3D%22P01-1009%22 %2F%3E'}], 'StructAttrList': [{'label': u'doc.id', 'n': u'doc.id'}, {'label': u'doc.title', 'n': u'doc.title'}, {'label': u'doc.annotatorid', 'n': u'doc.annotatorid'}, {'label': u's.id', 'n': u's.id'}, {'label': u's.annotatorid', 'n': u's.annotatorid'}, {'label': u'term.class', 'n': u'term.class'}, {'label': u'term.id', 'n': u'term.id'}, {'label': u'term.annotatorid', 'n': u'term.annotatorid'}], 'WSposlist': [], 'Wposlist': [], '_version': u'2.31-open-2.121.1-open-3.56.8', 'can_wseval': '', ...}, methodname = 'saveconc'
 /usr/lib/python2.7/dist-packages/bonito/conccgi.py in add_undefined(self=<__main__.BonitoCGI instance>, result={'AttrList': [{'label': u'word', 'n': u'word'}, {'label': u'lemma', 'n': u'lemma'}, {'label': u'tag', 'n': u'tag'}, {'label': u'word (lowercase)', 'n': u'lc'}], 'Corplist': [{'id': u'aclarc2', 'name': u'ACL ARC 2.0 segmented, PoS tagged and cleaned (to an extent)'}, {'id': u'aclrdtec2ak', 'name': u'ACL-RD TEC 2.0 --- Annotations by Anne-Kathrin Schumann'}, {'id': u'aclrdtec2bq', 'name': u'ACL-RD TEC 2.0 --- Annotations by Behrang QasemiZadeh'}, {'id': u'fa_ud_dev', 'name': u'fa_ud_dev: The Development Set of the Persian Universal Dependency Treebank (v1.1)'}, {'id': u'frameinduction', 'name': u'Frame Induction Corpus'}, {'id': u'frameinduction2', 'name': u'Frame Induction Corpus 2.0'}, {'id': u'mgrams', 'name': u'M-Grams'}, {'id': u'motion-frameinduction', 'name': u'Motion Frame Induction Corpus 2.0'}, {'id': u'multext_east_farsi', 'name': u'oana-fa: the 1984 corpus, Farsi version'}, {'id': u'sample_raw_web_corpus', 'name': u'Sample raw web corpus'}, {'id': u'shargh_corpus', 'name': u'Shargh Corpus'}], 'Globals': [{'name': 'corpname', 'value': u'aclrdtec2ak'}, {'name': 'viewmode', 'value': u'kwic'}, {'name': 'attrs', 'value': u'word'}, {'name': 'attr_allpos', 'value': u'kw'}, {'name': 'ctxattrs', 'value': u'word'}, {'name': 'structs', 'value': u'term'}, {'name': 'refs', 'value': u'%3Dterm.class%2C%3Dterm.id%2C%3Dterm.annotatorid'}, {'name': 'copy_icon', 'value': 1}, {'name': 'attr_tooltip', 'value': u'attr_tooltip'}], 'Lposlist': [], 'Q': [{'q': u'aword%2C%3Cterm %2F%3E within %3Cdoc id%3D%22P01-1009%22 %2F%3E'}], 'StructAttrList': [{'label': u'doc.id', 'n': u'doc.id'}, {'label': u'doc.title', 'n': u'doc.title'}, {'label': u'doc.annotatorid', 'n': u'doc.annotatorid'}, {'label': u's.id', 'n': u's.id'}, {'label': u's.annotatorid', 'n': u's.annotatorid'}, {'label': u'term.class', 'n': u'term.class'}, {'label': u'term.id', 'n': u'term.id'}, {'label': u'term.annotatorid', 'n': u'term.annotatorid'}], 'WSposlist': [], 'Wposlist': [], '_version': u'2.31-open-2.121.1-open-3.56.8', 'can_wseval': '', ...}, methodname='saveconc')
    377                                                      corpname=self.corpname,
    378                                                      _cache_dir=self._cache_dir,
=>  379                                                      subchash=getattr(self._corp(), "subchash", None))]
    380 
    381         if 'TextTypeSel' in names:
subchash undefined, builtin getattr = <built-in function getattr>, self = <__main__.BonitoCGI instance>, self._corp = <bound method BonitoCGI._corp of <__main__.BonitoCGI instance>>, builtin None = None
 /usr/lib/python2.7/dist-packages/bonito/conclib.py in get_conc_desc(q=(u'aword%2C%3Cterm %2F%3E within %3Cdoc id%3D%22P01-1009%22 %2F%3E',), _cache_dir='/var/lib/bonito/cache', corpname=u'aclrdtec2ak', subchash=None)
    449         if formname[1]:
    450             if formname[1] == 'cql':
=>  451                 if opid == 'a': default_attr, url1args = args.split(',', 1)
    452                 else: default_attr, url1args = 'word', args
    453                 url1p.append (('queryselector', 'cqlrow'))
opid = u'a', default_attr undefined, url1args undefined, args = u'word%2C%3Cterm %2F%3E within %3Cdoc id%3D%22P01-1009%22 %2F%3E', args.split = <built-in method split of unicode object>

<type 'exceptions.ValueError'>: need more than 1 value to unpack
      args = ('need more than 1 value to unpack',)
      message = 'need more than 1 value to unpack'