-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
joblib development version breaks sklearn.show_versions()
#22614
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
Comments
After chatting a bit with @ogrisel, it may be that the most pragmatic way of tackling this issue would be to reintroduce an unused
Cons:
|
If joblib devs are okay with this, then I think this is the best path forward. If |
I think we can just keep on importing distutils for nothing in joblib for one year to ensure a safe overlap. But we need to switch to |
All the work mentioned above has been done in joblib/joblib#1277 and #22621, the latter requires #22617 to be merged first. |
When we release joblib (soonish let's say a matter of weeks) we will break
sklearn.show_versions()
. We may need to do a bug-fix release of scikit-learn.To reproduce:
mamba create -n test-env scikit-learn -y conda activate test-env pip install git+https://github.com/joblib/joblib python -c 'import sklearn; sklearn.show_versions()'
This is a mixture of different things:
python -c 'import pip; import setuptools'
breakspython -c 'import setuptools; import pip'
gives you only a warning about setuptools replacing distutilspip
beforesetuptools
breaks and it is considered as a won't fix: [BUG] ensure_local_distutils is failing when pip is imported before setuptools pypa/setuptools#3044. The reason is that you are not supposed toimport pip
see e.g. https://pip.pypa.io/en/latest/user_guide/#using-pip-from-your-program or Error withimport pip
in pip 9.0.2 pypa/pip#5081 (comment)distutils
version classes usage in Bump up dependency versions on the CI config joblib/joblib#1272. As a side-effectdistutils
is not imported byjoblib
and so when importingsklearn
you are anymore importingdistutils
(hencesetuptools
) before `pipand you end up in case 1 with an errorThe text was updated successfully, but these errors were encountered: