haystack.exceptions.MissingDependency: The 'elasticsearch' backend requires the installation of 'elasticsearch'

自古美人都是妖i 提交于 2020-01-03 05:27:10

问题


I am newbie to Django-haystack. I got an error while following Django-Haystack documentation.

Command execution order, I followed:

  1. I started elasticsearch server (1.7.3) using command prompt and I am able to access http://127.0.0.1:9200/

  2. python manage.py rebuild_index

Output:

WARNING: This will irreparably remove EVERYTHING from your search index in connection 'default'. Your choices after this are to restore from backups or rebuild via the rebuild_index command. Are you sure you wish to continue? [y/N] y

Error:

packages\haystack\backends\elasticsearch_backend.py", line 28, in raise MissingDependency("The 'elasticsearch' backend requires the installation of 'elasticsearch'. Please refer to the documentation.")

haystack.exceptions.MissingDependency: The 'elasticsearch' backend requires the installation of 'elasticsearch'. Please refer to the documentation.

Current Platform (Windows): 1. Django 1.8 2. elasticsearch: 1.9.0 (installed through pip) 3. pyelasticsearch: 0.0.5 (installed through pip) 4. elasticseach: 1.7.3 (downloaded to start elasticsearch server)

I have tried adding the 'elasticsearch' also to my installed apps but the same error exists.

It seems there is version compatibility problems (perhaps in pyelasticseach) as I found some others also faced the same issue. Any help would be appreciated. Thanks.

来源:https://stackoverflow.com/questions/33279574/haystack-exceptions-missingdependency-the-elasticsearch-backend-requires-the

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!