# Python version for curator

**URL:** https://discuss.elastic.co/t/python-version-for-curator/18658
**Category:** Elasticsearch
**Created:** [July 14, 2014, 7:00pm UTC](https://discuss.elastic.co/t/python-version-for-curator/18658 "2014-07-14T19:00:27Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)
#### Post date: [July 14, 2014, 7:00pm UTC](https://discuss.elastic.co/t/python-version-for-curator/18658/1 "2014-07-14T19:00:27Z")

</div>

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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/c21d8db3-1b39-417e-bf36-1e1bbcaae03b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)
#### Post date: [July 14, 2014, 7:30pm UTC](https://discuss.elastic.co/t/python-version-for-curator/18658/2 "2014-07-14T19:30:27Z")

</div>

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](https://github.com/elastic/curator)**
>
> Curator: Tending your Elasticsearch indices. Contribute to elastic/curator development by creating an account on GitHub.

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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/4c53b1a5-71bb-49b2-b843-518fc0000825%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Maciej\_Dziardziel](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@Maciej\_Dziardziel](https://discuss.elastic.co/u/Maciej_Dziardziel)
#### Post date: [July 15, 2014, 4:33pm UTC](https://discuss.elastic.co/t/python-version-for-curator/18658/3 "2014-07-15T16:33:31Z")

</div>

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](https://github.com/elasticsearch/curator)
> 
> 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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/6e5ac117-1b00-4747-b0e5-cae47e17baa2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)
#### Post date: [July 16, 2014, 9:22pm UTC](https://discuss.elastic.co/t/python-version-for-curator/18658/4 "2014-07-16T21:22:25Z")

</div>

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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/04eeb676-9b57-46ac-9b7b-fc1b45824d79%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Honza\_Kral](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/honza_kral/32/876_2.png) [@Honza\_Kral](https://discuss.elastic.co/u/Honza_Kral)
#### Post date: [July 18, 2014, 5:59am UTC](https://discuss.elastic.co/t/python-version-for-curator/18658/5 "2014-07-18T05:59:33Z")

</div>

Hi Brian,

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

> <https://github.com/elastic/curator/issues/77>
>
> I install curator by sudo pip install elasticsearch-curator in aws ec2 instance,… after installation complete, I call command "curator --help", and got error below:
> 
> anything wrong with my setting?
> 
> Traceback (most recent call last):
> File "/usr/bin/curator", line 5, in \<module\>
> from pkg\_resources import load\_entry\_point
> File "/usr/lib/python2.6/site-packages/pkg\_resources.py", line 2655, in \<module\>
> 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

hope this helps,

Honza

On Thu, Jul 17, 2014 at 6:22 AM, Brian [brian.from.fl@gmail.com](mailto: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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/04eeb676-9b57-46ac-9b7b-fc1b45824d79%40googlegroups.com).
> 
> For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CABfdDiqmxKcsRS7ZaDdfW5eeDOPzF5R9Xdp1ZYpTAEoTTSo1gQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CABfdDiqmxKcsRS7ZaDdfW5eeDOPzF5R9Xdp1ZYpTAEoTTSo1gQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)
#### Post date: [August 4, 2014, 7:21pm UTC](https://discuss.elastic.co/t/python-version-for-curator/18658/6 "2014-08-04T19:21:29Z")

</div>

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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/2fb50c60-56cb-47f5-b284-f723ba10e93f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 1:10am UTC](https://discuss.elastic.co/t/python-version-for-curator/18658/7 "2017-07-06T01:10:52Z")

</div>


