Skip to content

DeprecationWarning: pkg_resources is deprecated as an API. #1490

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

Open
otakutyrant opened this issue May 17, 2025 · 0 comments
Open

DeprecationWarning: pkg_resources is deprecated as an API. #1490

otakutyrant opened this issue May 17, 2025 · 0 comments
Labels

Comments

@otakutyrant
Copy link

otakutyrant commented May 17, 2025

There is a DeprecationWarning in tests:

pipeline/test_tokenizer.py::test_jieba
  /home/otakutyrant/Projects/stanza/.venv/lib/python3.12/site-packages/jieba/_compat.py:18: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/
pkg_resources.html
    import pkg_resources

This warning is caused by jieba from stanza/pipeline/external/jieba.py, but jieba has been unmaintained for five years. So I will make a PR to suppress the warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant