Open ssrsec opened 10 months ago
https://setuptools.pypa.io/en/latest/pkg_resources.html :
Attention
Use of pkg_resources is deprecated in favor of importlib.resources, importlib.metadata and their backports (importlib_resources, importlib_metadata). Some useful APIs are also provided by packaging (e.g. requirements and version parsing). Users should refrain from new usage of pkg_resources and should work to port to importlib-based solutions.
An option can be to use what is seen here: https://github.com/HansBug/hbutils/blob/main/hbutils/system/python/package.py#L202
I reached this code from here: https://github.com/python/importlib_metadata/issues/450
If this looks like a worthwhile direction, I can work on it @shelld3v
dirsearch/dirsearch.py:23: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import DistributionNotFound, VersionConflict