Package: src:sklearn-pandas
Version: 1.5.0-1
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster with "dpkg-buildpackage -A"
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --with python2,python3 --buildsystem=pybuild
   dh_update_autotools_config -i -O--buildsystem=pybuild
   dh_auto_configure -i -O--buildsystem=pybuild
        pybuild --configure --test-pytest -i python{version} -p 2.7
I: pybuild base:217: python2.7 setup.py config 
running config
        pybuild --configure --test-pytest -i python{version} -p 3.6
I: pybuild base:217: python3.6 setup.py config 
running config
   dh_auto_build -i -O--buildsystem=pybuild
        pybuild --build --test-pytest -i python{version} -p 2.7
I: pybuild base:217: /usr/bin/python setup.py build 

[... snipped ...]

Expecting nothing
ok
Trying:
    type(mapper5.fit_transform(data))
Expecting:
    <class 'scipy.sparse.csr.csr_matrix'>
ok
Trying:
    pipe = sklearn.pipeline.Pipeline([
        ('featurize', mapper),
        ('lm', sklearn.linear_model.LinearRegression())])
Expecting nothing
ok
Trying:
    np.round(cross_val_score(pipe, X=data.copy(), y=data.salary, scoring='r2'), 
2)
Expecting:
    array([ -1.09,  -5.3 , -15.38])
ok
Trying:
    from sklearn_pandas import CategoricalImputer
Expecting nothing
ok
Trying:
    data = np.array(['a', 'b', 'b', np.nan], dtype=object)
Expecting nothing
ok
Trying:
    imputer = CategoricalImputer()
Expecting nothing
ok
Trying:
    imputer.fit_transform(data)
Expecting:
    array(['a', 'b', 'b', 'b'], dtype=object)
ok
**********************************************************************
1 items had failures:
   3 of  45 in README.rst
45 tests in 1 items.
42 passed and 3 failed.
***Test Failed*** 3 failures.
E: pybuild pybuild:336: test: plugin distutils failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_sklearn-pandas/build; python2.7 -m 
pytest ; cd {dir}; python{version} -m doctest -v README.rst
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 2.7 returned 
exit code 13
debian/rules:8: recipe for target 'build-indep' failed
make: *** [build-indep] Error 25
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit 
status 2
--------------------------------------------------------------------------------

The above is how the build ends in my autobuilder and it's not
necessarily the relevant part.

The failure is not, however, related to using dpkg-buildpackage -A,
as it also fails in reproducible builds:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/sklearn-pandas.html

If this is really a bug in one of the build-depends, please use reassign and 
affects,
so that this is still visible in the page for this package.

Thanks.

Reply via email to