Skip to content
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

Outdated API, although this is not a bug, it is recommended to update it #1321

Closed
ssrsec opened this issue Sep 6, 2023 · 6 comments
Closed
Labels
enhancement New feature or request Priority: High
Milestone

Comments

@ssrsec
Copy link

ssrsec commented Sep 6, 2023

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

@ssrsec ssrsec added the bug Something isn't working label Sep 6, 2023
@saltasatelites
Copy link

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.

@shelld3v shelld3v added enhancement New feature or request Priority: Medium and removed bug Something isn't working labels Sep 27, 2023
@shelld3v shelld3v added this to the v0.4.4 milestone Dec 30, 2023
@nrathaus
Copy link

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:
python/importlib_metadata#450

@nrathaus
Copy link

If this looks like a worthwhile direction, I can work on it @shelld3v

@shelld3v
Copy link
Collaborator

shelld3v commented Aug 2, 2024

Hi @nrathaus, are you still working on this?

@nrathaus
Copy link

nrathaus commented Aug 2, 2024

No sorry

I couldn't get it to work with this library

@shelld3v
Copy link
Collaborator

shelld3v commented Aug 2, 2024

No problem @nrathaus!

Hi @ssrsec does the error still exist in the LATEST version of pip? I expect that warning to be removed in the latest version of pip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Priority: High
Projects
None yet
Development

No branches or pull requests

4 participants