Subject: Re: [bug#45698] [PATCH] gnu: python-numpy: Update to 1.19.4.

From: Xinglu Chen <[email-masked]>
Date: Sun, 14 Mar 2021 22:04:25 +0100

On Sun, Mar 14 2021, Greg Hogan wrote:

> * gnu/packages/python-xyz.scm (python-numpy): Update to 1.20.1.
> [native-inputs]: Add python-hypothesis.

Great, Numpy builds for me, but when I try to build Scipy which is often
used with Numpy, one test for Matplolib is failing.  Any ideas?

--8<---------------cut here---------------start------------->8---
=================================== FAILURES ===================================
___________________________________ test_gca ___________________________________

    def test_gca():
        fig = plt.figure()
    
        ax1 = fig.add_axes([0, 0, 1, 1])
        assert fig.gca(projection='rectilinear') is ax1
        assert fig.gca() is ax1
    
        ax2 = fig.add_subplot(121, projection='polar')
        assert fig.gca() is ax2
        assert fig.gca(polar=True) is ax2
    
        ax3 = fig.add_subplot(122)
        assert fig.gca() is ax3
    
        # the final request for a polar axes will end up creating one
        # with a spec of 111.
        with warnings.catch_warnings(record=True) as w:
            warnings.simplefilter('always')
            # Changing the projection will throw a warning
            assert fig.gca(polar=True) is not ax3
>           assert len(w) == 1
E           assert 2 == 1
E             -2
E             +1

/gnu/store/s3i6ps5fmyb5ld0rx37g23s7w8rzghl7-python-matplotlib-3.1.2/lib/python3.8/site-packages/matplotlib/tests/test_figure.py:168: AssertionError

[...]

-- Docs: https://docs.pytest.org/en/latest/warnings.html
= 1 failed, 5014 passed, 2139 skipped, 2 deselected, 9 xfailed, 8 xpassed, 36 warnings in 107.78s (0:01:47) =
command "python" "tests.py" "-v" "-m" "not network and not webagg" failed with status 1
builder for `/gnu/store/6kmizr8498mxiv7spsavznirva76yphh-python-matplotlib-3.1.2.drv' failed with exit code 1
build of /gnu/store/6kmizr8498mxiv7spsavznirva76yphh-python-matplotlib-3.1.2.drv failed
View build log at '/var/log/guix/drvs/6k/mizr8498mxiv7spsavznirva76yphh-python-matplotlib-3.1.2.drv.bz2'.
cannot build derivation `/gnu/store/hd6zbcgdf7sa9bj63rsw5ayyhrrlfndw-python-scipy-1.6.0.drv': 1 dependencies couldn't be built
guix build: error: build of `/gnu/store/hd6zbcgdf7sa9bj63rsw5ayyhrrlfndw-python-scipy-1.6.0.drv' failed
--8<---------------cut here---------------end--------------->8---