Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does curator run with elasticsearch installed via RPM #202

Closed
wingZero21 opened this issue Oct 20, 2014 · 3 comments
Closed

Does curator run with elasticsearch installed via RPM #202

wingZero21 opened this issue Oct 20, 2014 · 3 comments

Comments

@wingZero21
Copy link

Hi,

Quick query, installed curator and when attempting to run getting the below error.

We have elasticsearch installed greater than version 1.0.0 but its stating its not finding the dependancy.

Elasticsearch has been installed via the RPM from the site, is this why its not picking up the dependancy is there?

Details:
Traceback (most recent call last):
File "/usr/bin/curator", line 5, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2957, in
working_set.require(requires)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 695, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 594, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: elasticsearch>=1.0.0,<2.0.0

@electrical
Copy link

Hi,
In this case it requires the python elasticsearch dependency, not elasticsearch it self.

@untergeek
Copy link
Member

This is a known issue with some installations. See #56 & #77.

The best workaround is to run /usr/lib/python2.6/site-packages/curator/curator_script.py (or whatever path it is in on your system). The entry_point at /usr/bin/curator really just calls this script anyway. Something about your python install does not allow the entry point to find the elasticsearch-py dependency which curator installs for you.

The RPM bit is a red herring. As @electrical pointed out, the RPM installs Elasticsearch, and curator installs a python module called elasticsearch-py as a dependency.

@wingZero21
Copy link
Author

Hey,

Yeah apologies I assumed it was looking for the actual version of elasticsearch but its just a client that it needs.

Cheers for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants