Python version for curator

A quick question: Is Python 2 acceptable for use with curator, or is Python
3 required?

Thanks!

Brian

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c21d8db3-1b39-417e-bf36-1e1bbcaae03b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

To continue, I installed curator on a Python 2.6.6 system thusly:

pip install elasticsearch-curator

And Elasticsearch 1.2.1 is installed on the same server. But when running
curator --help, I see:

$ curator --help
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 2655, in

working_set.require(requires)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in
require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in
resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: elasticsearch>=1.0.0,<2.0.0

This was per the information found at:

I'm not a Python dev (yet, anyway) but I don't believe I left anything out
that was explicitly mentioned on the curator github page.

Brian

On Monday, July 14, 2014 3:00:27 PM UTC-4, Brian wrote:

A quick question: Is Python 2 acceptable for use with curator, or is
Python 3 required?

Thanks!

Brian

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4c53b1a5-71bb-49b2-b843-518fc0000825%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

pip install elasticsearch

should solve the problem, though it is listed in dependencies, so it should
just work from the beginning.
elasticsearch is listing python 2 and 3, curator doesn't list any, but I
don't see anything version-specific in its code, so should work with any
verions.
I've tested it with python3.

On Monday, July 14, 2014 8:30:27 PM UTC+1, Brian wrote:

To continue, I installed curator on a Python 2.6.6 system thusly:

pip install elasticsearch-curator

And Elasticsearch 1.2.1 is installed on the same server. But when running
curator --help, I see:

$ curator --help
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 2655, in

working_set.require(requires)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in
require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in
resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: elasticsearch>=1.0.0,<2.0.0

This was per the information found at:
GitHub - elastic/curator: Curator: Tending your Elasticsearch indices

I'm not a Python dev (yet, anyway) but I don't believe I left anything out
that was explicitly mentioned on the curator github page.

Brian

On Monday, July 14, 2014 3:00:27 PM UTC-4, Brian wrote:

A quick question: Is Python 2 acceptable for use with curator, or is
Python 3 required?

Thanks!

Brian

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6e5ac117-1b00-4747-b0e5-cae47e17baa2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No joy:

$ pip install elasticsearch
Requirement already satisfied (use --upgrade to upgrade): elasticsearch in
/usr/lib/python2.6/site-packages
Cleaning up...

$ curator --help
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 2655, in

working_set.require(requires)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in
require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in
resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: elasticsearch>=1.0.0,<2.0.0

$ uname -a
Linux elktest 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux

Brian

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/04eeb676-9b57-46ac-9b7b-fc1b45824d79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Brian,

you seem to have hit an issue we have had with curator, there are some
solutions and workarounds on the github issue:

hope this helps,

Honza

On Thu, Jul 17, 2014 at 6:22 AM, Brian brian.from.fl@gmail.com wrote:

No joy:

$ pip install elasticsearch
Requirement already satisfied (use --upgrade to upgrade): elasticsearch in
/usr/lib/python2.6/site-packages
Cleaning up...

$ curator --help
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 2655, in

working_set.require(requires)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in
require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in
resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: elasticsearch>=1.0.0,<2.0.0

$ uname -a
Linux elktest 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux

Brian

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/04eeb676-9b57-46ac-9b7b-fc1b45824d79%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CABfdDiqmxKcsRS7ZaDdfW5eeDOPzF5R9Xdp1ZYpTAEoTTSo1gQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

An update: I have installed curator 1.2.2 by downloading the zip archive,
unpacking it, and then installing it directly:

$ cd curator-1.2.2
$ sudo python setup.py install

Not sure if it's the fix since the previous version of curator, or else the
pip-less install. But either way, it's working fine just as expected. And
it works superbly!

Brian

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2fb50c60-56cb-47f5-b284-f723ba10e93f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.