Closed as duplicate of#2550
Description
Why am I getting this error? How can I fix this? It does not seem like serializer.py:50
has np_float_
.
tests\test_search.py:196: in <module>
@require_elasticsearch
tests\utils.py:101: in require_elasticsearch
import elasticsearch # noqa
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\site-packages\elasticsearch\__init__.py:32: in <module>
from .client import Elasticsearch
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\site-packages\elasticsearch\client\__init__.py:22: in <module>
from ..transport import Transport, TransportError
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\site-packages\elasticsearch\transport.py:23: in <module>
from .serializer import JSONSerializer, Deserializer, DEFAULT_SERIALIZERS
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\site-packages\elasticsearch\serializer.py:50: in <module>
np.float_,
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\site-packages\numpy\__init__.py:411: in __getattr__
raise AttributeError(
E AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.
Metadata
Metadata
Assignees
Labels
No labels