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

Fix method 2 : patch__pkg_resources__packaging #15883

Closed
wants to merge 1 commit into from

Conversation

w-e-w
Copy link
Collaborator

@w-e-w w-e-w commented May 25, 2024

Description

ImportError: cannot import name 'packaging' from 'pkg_resources' (venv\lib\site-packages\pkg_resources\__init__.py)

the pkg_resources package was deprecated
https://github.com/pypa/setuptools/blob/5cbf12a9b63fd37985a4525617b46576b8ac3a7b/pkg_resources/__init__.py#L16-L17
and in setuptools=70.0.0 there was a change that breaks packeages that imports uses pkg_resources.packaging

a fix for now can be done by patching pkg_resources.extern.packaging into pkg_resources.packaging

the real fix would be to update all dependencies to not use the deprecated pkg_resources

Checklist:

@w-e-w w-e-w force-pushed the patch__pkg_resources__packaging branch from 7fbc5cd to 2cc8955 Compare May 25, 2024 06:00
w-e-w added a commit that referenced this pull request May 28, 2024
@w-e-w w-e-w mentioned this pull request May 28, 2024
4 tasks
@w-e-w w-e-w closed this May 28, 2024
w-e-w added a commit that referenced this pull request May 28, 2024
AUTOMATIC1111 added a commit that referenced this pull request Jun 8, 2024
@w-e-w w-e-w deleted the patch__pkg_resources__packaging branch June 28, 2024 03:07
ruchej pushed a commit to ruchej/stable-diffusion-webui that referenced this pull request Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant