Numpy is used by Elasticsearch, and a new major upgrade (2.0.0) was release yesterday, which generates an error when creating the Elastalert indexes : AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.. Did you mean: 'float16'?.
This error was fixed in elasticsearch-py version 8.14.0.
So there are two ways to fix this issue:
Upgrade elasticsearch-py to version 8.14.0.
Specify a version for Numpy in the requirements (1.26.4, the last version before 2.0.0).
Elasticsearch-py is fixed at version 7.10.1, which is compatible with both Elasticsearch and OpenSearch. When using Elastalert2, please consider using a virtual environment with venv or using Docker.
Hello,
Numpy is used by Elasticsearch, and a new major upgrade (2.0.0) was release yesterday, which generates an error when creating the Elastalert indexes :
AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.. Did you mean: 'float16'?
.This error was fixed in elasticsearch-py version 8.14.0. So there are two ways to fix this issue: