Your message dated Thu, 02 Feb 2023 23:06:42 +0000
with message-id <e1pnifc-00epll...@fasolo.debian.org>
and subject line Bug#1030208: fixed in statsmodels 0.13.5+dfsg-5
has caused the Debian Bug report #1030208,
regarding statsmodels FTBFS on 32bit
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1030208: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1030208
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: statsmodels
Version: 0.13.5+dfsg-4
Severity: serious
Tags: ftbfs

https://buildd.debian.org/status/logs.php?pkg=statsmodels&ver=0.13.5%2Bdfsg-4%2Bb1

...
=================================== FAILURES ===================================
_______________________ TestDiscretizedGamma.test_basic ________________________

self = <statsmodels.distributions.tests.test_discrete.TestDiscretizedGamma 
object at 0xefb687f0>

    def test_basic(self):
        d_offset = self.d_offset
        ddistr = self.ddistr
        paramg = self.paramg
        paramd = self.paramd
        shapes = self.shapes
        start_params = self.start_params
    
        np.random.seed(987146)
    
        dp = DiscretizedCount(ddistr, d_offset)
        assert dp.shapes == shapes
        xi = np.arange(5)
        p = dp._pmf(xi, *paramd)
    
        cdf1 = ddistr.cdf(xi, *paramg)
        p1 = np.diff(cdf1)
        assert_allclose(p[: len(p1)], p1, rtol=1e-13)
        cdf = dp._cdf(xi, *paramd)
        assert_allclose(cdf[: len(cdf1) - 1], cdf1[1:], rtol=1e-13)
    
        # check that scipy dispatch methods work
        p2 = dp.pmf(xi, *paramd)
        assert_allclose(p2, p, rtol=1e-13)
        cdf2 = dp.cdf(xi, *paramd)
        assert_allclose(cdf2, cdf, rtol=1e-13)
        sf = dp.sf(xi, *paramd)
        assert_allclose(sf, 1 - cdf, rtol=1e-13)
    
        nobs = 2000
    
        xx = dp.rvs(*paramd, size=nobs)  # , random_state=987146)
        # check that we go a non-trivial rvs
        assert len(xx) == nobs
        assert xx.var() > 0.001
        mod = DiscretizedModel(xx, distr=dp)
        res = mod.fit(start_params=start_params)
        p = mod.predict(res.params, which="probs")
        args = self.convert_params(res.params)
        p1 = -np.diff(ddistr.sf(np.arange(21), *args))
        assert_allclose(p, p1, rtol=1e-13)
    
        # using cdf limits precision to computation around 1
        p1 = np.diff(ddistr.cdf(np.arange(21), *args))
        assert_allclose(p, p1, rtol=1e-13, atol=1e-15)
        freq = np.bincount(xx.astype(int))
        # truncate at last observed
        k = len(freq)
        if k > 10:
            # reduce low count bins for heavy tailed distributions
            k = 10
            freq[k - 1] += freq[k:].sum()
            freq = freq[:k]
        p = mod.predict(res.params, which="probs", k_max=k)
        p[k - 1] += 1 - p[:k].sum()
        tchi2 = stats.chisquare(freq, p[:k] * nobs)
        assert tchi2.pvalue > 0.01
    
        # estimated distribution methods rvs, ppf
        # frozen distribution with estimated parameters
        # Todo results method
        dfr = mod.get_distr(res.params)
        nobs_rvs = 500
        rvs = dfr.rvs(size=nobs_rvs)
>       freq = np.bincount(rvs)

../.pybuild/cpython3_3.11_statsmodels/build/statsmodels/distributions/tests/test_discrete.py:302:
 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

args = (array([2, 0, 3, 1, 1, 2, 2, 5, 1, 1, 1, 3, 2, 1, 2, 0, 2, 2, 4, 2, 2, 1,
       3, 2, 1, 1, 1, 1, 4, 2, 4, 2, 1, 1, 2... 2, 4, 1, 2, 1, 2, 0, 1, 1, 2, 
1, 2, 2, 2, 4, 0,
       4, 1, 1, 2, 2, 1, 1, 3, 2, 3, 2, 1, 3, 1, 1, 2], dtype=int64),)
kwargs = {}
relevant_args = (array([2, 0, 3, 1, 1, 2, 2, 5, 1, 1, 1, 3, 2, 1, 2, 0, 2, 2, 
4, 2, 2, 1,
       3, 2, 1, 1, 1, 1, 4, 2, 4, 2, 1, 1, 2..., 1, 2, 1, 2, 0, 1, 1, 2, 1, 2, 
2, 2, 4, 0,
       4, 1, 1, 2, 2, 1, 1, 3, 2, 3, 2, 1, 3, 1, 1, 2], dtype=int64), None)

>   ???
E   TypeError: Cannot cast array data from dtype('int64') to dtype('int32') 
according to the rule 'safe'

<__array_function__ internals>:200: TypeError
----------------------------- Captured stdout call -----------------------------
Optimization terminated successfully.
         Current function value: 1.491508
         Iterations: 64
         Function evaluations: 122
____________________ TestDiscretizedExponential.test_basic _____________________

self = 
<statsmodels.distributions.tests.test_discrete.TestDiscretizedExponential 
object at 0xef920d90>

    def test_basic(self):
        d_offset = self.d_offset
        ddistr = self.ddistr
        paramg = self.paramg
        paramd = self.paramd
        shapes = self.shapes
        start_params = self.start_params
    
        np.random.seed(987146)
    
        dp = DiscretizedCount(ddistr, d_offset)
        assert dp.shapes == shapes
        xi = np.arange(5)
        p = dp._pmf(xi, *paramd)
    
        cdf1 = ddistr.cdf(xi, *paramg)
        p1 = np.diff(cdf1)
        assert_allclose(p[: len(p1)], p1, rtol=1e-13)
        cdf = dp._cdf(xi, *paramd)
        assert_allclose(cdf[: len(cdf1) - 1], cdf1[1:], rtol=1e-13)
    
        # check that scipy dispatch methods work
        p2 = dp.pmf(xi, *paramd)
        assert_allclose(p2, p, rtol=1e-13)
        cdf2 = dp.cdf(xi, *paramd)
        assert_allclose(cdf2, cdf, rtol=1e-13)
        sf = dp.sf(xi, *paramd)
        assert_allclose(sf, 1 - cdf, rtol=1e-13)
    
        nobs = 2000
    
        xx = dp.rvs(*paramd, size=nobs)  # , random_state=987146)
        # check that we go a non-trivial rvs
        assert len(xx) == nobs
        assert xx.var() > 0.001
        mod = DiscretizedModel(xx, distr=dp)
        res = mod.fit(start_params=start_params)
        p = mod.predict(res.params, which="probs")
        args = self.convert_params(res.params)
        p1 = -np.diff(ddistr.sf(np.arange(21), *args))
        assert_allclose(p, p1, rtol=1e-13)
    
        # using cdf limits precision to computation around 1
        p1 = np.diff(ddistr.cdf(np.arange(21), *args))
        assert_allclose(p, p1, rtol=1e-13, atol=1e-15)
        freq = np.bincount(xx.astype(int))
        # truncate at last observed
        k = len(freq)
        if k > 10:
            # reduce low count bins for heavy tailed distributions
            k = 10
            freq[k - 1] += freq[k:].sum()
            freq = freq[:k]
        p = mod.predict(res.params, which="probs", k_max=k)
        p[k - 1] += 1 - p[:k].sum()
        tchi2 = stats.chisquare(freq, p[:k] * nobs)
        assert tchi2.pvalue > 0.01
    
        # estimated distribution methods rvs, ppf
        # frozen distribution with estimated parameters
        # Todo results method
        dfr = mod.get_distr(res.params)
        nobs_rvs = 500
        rvs = dfr.rvs(size=nobs_rvs)
>       freq = np.bincount(rvs)

../.pybuild/cpython3_3.11_statsmodels/build/statsmodels/distributions/tests/test_discrete.py:302:
 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

args = (array([ 0,  0,  5,  2,  1,  1,  6,  1,  2,  1,  3,  3,  1,  2,  1,  9,  
1,
       10,  4,  1,  7,  1,  2, 13,  1,  4,...  2,  0, 10, 11,  5,  0,  7,  1,  
8,  1,  6,  0,  1,  1,  3,  0,  2,
        1,  4,  1,  7,  0,  7,  9], dtype=int64),)
kwargs = {}
relevant_args = (array([ 0,  0,  5,  2,  1,  1,  6,  1,  2,  1,  3,  3,  1,  2, 
 1,  9,  1,
       10,  4,  1,  7,  1,  2, 13,  1,  4,... 0, 10, 11,  5,  0,  7,  1,  8,  
1,  6,  0,  1,  1,  3,  0,  2,
        1,  4,  1,  7,  0,  7,  9], dtype=int64), None)

>   ???
E   TypeError: Cannot cast array data from dtype('int64') to dtype('int32') 
according to the rule 'safe'

<__array_function__ internals>:200: TypeError
----------------------------- Captured stdout call -----------------------------
Optimization terminated successfully.
         Current function value: 2.617352
         Iterations: 22
         Function evaluations: 44
_______________________ TestDiscretizedLomax.test_basic ________________________

self = <statsmodels.distributions.tests.test_discrete.TestDiscretizedLomax 
object at 0xef9209d0>

    def test_basic(self):
        d_offset = self.d_offset
        ddistr = self.ddistr
        paramg = self.paramg
        paramd = self.paramd
        shapes = self.shapes
        start_params = self.start_params
    
        np.random.seed(987146)
    
        dp = DiscretizedCount(ddistr, d_offset)
        assert dp.shapes == shapes
        xi = np.arange(5)
        p = dp._pmf(xi, *paramd)
    
        cdf1 = ddistr.cdf(xi, *paramg)
        p1 = np.diff(cdf1)
        assert_allclose(p[: len(p1)], p1, rtol=1e-13)
        cdf = dp._cdf(xi, *paramd)
        assert_allclose(cdf[: len(cdf1) - 1], cdf1[1:], rtol=1e-13)
    
        # check that scipy dispatch methods work
        p2 = dp.pmf(xi, *paramd)
        assert_allclose(p2, p, rtol=1e-13)
        cdf2 = dp.cdf(xi, *paramd)
        assert_allclose(cdf2, cdf, rtol=1e-13)
        sf = dp.sf(xi, *paramd)
        assert_allclose(sf, 1 - cdf, rtol=1e-13)
    
        nobs = 2000
    
        xx = dp.rvs(*paramd, size=nobs)  # , random_state=987146)
        # check that we go a non-trivial rvs
        assert len(xx) == nobs
        assert xx.var() > 0.001
        mod = DiscretizedModel(xx, distr=dp)
        res = mod.fit(start_params=start_params)
        p = mod.predict(res.params, which="probs")
        args = self.convert_params(res.params)
        p1 = -np.diff(ddistr.sf(np.arange(21), *args))
        assert_allclose(p, p1, rtol=1e-13)
    
        # using cdf limits precision to computation around 1
        p1 = np.diff(ddistr.cdf(np.arange(21), *args))
        assert_allclose(p, p1, rtol=1e-13, atol=1e-15)
        freq = np.bincount(xx.astype(int))
        # truncate at last observed
        k = len(freq)
        if k > 10:
            # reduce low count bins for heavy tailed distributions
            k = 10
            freq[k - 1] += freq[k:].sum()
            freq = freq[:k]
        p = mod.predict(res.params, which="probs", k_max=k)
        p[k - 1] += 1 - p[:k].sum()
        tchi2 = stats.chisquare(freq, p[:k] * nobs)
        assert tchi2.pvalue > 0.01
    
        # estimated distribution methods rvs, ppf
        # frozen distribution with estimated parameters
        # Todo results method
        dfr = mod.get_distr(res.params)
        nobs_rvs = 500
        rvs = dfr.rvs(size=nobs_rvs)
>       freq = np.bincount(rvs)

../.pybuild/cpython3_3.11_statsmodels/build/statsmodels/distributions/tests/test_discrete.py:302:
 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

args = (array([ 0,  0,  1,  0,  0,  0,  1,  0,  0,  0,  0,  0,  0,  0,  0,  2,  
0,
        2,  0,  0,  1,  0,  0,  4,  0,  0,...  0,  0,  2,  3,  1,  0,  1,  0,  
2,  0,  1,  0,  0,  0,  0,  0,  0,
        0,  0,  0,  1,  0,  1,  2], dtype=int64),)
kwargs = {}
relevant_args = (array([ 0,  0,  1,  0,  0,  0,  1,  0,  0,  0,  0,  0,  0,  0, 
 0,  2,  0,
        2,  0,  0,  1,  0,  0,  4,  0,  0,... 0,  2,  3,  1,  0,  1,  0,  2,  
0,  1,  0,  0,  0,  0,  0,  0,
        0,  0,  0,  1,  0,  1,  2], dtype=int64), None)

>   ???
E   TypeError: Cannot cast array data from dtype('int64') to dtype('int32') 
according to the rule 'safe'

<__array_function__ internals>:200: TypeError
----------------------------- Captured stdout call -----------------------------
Optimization terminated successfully.
         Current function value: 1.294980
         Iterations: 51
         Function evaluations: 101
_______________________ TestDiscretizedBurr12.test_basic _______________________

self = <statsmodels.distributions.tests.test_discrete.TestDiscretizedBurr12 
object at 0xef920990>

    def test_basic(self):
        d_offset = self.d_offset
        ddistr = self.ddistr
        paramg = self.paramg
        paramd = self.paramd
        shapes = self.shapes
        start_params = self.start_params
    
        np.random.seed(987146)
    
        dp = DiscretizedCount(ddistr, d_offset)
        assert dp.shapes == shapes
        xi = np.arange(5)
        p = dp._pmf(xi, *paramd)
    
        cdf1 = ddistr.cdf(xi, *paramg)
        p1 = np.diff(cdf1)
        assert_allclose(p[: len(p1)], p1, rtol=1e-13)
        cdf = dp._cdf(xi, *paramd)
        assert_allclose(cdf[: len(cdf1) - 1], cdf1[1:], rtol=1e-13)
    
        # check that scipy dispatch methods work
        p2 = dp.pmf(xi, *paramd)
        assert_allclose(p2, p, rtol=1e-13)
        cdf2 = dp.cdf(xi, *paramd)
        assert_allclose(cdf2, cdf, rtol=1e-13)
        sf = dp.sf(xi, *paramd)
        assert_allclose(sf, 1 - cdf, rtol=1e-13)
    
        nobs = 2000
    
        xx = dp.rvs(*paramd, size=nobs)  # , random_state=987146)
        # check that we go a non-trivial rvs
        assert len(xx) == nobs
        assert xx.var() > 0.001
        mod = DiscretizedModel(xx, distr=dp)
        res = mod.fit(start_params=start_params)
        p = mod.predict(res.params, which="probs")
        args = self.convert_params(res.params)
        p1 = -np.diff(ddistr.sf(np.arange(21), *args))
        assert_allclose(p, p1, rtol=1e-13)
    
        # using cdf limits precision to computation around 1
        p1 = np.diff(ddistr.cdf(np.arange(21), *args))
        assert_allclose(p, p1, rtol=1e-13, atol=1e-15)
        freq = np.bincount(xx.astype(int))
        # truncate at last observed
        k = len(freq)
        if k > 10:
            # reduce low count bins for heavy tailed distributions
            k = 10
            freq[k - 1] += freq[k:].sum()
            freq = freq[:k]
        p = mod.predict(res.params, which="probs", k_max=k)
        p[k - 1] += 1 - p[:k].sum()
        tchi2 = stats.chisquare(freq, p[:k] * nobs)
        assert tchi2.pvalue > 0.01
    
        # estimated distribution methods rvs, ppf
        # frozen distribution with estimated parameters
        # Todo results method
        dfr = mod.get_distr(res.params)
        nobs_rvs = 500
        rvs = dfr.rvs(size=nobs_rvs)
>       freq = np.bincount(rvs)

../.pybuild/cpython3_3.11_statsmodels/build/statsmodels/distributions/tests/test_discrete.py:302:
 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

args = (array([ 0,  0,  2,  1,  0,  1,  2,  0,  1,  0,  1,  1,  0,  1,  0,  3,  
0,
        4,  1,  0,  2,  0,  1,  5,  0,  1,...  1,  0,  4,  4,  2,  0,  2,  1,  
3,  0,  2,  0,  0,  0,  1,  0,  1,
        0,  1,  1,  2,  0,  2,  3], dtype=int64),)
kwargs = {}
relevant_args = (array([ 0,  0,  2,  1,  0,  1,  2,  0,  1,  0,  1,  1,  0,  1, 
 0,  3,  0,
        4,  1,  0,  2,  0,  1,  5,  0,  1,... 0,  4,  4,  2,  0,  2,  1,  3,  
0,  2,  0,  0,  0,  1,  0,  1,
        0,  1,  1,  2,  0,  2,  3], dtype=int64), None)

>   ???
E   TypeError: Cannot cast array data from dtype('int64') to dtype('int32') 
according to the rule 'safe'

<__array_function__ internals>:200: TypeError
...
=========================== short test summary info ============================
FAILED 
../.pybuild/cpython3_3.11_statsmodels/build/statsmodels/distributions/tests/test_discrete.py::TestDiscretizedGamma::test_basic
FAILED 
../.pybuild/cpython3_3.11_statsmodels/build/statsmodels/distributions/tests/test_discrete.py::TestDiscretizedExponential::test_basic
FAILED 
../.pybuild/cpython3_3.11_statsmodels/build/statsmodels/distributions/tests/test_discrete.py::TestDiscretizedLomax::test_basic
FAILED 
../.pybuild/cpython3_3.11_statsmodels/build/statsmodels/distributions/tests/test_discrete.py::TestDiscretizedBurr12::test_basic
= 4 failed, 16442 passed, 292 skipped, 142 xfailed, 10 xpassed, 307 warnings in 
3029.45s (0:50:29) =
make[1]: *** [debian/rules:105: override_dh_auto_test] Error 1

--- End Message ---
--- Begin Message ---
Source: statsmodels
Source-Version: 0.13.5+dfsg-5
Done: Rebecca N. Palmer <rebecca_pal...@zoho.com>

We believe that the bug you reported is fixed in the latest version of
statsmodels, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1030...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Rebecca N. Palmer <rebecca_pal...@zoho.com> (supplier of updated statsmodels 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 01 Feb 2023 21:31:58 +0000
Source: statsmodels
Architecture: source
Version: 0.13.5+dfsg-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers 
<debian-science-maintain...@lists.alioth.debian.org>
Changed-By: Rebecca N. Palmer <rebecca_pal...@zoho.com>
Closes: 1030208
Changes:
 statsmodels (0.13.5+dfsg-5) unstable; urgency=medium
 .
   * Tests: don't crash on 32-bit systems.  (Closes: #1030208)
Checksums-Sha1:
 dee9ab847f582ed19bae75b2387e64d91fc090a4 3664 statsmodels_0.13.5+dfsg-5.dsc
 76f3268ce68fa4d8d2e682b06f7386a1b5b94791 32796 
statsmodels_0.13.5+dfsg-5.debian.tar.xz
 30c26cd599679a155067dc3232f7c36584d083d9 6366 
statsmodels_0.13.5+dfsg-5_source.buildinfo
Checksums-Sha256:
 3b447bb99c8a746f91954b794c9d14fbf34c6c4bd5ac9cd270925975ece34844 3664 
statsmodels_0.13.5+dfsg-5.dsc
 aadbe59803f9ea75da2694b549054b0630b34ada70bdd737d0057ef8887a8525 32796 
statsmodels_0.13.5+dfsg-5.debian.tar.xz
 1064af7a9417acaba9fd20a3386247f4b2969913ae1e67a061b81ec8ead22c8a 6366 
statsmodels_0.13.5+dfsg-5_source.buildinfo
Files:
 851dbb9ea21e7ad184bf0592d6a87019 3664 python optional 
statsmodels_0.13.5+dfsg-5.dsc
 413161ecace2cc5113ad88242651b8fc 32796 python optional 
statsmodels_0.13.5+dfsg-5.debian.tar.xz
 fef5be5da61b9cbc1fa7fd628f7e59e5 6366 python optional 
statsmodels_0.13.5+dfsg-5_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJMBAEBCgA2FiEEZ8sxEAXE7b4yF1MI3uUNDVZ+omYFAmPcNuYYHHJlYmVjY2Ff
cGFsbWVyQHpvaG8uY29tAAoJEN7lDQ1WfqJm8PQP/iXFTAo/stodol2cNQh80rGw
skLsLwbN1W7ZSOS8Bdcygw62KulvZR1jrM5svG5MYIWi3M6O2bVp3tjRdAzQXVJ7
AV5FM21rGiAN8dIgsf5II+EeFd83kd0w6TZk3cdnttK6niihMPOGI3IYsqz6cPxe
Ckx9nRr29OeE0VchAmzp7HmFXDrlwdKdevZ4hg77QT2YkE6rPS1rRyRIw0VrBT+D
qk4WdQWTIjFsq+cgiUT0RVlzsOvjkUPs6H+njuqsOasjaQyxHCbYQNnm4Pjjp426
A5UxCKRx5JULQfqyoY0ozv9DAKaqKGMjF3p85mNU1SXoR90plMPXknyQ88RQ91go
AOpfbZJqeMuEZSbneeIQuaeu3deMmPCEfpCbbaePDiN9lAOAHtb3E04a4RbkcrOx
wrUDNd5WXnlosC/Fv4fo/OWgndmP8XBLJNASkQnfZNhpVaYEODBiD2ogyahke7zK
cHOvD5QVXwelbmXovWlsCcyPJhlA6XsQFlz4Ob057sX36kyJ6T/4gbvZAC0pM2Ni
zpclpU2ZzEQQyGap7aFgWszvXbZ+t/+0WDak7xaiatDck6QFa3oujKRwFmrCEJj6
bcdDE4vhOO0vLgeLmaB80vRPhFTwvPeg0e9IZF6M8MIjpgcwRl7Vq/vNIVk1QZ4V
bms/KkpwbwTIp3Z9iekm
=IVg3
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to