--- Begin Message ---
Source: sklearn-pandas
Version: 1.1.0-1
Severity: serious
Tags: stretch sid
User: debian...@lists.debian.org
Usertags: qa-ftbfs-20160930 qa-ftbfs
Justification: FTBFS on amd64
Hi,
During a rebuild of all packages in sid, your package failed to build on
amd64.
Relevant part (hopefully):
> debian/rules build
> dh build --with python2,python3 --buildsystem=pybuild
> dh_testdir -O--buildsystem=pybuild
> dh_update_autotools_config -O--buildsystem=pybuild
> dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:184: python2.7 setup.py config
> running config
> I: pybuild base:184: python3.5 setup.py config
> running config
> dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:184: /usr/bin/python setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/sklearn_pandas
> copying sklearn_pandas/dataframe_mapper.py ->
> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/sklearn_pandas
> copying sklearn_pandas/cross_validation.py ->
> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/sklearn_pandas
> copying sklearn_pandas/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/sklearn_pandas
> copying sklearn_pandas/pipeline.py ->
> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/sklearn_pandas
> I: pybuild base:184: /usr/bin/python3 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/sklearn_pandas
> copying sklearn_pandas/dataframe_mapper.py ->
> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/sklearn_pandas
> copying sklearn_pandas/cross_validation.py ->
> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/sklearn_pandas
> copying sklearn_pandas/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/sklearn_pandas
> copying sklearn_pandas/pipeline.py ->
> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/sklearn_pandas
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:184: cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build;
> python2.7 -m pytest ; cd /<<PKGBUILDDIR>>; python2.7 -m doctest -v README.rst
> ============================= test session starts
> ==============================
> platform linux2 -- Python 2.7.12+, pytest-3.0.2, py-1.4.31, pluggy-0.3.1
> rootdir: /<<PKGBUILDDIR>>, inifile:
> collected 0 items
>
> ========================= no tests ran in 0.00 seconds
> =========================
> Trying:
> from sklearn_pandas import DataFrameMapper, cross_val_score
> Expecting nothing
> **********************************************************************
> File "README.rst", line 39, in README.rst
> Failed example:
> from sklearn_pandas import DataFrameMapper, cross_val_score
> Exception raised:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/doctest.py", line 1315, in __run
> compileflags, 1) in test.globs
> File "<doctest README.rst[0]>", line 1, in <module>
> from sklearn_pandas import DataFrameMapper, cross_val_score
> File "sklearn_pandas/__init__.py", line 3, in <module>
> from .dataframe_mapper import DataFrameMapper # NOQA
> File "sklearn_pandas/dataframe_mapper.py", line 7, in <module>
> from .cross_validation import DataWrapper
> File "sklearn_pandas/cross_validation.py", line 1, in <module>
> from sklearn import cross_validation
> File "/usr/lib/python2.7/dist-packages/sklearn/cross_validation.py",
> line 31, in <module>
> from .externals.joblib import Parallel, delayed, logger
> ImportError: cannot import name logger
> Trying:
> import pandas as pd
> Expecting nothing
> ok
> Trying:
> import numpy as np
> Expecting nothing
> ok
> Trying:
> import sklearn.preprocessing, sklearn.decomposition, \
> sklearn.linear_model, sklearn.pipeline, sklearn.metrics
> Expecting nothing
> **********************************************************************
> File "README.rst", line 45, in README.rst
> Failed example:
> import sklearn.preprocessing, sklearn.decomposition, \
> sklearn.linear_model, sklearn.pipeline, sklearn.metrics
> Exception raised:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/doctest.py", line 1315, in __run
> compileflags, 1) in test.globs
> File "<doctest README.rst[3]>", line 1, in <module>
> import sklearn.preprocessing, sklearn.decomposition, \
> File
> "/usr/lib/python2.7/dist-packages/sklearn/decomposition/__init__.py", line
> 10, in <module>
> from .kernel_pca import KernelPCA
> File
> "/usr/lib/python2.7/dist-packages/sklearn/decomposition/kernel_pca.py", line
> 15, in <module>
> from ..metrics.pairwise import pairwise_kernels
> File "/usr/lib/python2.7/dist-packages/sklearn/metrics/__init__.py",
> line 33, in <module>
> from . import cluster
> File
> "/usr/lib/python2.7/dist-packages/sklearn/metrics/cluster/__init__.py", line
> 20, in <module>
> from .unsupervised import silhouette_samples
> File
> "/usr/lib/python2.7/dist-packages/sklearn/metrics/cluster/unsupervised.py",
> line 13, in <module>
> from ..pairwise import pairwise_distances
> File "/usr/lib/python2.7/dist-packages/sklearn/metrics/pairwise.py",
> line 27, in <module>
> from ..externals.joblib import parallel
> ImportError: cannot import name parallel
> Trying:
> from sklearn.feature_extraction.text import CountVectorizer
> Expecting nothing
> ok
> Trying:
> data = pd.DataFrame({'pet': ['cat', 'dog', 'dog', 'fish', 'cat',
> 'dog', 'cat', 'fish'],
> 'children': [4., 6, 3, 3, 2, 3, 5, 4],
> 'salary': [90, 24, 44, 27, 32, 59, 36, 27]})
> Expecting nothing
> ok
> Trying:
> mapper = DataFrameMapper([
> ('pet', sklearn.preprocessing.LabelBinarizer()),
> (['children'], sklearn.preprocessing.StandardScaler())
> ])
> Expecting nothing
> **********************************************************************
> File "README.rst", line 66, in README.rst
> Failed example:
> mapper = DataFrameMapper([
> ('pet', sklearn.preprocessing.LabelBinarizer()),
> (['children'], sklearn.preprocessing.StandardScaler())
> ])
> Exception raised:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/doctest.py", line 1315, in __run
> compileflags, 1) in test.globs
> File "<doctest README.rst[6]>", line 1, in <module>
> mapper = DataFrameMapper([
> NameError: name 'DataFrameMapper' is not defined
> Trying:
> data['children'].shape
> Expecting:
> (8,)
> ok
> Trying:
> data[['children']].shape
> Expecting:
> (8, 1)
> ok
> Trying:
> np.round(mapper.fit_transform(data.copy()), 2)
> Expecting:
> array([[ 1. , 0. , 0. , 0.21],
> [ 0. , 1. , 0. , 1.88],
> [ 0. , 1. , 0. , -0.63],
> [ 0. , 0. , 1. , -0.63],
> [ 1. , 0. , 0. , -1.46],
> [ 0. , 1. , 0. , -0.63],
> [ 1. , 0. , 0. , 1.04],
> [ 0. , 0. , 1. , 0.21]])
> **********************************************************************
> File "README.rst", line 87, in README.rst
> Failed example:
> np.round(mapper.fit_transform(data.copy()), 2)
> Exception raised:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/doctest.py", line 1315, in __run
> compileflags, 1) in test.globs
> File "<doctest README.rst[9]>", line 1, in <module>
> np.round(mapper.fit_transform(data.copy()), 2)
> NameError: name 'mapper' is not defined
> Trying:
> sample = pd.DataFrame({'pet': ['cat'], 'children': [5.]})
> Expecting nothing
> ok
> Trying:
> np.round(mapper.transform(sample), 2)
> Expecting:
> array([[ 1. , 0. , 0. , 1.04]])
> **********************************************************************
> File "README.rst", line 102, in README.rst
> Failed example:
> np.round(mapper.transform(sample), 2)
> Exception raised:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/doctest.py", line 1315, in __run
> compileflags, 1) in test.globs
> File "<doctest README.rst[11]>", line 1, in <module>
> np.round(mapper.transform(sample), 2)
> NameError: name 'mapper' is not defined
> Trying:
> mapper2 = DataFrameMapper([
> (['children', 'salary'], sklearn.decomposition.PCA(1))
> ])
> Expecting nothing
> **********************************************************************
> File "README.rst", line 110, in README.rst
> Failed example:
> mapper2 = DataFrameMapper([
> (['children', 'salary'], sklearn.decomposition.PCA(1))
> ])
> Exception raised:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/doctest.py", line 1315, in __run
> compileflags, 1) in test.globs
> File "<doctest README.rst[12]>", line 1, in <module>
> mapper2 = DataFrameMapper([
> NameError: name 'DataFrameMapper' is not defined
> Trying:
> np.round(mapper2.fit_transform(data.copy()), 1)
> Expecting:
> array([[ 47.6],
> [-18.4],
> [ 1.6],
> [-15.4],
> [-10.4],
> [ 16.6],
> [ -6.4],
> [-15.4]])
> **********************************************************************
> File "README.rst", line 116, in README.rst
> Failed example:
> np.round(mapper2.fit_transform(data.copy()), 1)
> Exception raised:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/doctest.py", line 1315, in __run
> compileflags, 1) in test.globs
> File "<doctest README.rst[13]>", line 1, in <module>
> np.round(mapper2.fit_transform(data.copy()), 1)
> NameError: name 'mapper2' is not defined
> Trying:
> mapper3 = DataFrameMapper([
> (['age'], [sklearn.preprocessing.Imputer(),
> sklearn.preprocessing.StandardScaler()])])
> Expecting nothing
> **********************************************************************
> File "README.rst", line 132, in README.rst
> Failed example:
> mapper3 = DataFrameMapper([
> (['age'], [sklearn.preprocessing.Imputer(),
> sklearn.preprocessing.StandardScaler()])])
> Exception raised:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/doctest.py", line 1315, in __run
> compileflags, 1) in test.globs
> File "<doctest README.rst[14]>", line 1, in <module>
> mapper3 = DataFrameMapper([
> NameError: name 'DataFrameMapper' is not defined
> Trying:
> data_3 = pd.DataFrame({'age': [1, np.nan, 3]})
> Expecting nothing
> ok
> Trying:
> mapper3.fit_transform(data_3)
> Expecting:
> array([[-1.22474487],
> [ 0. ],
> [ 1.22474487]])
> **********************************************************************
> File "README.rst", line 136, in README.rst
> Failed example:
> mapper3.fit_transform(data_3)
> Exception raised:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/doctest.py", line 1315, in __run
> compileflags, 1) in test.globs
> File "<doctest README.rst[16]>", line 1, in <module>
> mapper3.fit_transform(data_3)
> NameError: name 'mapper3' is not defined
> Trying:
> mapper3 = DataFrameMapper([
> ('pet', sklearn.preprocessing.LabelBinarizer()),
> ('children', None)
> ])
> Expecting nothing
> **********************************************************************
> File "README.rst", line 146, in README.rst
> Failed example:
> mapper3 = DataFrameMapper([
> ('pet', sklearn.preprocessing.LabelBinarizer()),
> ('children', None)
> ])
> Exception raised:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/doctest.py", line 1315, in __run
> compileflags, 1) in test.globs
> File "<doctest README.rst[17]>", line 1, in <module>
> mapper3 = DataFrameMapper([
> NameError: name 'DataFrameMapper' is not defined
> Trying:
> np.round(mapper3.fit_transform(data.copy()))
> Expecting:
> array([[ 1., 0., 0., 4.],
> [ 0., 1., 0., 6.],
> [ 0., 1., 0., 3.],
> [ 0., 0., 1., 3.],
> [ 1., 0., 0., 2.],
> [ 0., 1., 0., 3.],
> [ 1., 0., 0., 5.],
> [ 0., 0., 1., 4.]])
> **********************************************************************
> File "README.rst", line 150, in README.rst
> Failed example:
> np.round(mapper3.fit_transform(data.copy()))
> Exception raised:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/doctest.py", line 1315, in __run
> compileflags, 1) in test.globs
> File "<doctest README.rst[18]>", line 1, in <module>
> np.round(mapper3.fit_transform(data.copy()))
> NameError: name 'mapper3' is not defined
> Trying:
> mapper4 = DataFrameMapper([
> ('pet', CountVectorizer()),
> ], sparse=True)
> Expecting nothing
> **********************************************************************
> File "README.rst", line 166, in README.rst
> Failed example:
> mapper4 = DataFrameMapper([
> ('pet', CountVectorizer()),
> ], sparse=True)
> Exception raised:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/doctest.py", line 1315, in __run
> compileflags, 1) in test.globs
> File "<doctest README.rst[19]>", line 1, in <module>
> mapper4 = DataFrameMapper([
> NameError: name 'DataFrameMapper' is not defined
> Trying:
> type(mapper4.fit_transform(data))
> Expecting:
> <class 'scipy.sparse.csr.csr_matrix'>
> **********************************************************************
> File "README.rst", line 169, in README.rst
> Failed example:
> type(mapper4.fit_transform(data))
> Exception raised:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/doctest.py", line 1315, in __run
> compileflags, 1) in test.globs
> File "<doctest README.rst[20]>", line 1, in <module>
> type(mapper4.fit_transform(data))
> NameError: name 'mapper4' is not defined
> Trying:
> pipe = sklearn.pipeline.Pipeline([
> ('featurize', mapper),
> ('lm', sklearn.linear_model.LinearRegression())])
> Expecting nothing
> **********************************************************************
> File "README.rst", line 181, in README.rst
> Failed example:
> pipe = sklearn.pipeline.Pipeline([
> ('featurize', mapper),
> ('lm', sklearn.linear_model.LinearRegression())])
> Exception raised:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/doctest.py", line 1315, in __run
> compileflags, 1) in test.globs
> File "<doctest README.rst[21]>", line 1, in <module>
> pipe = sklearn.pipeline.Pipeline([
> AttributeError: 'module' object has no attribute 'pipeline'
> Trying:
> np.round(cross_val_score(pipe, data.copy(), data.salary, 'r2'), 2)
> Expecting:
> array([ -1.09, -5.3 , -15.38])
> **********************************************************************
> File "README.rst", line 184, in README.rst
> Failed example:
> np.round(cross_val_score(pipe, data.copy(), data.salary, 'r2'), 2)
> Exception raised:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/doctest.py", line 1315, in __run
> compileflags, 1) in test.globs
> File "<doctest README.rst[22]>", line 1, in <module>
> np.round(cross_val_score(pipe, data.copy(), data.salary, 'r2'), 2)
> NameError: name 'cross_val_score' is not defined
> **********************************************************************
> 1 items had failures:
> 15 of 23 in README.rst
> 23 tests in 1 items.
> 8 passed and 15 failed.
> ***Test Failed*** 15 failures.
> E: pybuild pybuild:276: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/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
If the failure looks somehow time/timezone related:
Note that this rebuild was performed without the 'tzdata' package
installed in the chroot. tzdata used be (transitively) part of
build-essential, but it no longer is. If this package requires it to
build, it should be added to build-depends. For the release team's
opinion on this, see
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836940#185
The full build log is available from:
http://aws-logs.debian.net/2016/09/30/sklearn-pandas_1.1.0-1_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
--- End Message ---