Bug#923937: debian local patch uses the deprecated imp module, causing the python-scipy autopkg tests to fail

Matthias Klose doko at debian.org
Thu Mar 7 13:12:32 GMT 2019


Package: src:scikit-learn
Version: 0.20.2+dfsg-6
Severity: important
Tags: sid buster

The debian local patch uses the deprecated imp module, causing the python-scipy
autopkg tests to fail.

While joblib is patched out, there is still sklearn/utils/_joblib.py which tries
to import the local module when SKLEARN_SITE_JOBLIB is not defined. I think this
should be patched as well to always import the site joblib.


autopkgtest [10:01:06]: test import:  - - - - - - - - - - results - - - - - - -
- - -
import               FAIL stderr:
/usr/lib/python3/dist-packages/sklearn/externals/joblib.py:1:
DeprecationWarning: the imp module is deprecated in favour of importlib; see the
module's documentation for alternative uses
autopkgtest [10:01:06]: test import:  - - - - - - - - - - stderr - - - - - - - - - -
/usr/lib/python3/dist-packages/sklearn/externals/joblib.py:1:
DeprecationWarning: the imp module is deprecated in favour of importlib; see the
module's documentation for alternative uses
  import imp
autopkgtest [10:01:06]: @@@@@@@@@@@@@@@@@@@@ summary
import               FAIL stderr:
/usr/lib/python3/dist-packages/sklearn/externals/joblib.py:1:
DeprecationWarning: the imp module is deprecated in favour of importlib; see the
module's documentation for alternative uses



More information about the debian-science-maintainers mailing list