Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit the numpy version due to an AttributeError: all workloads fail when uploading data into Elasticsearch #484

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

ebattat
Copy link
Contributor

@ebattat ebattat commented Jun 20, 2024

Type of change

  • Refactor
  • New feature
  • Bug fix
  • Optimization
  • Documentation Update

Description

Latest numpy 2.0 cause to AttributeError due to the following error:

[  102.623688] cloud-init[718]: Successfully installed async-timeout-4.0.3 boto3-1.34.129 botocore-1.34.129 cachetools-5.3.3 certifi-2024.6.2 configargparse-1.7 configparser-7.0.0 contourpy-1.2.1 cycler-0.12.1 dataclasses-0.6 dateparser-1.2.0 dictdiffer-0.9.0 docutils-0.16 elasticsearch-7.13.4 flent-2.1.1 fonttools-4.53.0 google-auth-2.30.0 httmock-1.4.0 importlib-metadata-7.1.0 importlib-resources-6.4.0 jmespath-1.0.1 kafka-python-2.0.2 kiwisolver-1.4.5 kubernetes-11.0.0 matplotlib-3.9.0 numpy-2.0.0 openshift-0.11.0 packaging-24.1 pandas-2.2.2 pillow-10.3.0 prometheus-api-client-0.5.5 pyasn1-0.6.0 pyasn1-modules-0.4.0 pyparsing-3.1.2 python-dateutil-2.9.0.post0 python-string-utils-1.0.0 redis-5.0.6 regex-2024.5.15 requests-oauthlib-2.0.0 rsa-4.9 ruamel.yaml-0.18.6 ruamel.yaml.clib-0.2.8 s3transfer-0.10.1 scipy-1.13.1 snafu-0.0.1 statistics-1.0.3.5 ttp-0.9.5 tzdata-2024.1 tzlocal-5.2 websocket-client-1.8.0 zipp-3.19.2
[  103.552233] cloud-init[718]:   File "/usr/local/lib/python3.9/site-packages/elasticsearch/serializer.py", line 50, in <module>
[  103.552457] cloud-init[718]:     np.float_,
[  103.552642] cloud-init[718]:   File "/usr/local/lib64/python3.9/site-packages/numpy/__init__.py", line 397, in __getattr__
[  103.552964] cloud-init[718]:     raise AttributeError(
[  103.553345] cloud-init[718]: AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.

Solution: limit numpy<=1.26.4
Critical bug: all workloads fail when uploading data into Elasticsearch

Related Tickets & Documents

  • Related Issue #
  • Closes #

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.

Testing

  • Please describe the System Under Test.
  • Please provide detailed steps to perform tests related to this code change.
  • How were the fix/results from this change verified? Please provide relevant screenshots or results.

@jtaleric jtaleric merged commit 1876c51 into cloud-bulldozer:master Jun 20, 2024
0 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants