jertel / elastalert2

ElastAlert 2 is a continuation of the original yelp/elastalert project. Pull requests are appreciated!
https://elastalert2.readthedocs.org
Apache License 2.0
914 stars 287 forks source link

Error with Numpy 2.0.0 #1469

Closed gregorywychowaniec-zt closed 3 months ago

gregorywychowaniec-zt commented 3 months ago

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:

nsano-rururu commented 3 months ago

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.