DeprecationWarning:pkg_resources is deprecated as an API #924
-
When I run the pytest command in the project I get a warning: DeprecationWarning:pkg_resources is deprecated as an API env: I try to use the command .venv\lib\site-packages\dynaconf\__init__.py:5: in <module>
from dynaconf.contrib import DjangoDynaconf # noqa
.venv\lib\site-packages\dynaconf\contrib\__init__.py:4: in <module>
from dynaconf.contrib.flask_dynaconf import DynaconfConfig # noqa
.venv\lib\site-packages\dynaconf\contrib\flask_dynaconf.py:17: in <module>
import pkg_resources
.venv\lib\site-packages\pkg_resources\__init__.py:121: in <module>
warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
E DeprecationWarning: pkg_resources is deprecated as an API I'm sure it's due to But module documentation identifies that the module is deprecated. Users are directed to importlib.resources and importlib.metadata How can I fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Although the project is running fine now, I'm not sure if this will cause any bad effects. Is there any plan to replace this API? |
Beta Was this translation helpful? Give feedback.
-
Being tracked on #851 we plan to fix it for next release |
Beta Was this translation helpful? Give feedback.
-
OK,thanks for your answer |
Beta Was this translation helpful? Give feedback.
Being tracked on #851 we plan to fix it for next release