Skip to content

remove warning from nbdev as pkg_resources is already deprecated #1522

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kurianbenoy-sarvam
Copy link

@kurianbenoy-sarvam kurianbenoy-sarvam commented Jun 14, 2025

@jph00 I have constantly getting this warning in my nbdev projects for the last few months. Today is the day to fix it.

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,importlib

(sarvamai-dubbing) ➜  sarvamai-dubbing git:(main) ✗ nbdev_prepare
/Users/kurianbenoy/git/dubbing-repos/sarvamai-dubbing/.venv/lib/python3.12/site-packages/nbdev/doclinks.py:20: 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,importlib
  • Many thanks to you and @hamelsmu for building nbdev. I now maintain packages with 1M+ downloads all thanks to you. I hope you remeber me, as I was the kid, who got kicked off from fast.ai class :)

@kurianbenoy-sarvam kurianbenoy-sarvam changed the title remove deprecate pkg_resource from nbdev remove deprecated pkg_resources from nbdev Jun 14, 2025
@kurianbenoy-sarvam kurianbenoy-sarvam changed the title remove deprecated pkg_resources from nbdev remove warning from nbdev as pkg_resources is already deprecated Jun 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant