# Curator - Python related error

**URL:** https://discuss.elastic.co/t/curator-python-related-error/206446
**Category:** Elasticsearch
**Tags:** curator
**Created:** [November 4, 2019, 5:01pm UTC](https://discuss.elastic.co/t/curator-python-related-error/206446 "2019-11-04T17:01:01Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ORich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/orich/32/21675_2.png) [@ORich](https://discuss.elastic.co/u/ORich)
#### Post date: [November 4, 2019, 5:01pm UTC](https://discuss.elastic.co/t/curator-python-related-error/206446/1 "2019-11-04T17:01:01Z")

</div>

Dear all,  
just upgraded from yum command line the elasticsearch-curator pkg from 5.6.0 to 5.8.1 on same server CentOS Linux release 7.6.1810  
I am not able to run anymore /opt/elasticsearch-curator/curator\_cli --version

```auto
[root@i-0013933b-elk-server-15725155111 centos]# /opt/elasticsearch-curator/curator_cli --version
Fatal Python error: initfsencoding: Unable to get the locale encoding
Traceback (most recent call last):
  File "/opt/python/3.7.4/lib/python3.7/encodings/ __init__.py", line 31, in <module>
zipimport.ZipImportError: can't decompress data; zlib not available
Aborted

```

---

<div class="post-metadata">

### Author: ![ORich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/orich/32/21675_2.png) [@ORich](https://discuss.elastic.co/u/ORich)
#### Post date: [November 4, 2019, 5:19pm UTC](https://discuss.elastic.co/t/curator-python-related-error/206446/2 "2019-11-04T17:19:45Z")

</div>

According to extra tests, the issue only occurs with last rpm elasticsearch-curator-5.8.1-1.x86\_64.

Keep perfectly working with rpms elasticsearch-curator-5.7.0-1.x86\_64 and elasticsearch-curator-5.8.0-1.x86\_64

---

<div class="post-metadata">

### Author: ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)
#### Post date: [November 4, 2019, 7:03pm UTC](https://discuss.elastic.co/t/curator-python-related-error/206446/3 "2019-11-04T19:03:24Z")

</div>

Use `/usr/bin/curator` or `/usr/bin/curator_cli` now. The change is because those wrapper scripts set the LD\_LIBRARY\_PATH. In prior releases, these were symlinks to the /opt path.

---

<div class="post-metadata">

### Author: ![ORich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/orich/32/21675_2.png) [@ORich](https://discuss.elastic.co/u/ORich)
#### Post date: [November 5, 2019, 10:05am UTC](https://discuss.elastic.co/t/curator-python-related-error/206446/4 "2019-11-05T10:05:01Z")

</div>

Thanks Aaron for your swift reply.  
Have a good day.  
BR. Richard

---

<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: [December 3, 2019, 10:05am UTC](https://discuss.elastic.co/t/curator-python-related-error/206446/5 "2019-12-03T10:05:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
