ILM with Python Client

Hi All,

I'm currently using Elasticsearch client for Python 3.
I'm trying to import IlmClient module, but I received following error.

>>> from elasticsearch.client import IlmClient
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'IlmClient'

Can someone please help me? How should I import and use this module.

Thank you,
Jesus

Hi, looks like you are trying to test it from command line ensure that the you installed elasticsearch python module.

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

I've seen this error before. You most likely have an older version of the elasticsearch Python client. Try updating it with:

python -m pip install -U pip
python -m pip install -r ./requirements.txt

where requirements.txt looks like:

# Elasticsearch 7.x
elasticsearch>=7.0.0,<8.0.0