larksuite / larksuite/oapi-sdk-python
UserWarning: pkg_resources is deprecated as an API
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 559
- Forks
- 102
- PR merge metrics
- No merged PRs in 30d
Description
python: 3.13
setuptools:80.9.0 (已是最新版本)
一运行就报下面的错误
C:\Users\Administrator\AppData\Local\Programs\Python\Python313\Lib\site-packages\lark_oapi\ws\pb\google_init_.py:2: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import('pkg_resources').declare_namespace(name)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with lark_oapi/ws/pb/google/init.py, especially the namespace declaration that emits the warning, and reproduce the issue with Python 3.13. Check how this generated package is included and verify that the warning no longer appears while the SDK still imports successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100