Skip to content

Fix method 1 : pin Setuptools==69.5.1#15882

Merged
AUTOMATIC1111 merged 1 commit intodevfrom
setuptools==69.5.1
May 28, 2024
Merged

Fix method 1 : pin Setuptools==69.5.1#15882
AUTOMATIC1111 merged 1 commit intodevfrom
setuptools==69.5.1

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:

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