Error with Numpy 2.0.0 #1470
-
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 : This error was fixed in elasticsearch-py version 8.14.0.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
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. |
Beta Was this translation helpful? Give feedback.
-
Hello, I probably misspoke. The problem comes from Elasticsearch-py which uses the latest version of Numpy in its dependencies and so is running version 2.0.0 with errors from removed type (np.float_). Those types was removed from Elasticsearch-py in version 8.14 (see #2551). Note: I use the Docker version of Elastalert. |
Beta Was this translation helpful? Give feedback.
Hello,
I can't find a reference to the installation of Numpy during the Docker build of the image and I don't have any more time to investigate. It may just be a problem with our Helm implementation. So I'm going to close the PR and if the problem occurs after the next Elastalert release, we'll know where it's coming from.