Control: tags -1 patch Hi,
the attached patch fixes the FTBFS. What is the schedule to fix the other problems with statsimage -- especially pandas? best regards Ole
>From 5c6f9ffecf8e53c32edc14326042bb4d5ca6a641 Mon Sep 17 00:00:00 2001 From: Ole Streicher <oleb...@debian.org> Date: Sat, 24 Dec 2016 14:56:07 +0100 Subject: [PATCH] Fix index type in `reshape` to be integer --- debian/changelog | 6 ++++++ debian/patches/fix_wrong_index_type.patch | 15 +++++++++++++++ debian/patches/series | 1 + 3 files changed, 22 insertions(+) create mode 100644 debian/patches/fix_wrong_index_type.patch diff --git a/debian/changelog b/debian/changelog index febebbe..bbd71aa 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +statsmodels (0.8.0~rc1+git59-gef47cd9-2) UNRELEASED; urgency=medium + + * Fix index type in `reshape` to be integer. Closes: #848782 + + -- Ole Streicher <oleb...@debian.org> Sat, 24 Dec 2016 14:56:22 +0100 + statsmodels (0.8.0~rc1+git59-gef47cd9-1) unstable; urgency=medium * Fresh upstream rc snapshot which hopefully addresses some diff --git a/debian/patches/fix_wrong_index_type.patch b/debian/patches/fix_wrong_index_type.patch new file mode 100644 index 0000000..ca284b9 --- /dev/null +++ b/debian/patches/fix_wrong_index_type.patch @@ -0,0 +1,15 @@ +Author: Ole Streicher <oleb...@debian.org> +Descrption: Fix index type in `reshape` to be integer. + +This will avoid FTBFS with numpy >= 1.12 beta +--- a/statsmodels/genmod/generalized_estimating_equations.py ++++ b/statsmodels/genmod/generalized_estimating_equations.py +@@ -2392,7 +2392,7 @@ + exog_names = [x.split("[")[0] for x in exog_names] + + params = np.reshape(self.params, +- (ncut, len(self.params) / ncut)) ++ (ncut, len(self.params) // ncut)) + + for ev in exog_values: + diff --git a/debian/patches/series b/debian/patches/series index 0f4a162..649de9c 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -5,3 +5,4 @@ up_reduce_test_precision deb_skip_test_ons390 deb_no_nbformat_for_now up_3239.patch +fix_wrong_index_type.patch -- 2.10.2