1. Matt Chaput
  2. whoosh
  3. Issues
Issue #157 resolved

[with fix] unicode keywords are not supported on python 2.6.0

Thomas Waldmann
created an issue

{{{ File "/home/tw/w/moin-2.0-whoosh/MoinMoin/apps/frontend/views.py", line 142, in _search

q = qp.parse(query)

File "/home/tw/w/moin-2.0-whoosh/env260/lib/python2.6/site-packages/whoosh/qparser/default.py", line 324, in parse

nodes = self.process(text, debug=debug)

File "/home/tw/w/moin-2.0-whoosh/env260/lib/python2.6/site-packages/whoosh/qparser/default.py", line 309, in process

nodes = self.tag(text, pos=pos, debug=debug)

File "/home/tw/w/moin-2.0-whoosh/env260/lib/python2.6/site-packages/whoosh/qparser/default.py", line 259, in tag

node = tagger.match(self, text, pos)

File "/home/tw/w/moin-2.0-whoosh/env260/lib/python2.6/site-packages/whoosh/qparser/taggers.py", line 62, in match

node = self.create(parser, match)

File "/home/tw/w/moin-2.0-whoosh/env260/lib/python2.6/site-packages/whoosh/qparser/plugins.py", line 83, in create

return self.nodetype(**kwargs) # note: kwargs == {u'text': u'home*'}

TypeError: __init__() keywords must be strings

}}}

I think this is not supported on python 2.6.0, but requires a later python version. So, you maybe either want to raise the minimum requirement for python or use str keywords (we had the same issue somewhere in moin2, thus I knew that problem already).

Also, this page seems to need an update on the required python version:

https://bitbucket.org/mchaput/whoosh/wiki/Home

Comments (3)

  1. Log in to comment