-
-
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] vendored importlib.metadata of setuptools 60.9.0 fails with 'PathDistribution' object has no attribute '_normalized_name' #3102
Comments
I'm very sorry if this belongs to nox or virtualenv, but I have no clue where to start |
I have the same issue, the setup is failing python 3.7.1 with poetry |
Same issue, running Python 3.7.3 and poetry@latest. Downgrade to |
I'm also encountering this when using the latest |
Work around <pypa/setuptools#3102> by pinning our base image to a version known to have a working cached layer for the Blubber generated `RUN python3 "-m" "easy_install" "pip" && python3 "-m" "pip" "install" "-U" "setuptools" "wheel" "tox" "pip"` instruction. In the .pipeline/*.Dockerfile files that we generate and commit based on Blubber builds we also manually add `setuptools!=60.9.0` constraints so that the broken package will not be installed locally where we cannot know what cached layers may be available. This is a temporary rather than long term solution, but hopefully it will get CI and local dev working for folks again until a better solution is found. Bug: T301690 Change-Id: I2ca341350b3295500a88c0b14990c35a28aa30eb
I was able to replicate the error with these steps:
The issue is that It's not yet obvious to me what the right fix is going to be. I would not expect the issue to affect Python 3.10 or later, as in that case, vendored importlib_metadata is not used. |
…lder importlib_metadata. Fixes #3102.
…lder importlib_metadata. Fixes #3102.
I can confirm that the proposed (ugly) workaround does address the issue:
|
…lder importlib_metadata. Fixes #3102.
setuptools version
setuptools==60.9.0
Python version
3.7.1
OS
Linux
Additional environment information
Pip freeze
Description
If I use the below python dependencies (mainly virtualenv, setuptools and importlib.metadata), setuptools fails with an error.
It works fine with the previous version of setuptools and newer versions of importlib.metadata. It seems like, that the current vendored version of importlib.metadata is not compatible with my environment.
Expected behavior
It should work fine
How to Reproduce
nox -s
Output
The text was updated successfully, but these errors were encountered: