-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
Issue 164, pipdeptree doesn't work with python 3.11 #169
Conversation
Signed-off-by: Bernát Gábor <[email protected]>
Signed-off-by: Bernát Gábor <[email protected]>
Signed-off-by: Bernát Gábor <[email protected]>
Signed-off-by: Bernát Gábor <[email protected]>
Signed-off-by: Bernát Gábor <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase on main branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR adds 1k lines and remove 1k. In this form is just too much. We'll need to reopen a new PR that's cleanly on top of the current main.
Sorry for the mess with git, I created a new one #173 |
Hi, I'm trying to fix issue #164 which makes pipdeptree does not work with python 3.11.
Since python 3.11, pip try to use
importlib.metadata.Distribution
instead ofpkg_resources.Distribution
.https://github.com/pypa/pip/blob/e2c9c40edeb65b9d26c13a12dbe5642dc2e00fd0/src/pip/_internal/metadata/__init__.py#L45-L49
Currently there is a workaround which is set
_PIP_USE_IMPORTLIB_METADATA=0
as mentioned in #164 (comment).But I think it should be better to explicit import
pkg_resources
and use it.