-
Notifications
You must be signed in to change notification settings - Fork 587
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
windows-latest-8-core: hostedtoolcache Python 3.9.13 no longer includes setuptools. #748
Comments
@dmitry-shibanov could you take a look? |
I'm able to work around this with the expected pip command:
|
Hello @ablatner. I've tried to reproduce the issue but it works as expected. Could you please provide a public repository to reproduce the issue? |
This seems to reproduce it: ablatner/windows-runner-test#1 It calls setup-python with 3.9.13 and then runs a script that imports Note that this uses |
As in my org's private repo, this works after manually installing setuptools with pip: ablatner/windows-runner-test#2 |
@dmitry-shibanov this is still an issue, demonstrated by my test PR. |
Hi @ablatner, The error occurs because setuptools.extern no longer includes the packaging module. This change in the setuptools library causes the ModuleNotFoundError. The setuptools library has stopped vendoring the packaging module internally, which means it is no longer accessible via setuptools.extern. For reference please visit pypa/setuptools#4457. To resolve this, modify the script to install and import the packaging module directly. This ensures the required module is available and avoids relying on internal modules within setuptools.
|
Hi @ablatner, Just a gentle reminder regarding this issue, If you have any updates or need further assistance, Please let us know. |
Description
Last ran successfully at Oct 20 3:10AM PST with
windows-latest-8-core_4cf9d486f7a5
First failed at 10:04AM PST with
windows-latest-8-core_81fb0be27f50
Both with runner version
2.309.0
This workflow began failing this morning with no updates on our end.
Platforms affected
Runner images affected
Image version and build link
windows-latest-8-core_81fb0be27f50
Is it regression?
windows-latest-8-core_4cf9d486f7a5
Expected behavior
setuptools included by default
Actual behavior
setuptools import failed
Repro steps
from setuptools.extern import packaging
The text was updated successfully, but these errors were encountered: