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 1 : pin Setuptools==69.5.1 #15882

Merged
merged 1 commit into from
May 28, 2024
Merged

Fix method 1 : pin Setuptools==69.5.1 #15882

merged 1 commit into from
May 28, 2024

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 quick fix FOR NOW would be to pin Setuptools==69.5.1

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

Checklist:

@AUTOMATIC1111 AUTOMATIC1111 merged commit 759f396 into dev May 28, 2024
6 checks passed
@AUTOMATIC1111 AUTOMATIC1111 deleted the setuptools==69.5.1 branch May 28, 2024 18:16
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 added a commit that referenced this pull request May 28, 2024
AUTOMATIC1111 added a commit that referenced this pull request Jun 8, 2024
ruchej pushed a commit to ruchej/stable-diffusion-webui that referenced this pull request Sep 30, 2024
@lawchingman lawchingman mentioned this pull request Oct 5, 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.

2 participants