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: Infinite For loop on loop over index.key #544

Open
3 tasks done
mobinln opened this issue Dec 30, 2024 · 0 comments
Open
3 tasks done

Bug: Infinite For loop on loop over index.key #544

mobinln opened this issue Dec 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mobinln
Copy link

mobinln commented Dec 30, 2024

Describe the bug

Recently, when I installed the latest version (2.16.9), I ran the below code and got into an infinite loop. My primary OS is Windows, but I tried Google Collab and Ubuntu on WSL, too, but sadly, the same problem happened, also I should mention that in windows I got "Segmentation Error"

Steps to reproduce

from usearch.index import Index

index = Index(ndim=3)
index.add(keys=[42], vectors=np.array([0.2, 0.3, 0.5]))

for i in index.keys:
    print(i)

Expected behavior

It should print all keys and end the loop, For example above it should print 42 and end the loop

USearch version

2.16.9

Operating System

Ubuntu 24.04 and Windows 10

Hardware architecture

x86

Which interface are you using?

Python bindings

Contact Details

No response

Are you open to being tagged as a contributor?

  • I am open to being mentioned in the project .git history as a contributor

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@mobinln mobinln added the bug Something isn't working label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant