Skip to content

add runtime dependency on libcuvs in cuvs wheels#615

Merged
rapids-bot[bot] merged 1 commit intorapidsai:branch-25.02from
jameslamb:fix/cuvs-libcuvs-dep
Jan 24, 2025
Merged

add runtime dependency on libcuvs in cuvs wheels#615
rapids-bot[bot] merged 1 commit intorapidsai:branch-25.02from
jameslamb:fix/cuvs-libcuvs-dep

Conversation

@jameslamb
Copy link
Member

cuvs-cu{11,12} wheels don't currently have a runtime dependency on libcuvs-cu{11,12}. They need one, for library-loading:

try:
import libcuvs
except ModuleNotFoundError:
pass
else:
libcuvs.load_library()
del libcuvs

This was missed in #594. This PR adds it.

Notes for Reviewers

Adding for searchability... this bug can result in issues like this at runtime when using cuvs installed from wheels:

ImportError: libcuvs_c.so: cannot open shared object file: No such file or directory

@jameslamb jameslamb added bug Something isn't working non-breaking Introduces a non-breaking change labels Jan 24, 2025
@jameslamb jameslamb requested a review from vyasr January 24, 2025 19:38
@jameslamb jameslamb requested a review from a team as a code owner January 24, 2025 19:38
Copy link
Contributor

@vyasr vyasr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops... our CI passed because we manually install the dependency. Wonderful.

@jameslamb
Copy link
Member Author

/merge

@rapids-bot rapids-bot bot merged commit fc6a862 into rapidsai:branch-25.02 Jan 24, 2025
63 checks passed
@jameslamb jameslamb deleted the fix/cuvs-libcuvs-dep branch January 27, 2025 05:25
narangvivek10 pushed a commit to SearchScale/cuvs that referenced this pull request Jan 27, 2025
`cuvs-cu{11,12}` wheels don't currently have a runtime dependency on `libcuvs-cu{11,12}`. They need one, for library-loading:

https://github.com/rapidsai/cuvs/blob/e9983e17408e6bec6f2558f9df49be97a7255417/python/cuvs/cuvs/__init__.py#L19-L25

This was missed in rapidsai#594. This PR adds it.

## Notes for Reviewers

Adding for searchability... this bug can result in issues like this at runtime when using `cuvs` installed from wheels:

> ImportError: libcuvs_c.so: cannot open shared object file: No such file or directory

Authors:
  - James Lamb (https://github.com/jameslamb)

Approvers:
  - Vyas Ramasubramani (https://github.com/vyasr)

URL: rapidsai#615
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working non-breaking Introduces a non-breaking change Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants