-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
DeprecationWarning: pkg_resources is deprecated as an API #16756
Comments
@Borda Do you know what's the alternative here? |
I'm not super familiar with namespace packages, but based on the link in the warning message, it seems like you're supposed to set the |
Note that the the warning message changed slightly in setuptools 67.4:
|
Any updates on this? |
@Borda Should we do what @adamjstewart said #16756 (comment)? |
I am not much familiar with namespace, let me check it |
Update: setuptools 67.5 officially deprecates all of |
See TLDR if you require namespace packages (searching where there isn't nessecarily a from setuptools import find_namespace_packages
setup(
# ...
packages=find_namespace_packages(),
# ...
) Otherwise: from setuptools import find_packages
setup(
# ...
packages=find_packages(),
# ...
) |
Bug description
setuptools 67.3, released yesterday, officially deprecates
pkg_resources.declare_namespace
: https://setuptools.pypa.io/en/latest/history.html#v67-3-0How to reproduce the bug
With setuptools 67.3+ installed:
$ python -Werror -c 'from pytorch_lightning import LightningDataModule'
Error messages and logs
Environment
Current environment
More info
No response
cc @tchaton
The text was updated successfully, but these errors were encountered: