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:

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.

None yet

2 participants