-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] 71.0.0 fails with 'importlib_metadata' has no attribute 'EntryPoints'
on Python 3.8
#4478
Comments
This behavior is by design. Setuptools now will prefer installed packages over its vendored ones, but it can't yet declare them. That means that if you have an installed dependency but it's older than the one setuptools needs, it will not work. The workaround/fix is to install these dependencies when installing setuptools. You may be tempted to install Either that, or ensure that there aren't older versions of those dependencies installed. Eventually, we plan to have setuptools declare (and thus install) its own dependencies so you don't have to do that, but for Setuptools to do that, we first have to solve pypa/packaging-problems#342 (an ongoing effort). |
Thanks, importing those, specifically importlib_metadata fixed the problem. Shame its not automatic at the moment. Thanks for the quick response. Much appreciated. |
setuptools dependency requirements may not be satisfied with the installed packages, which are now preferred over the vendored ones with 71.0.0: pypa/setuptools#4478 Make sure that the dependencies are also upgraded when setuptools are upgraded. And install the packages into the user directory instead of running it as the 'root' user, which is not recommended. Change-Id: I12be08c1442f3dd948638a502fc37ff2877bc966 Signed-off-by: Sangwook Ha <[email protected]>
setuptools version
71.0.0
Python version
3.8
OS
Ubuntu 20.04
Additional environment information
No response
Description
This started a few hours ago when our pipeline picked up 71.0.0, works fine on 70.3.0.
Expected behavior
No error
How to Reproduce
See Description
Output
See Description
The text was updated successfully, but these errors were encountered: