Skip to content

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 requested a review from AUTOMATIC1111 as a code owner May 25, 2024 05:49
@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
@FurkanGozukara
Copy link

someone still getting this error why could be?

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.

3 participants