@ORich (Richard) posted a new topic, subject "Curator - Python related error". It read:

   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
    [code] 
        [root@i-0013933b-elk-server-678-340-1503 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
        
    [/code]

@ORich (Richard) replied

    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

Then @theuntergeek (Aaron Mildenstein) said

    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.

@ORich (Richard) replied

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

After which, @system (system) added

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


{'source': 'discourse', 'url': 'https://discuss.elastic.co/t/curator-python-related-error/206446', 'title': 'Curator - Python related error', 'views': 1632, 'has_accepted_answer': False, 'word_count': 190, 'like_count': 1, 'reply_count': 2, 'participant_count': 2, 'posts': 5, 'tags': 'curator', 'author': '@ORich (Richard)', 'participants': '@ORich (Richard), @theuntergeek (Aaron Mildenstein), @system (system)', 'image_url': [None], 'created_at': '2019-11-04T17:01:01.201Z', 'last_posted_at': '2019-12-03T10:05:06.121Z'}