-
-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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 CI failing with: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release #21674
Comments
This is caused by the fact that it's trying to fallback to https://github.com/pypa/setuptools/blob/main/pkg_resources/_vendor/packaging/version.py#L42-L51 But our log linked above is getting an invalid version on the string but I do not understand yet why we get this when importing |
It seems that it's caused by the Edit: I have no idea how this code can possibly work without raising a warning and an invalidversion exception. It seems broken to me and it's not related to invalid metadata in the atomicwrites package. |
And it doesn't seem like an active repo, not sure how long it'll take for them to fix and have a release. Are you planning to wrap our import and catch warnings there? |
The root cause issue has been reported here: pypa/setuptools#2885 Maybe we can setup a workaround when importing setuptools in the scikit-learn code base for the time being. |
Let's see if #21676 works as expected. |
Looks like the issue was fixed in pypa/setuptools#2889 and |
The windows build
py37_conda_forge_mkl
gets setuptools 59.1.0 that makes ourCHECK_WARNINGS: 'true'
setting fail.Other CI jobs configured with
CHECK_WARNINGS: 'true'
will start to fail as soon as the upgrade from setuptools 58 to 59.Log of an example failing job:
https://dev.azure.com/scikit-learn/scikit-learn/_build/results?buildId=35004&view=logs&j=55156e43-4792-506d-3947-cdbc5ace0742&t=6d510dcd-35d3-5892-347a-3b74433a7ac4&l=6742
The text was updated successfully, but these errors were encountered: