I have started getting this warning when I run nbdev_prepare. Is there anything I can do about it?
setuptools: 80.9.0
C:\Users\xxx\AppData\Local\Programs\Python\Python39\lib\site-packages\nbdev\doclinks.py:17: 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
Hello!
You’re getting a warning because nbdev uses pkg_resources, which is deprecated by setuptools. To address it, first try updating nbdev (pip install --upgrade nbdev). If that doesn’t work, you can temporarily suppress the warning by pinning your setuptools version to less than 81 (pip install “setuptools<81”).
Thanks for the tip, Oliver! I was wondering what was causing that warning to pop up. Updating nbdev sounds like the cleaner fix, I’ll give that a try before messing with setuptools versions. Appreciate the clear explanation!