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

[Bug]: numpy bool8 throw exceptions #2579

Open
1 task done
johnayoub-wtw opened this issue Jan 16, 2025 · 1 comment
Open
1 task done

[Bug]: numpy bool8 throw exceptions #2579

johnayoub-wtw opened this issue Jan 16, 2025 · 1 comment
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@johnayoub-wtw
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

The following line of code throws an exception when using a recent version of numpy. After some research, it seems that this alias was deprecated after version 1.23.5

Expected Behavior

No response

Steps/Code To Reproduce behavior

Environment details

- Hardware/Softward conditions (OS, CPU, GPU, Memory): Linux (WSL2)
- Method of installation (Docker, or from source): Pip
- Milvus version (v0.3.1, or v0.4.0): 2.5.3
- Milvus configuration (Settings you made in `server_config.yaml`): None, using Milvus Lite

Anything else?

No response

@johnayoub-wtw johnayoub-wtw added the kind/bug Something isn't working label Jan 16, 2025
@XuanYang-cn
Copy link
Contributor

Thanks for the information!

I found numpy aliases are marked deprecated in 1.20.0: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
and actually removed in 1.24.0: https://numpy.org/devdocs/release/1.24.0-notes.html#expired-deprecations

  • Quickest solution: downgrade to numpy1.23.5
  • Follow up solution: disgard usage of numpy alias, use python builtin types and str-compare data.dtype == "bool" instead
    /assign

@XuanYang-cn XuanYang-cn added this to the 2.4.15 milestone Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants