Deprecation warnings related to usage of pkg_resources
adam2392 opened this issue · comments
Adam Li commented
Subject of the issue
I am using pgmpy
inside some code and I noticed there are a bunch of warnings related to deprecation of pkg_resources:
/Users/adam2392/miniforge3/envs/pywhy-graphs/lib/python3.9/site-packages/pgmpy/utils/utils.py:3: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import resource_filename
../../miniforge3/envs/pywhy-graphs/lib/python3.9/site-packages/pkg_resources/__init__.py:2871
/Users/adam2392/miniforge3/envs/pywhy-graphs/lib/python3.9/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('mpl_toolkits')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
Your environment
- pgmpy version v0.1.23
- Python version 3.9
- Operating System Mac OSX
Ankur Ankan commented
@adam2392 Thanks for reporting the issue, it should be fixed now.