whoosh-community / whoosh

Whoosh is a fast, featureful full-text indexing and searching library implemented in pure Python.
Other
240 stars 36 forks source link

Bug Prevents Whoosh From Running After Latest Commit #535

Closed ghost closed 5 years ago

ghost commented 5 years ago
File "/mnt/vol2/Programs/project1/helpers.py", line 8, in <module>
    from whoosh.qparser import QueryParser
  File "/usr/local/lib/python3.6/dist-packages/Whoosh-2.7.4-py3.6.egg/whoosh/qparser/__init__.py", line 28, in <module>
  File "/usr/local/lib/python3.6/dist-packages/Whoosh-2.7.4-py3.6.egg/whoosh/qparser/default.py", line 30, in <module>
  File "/usr/local/lib/python3.6/dist-packages/Whoosh-2.7.4-py3.6.egg/whoosh/query/__init__.py", line 28, in <module>
  File "/usr/local/lib/python3.6/dist-packages/Whoosh-2.7.4-py3.6.egg/whoosh/query/qcore.py", line 34, in <module>
  File "/usr/local/lib/python3.6/dist-packages/Whoosh-2.7.4-py3.6.egg/whoosh/reading.py", line 35, in <module>
ModuleNotFoundError: No module named 'cached_property'
nijel commented 5 years ago

You need to install cached-property module.

ghost commented 5 years ago

@nijel Shouldn't Whoosh installation do that on its own though?

nijel commented 5 years ago

Indeed it should, it's in the setup.py, but wrongly:

https://github.com/whoosh-community/whoosh/blob/36f867569be25f3aba17f583e93f3e8d21419c43/setup.py#L46

I will fix that...