Skip to content

[Enhancement]: pkg_resources is deprecated #2724

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

Closed
1 task done
phi-friday opened this issue Apr 12, 2025 · 2 comments
Closed
1 task done

[Enhancement]: pkg_resources is deprecated #2724

phi-friday opened this issue Apr 12, 2025 · 2 comments
Assignees
Labels
kind/enhancement New feature or request
Milestone

Comments

@phi-friday
Copy link

phi-friday commented Apr 12, 2025

Is there an existing issue for this?

  • I have searched the existing issues

What would you like to be added?

pkg_resources is deprecated and can be replaced by importlib (which also has a backport importlib_resources, importlib_metadata).

Because pkg_resources is deprecated, a warning is raised every time you import the module.

  ***/.venv/lib/python3.13/site-packages/pymilvus/client/__init__.py:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    from pkg_resources import DistributionNotFound, get_distribution

Why is this needed?

No response

Anything else?

❯ uv pip list | grep pymilvus
pymilvus                 2.4.15
❯ uv run python --version
Python 3.13.2
@phi-friday phi-friday added the kind/enhancement New feature or request label Apr 12, 2025
@XuanYang-cn XuanYang-cn self-assigned this Apr 14, 2025
@XuanYang-cn XuanYang-cn modified the milestones: 2.6.0, 2.4.16 Apr 14, 2025
@XuanYang-cn
Copy link
Contributor

@phi-friday The warning is already fixed in pymilvus==2.5.x and pymilvus master branch. This might be release in 2.4.17, but the relase date is not decided yet.

@phi-friday
Copy link
Author

@XuanYang-cn That's good to hear, changing the milvus version is currently not possible, so we'll wait for the next release. Thanks for your reply. I'll close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants