Your message dated Mon, 19 Dec 2022 22:15:47 +0000
with message-id <e1p7oqf-000cto...@fasolo.debian.org>
and subject line Bug#1026349: fixed in sasview 5.0.5-4
has caused the Debian Bug report #1026349,
regarding sasview: autopkgtest needs update for new version of numpy: module 
'numpy' has no attribute 'asscalar'
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.)


-- 
1026349: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026349
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: sasview
Version: 5.0.5-3
Severity: serious
X-Debbugs-CC: nu...@packages.debian.org
Tags: sid bookworm
User: debian...@lists.debian.org
Usertags: needs-update
Control: affects -1 src:numpy

Dear maintainer(s),

With a recent upload of numpy the autopkgtest of sasview fails in testing when that autopkgtest is run with the binary packages of numpy from unstable. It passes when run with only packages from testing. In tabular form:

                       pass            fail
numpy                  from testing    1:1.23.5-2
sasview                from testing    5.0.5-3
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of numpy to testing [1]. Of course, numpy shouldn't just break your autopkgtest (or even worse, your package), but it seems to me that the change in numpy was intended and your package needs to update to the new situation.

If this is a real problem in your package (and not only in your autopkgtest), the right binary package(s) from numpy should really add a versioned Breaks on the unfixed version of (one of your) package(s). Note: the Breaks is nice even if the issue is only in the autopkgtest as it helps the migration software to figure out the right versions to combine in the tests.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=numpy

https://ci.debian.net/data/autopkgtest/testing/amd64/s/sasview/29465796/log.gz

=================================== FAILURES =================================== __________________________ TestBasicComponent.test_iq __________________________

self = <test.pr_inversion.utest_invertor.TestBasicComponent testMethod=test_iq>

    def test_iq(self):
        """
            Test iq calculation
        """
        q = 0.11
v1 = 8.0*math.pi**2/q * self.invertor.d_max *math.sin(q*self.invertor.d_max)
        v1 /= ( math.pi**2 - (q*self.invertor.d_max)**2.0 )
            pars = numpy.ones(1)
      self.assertAlmostEqual(self.invertor.iq(pars, q), v1, 2)

test/pr_inversion/utest_invertor.py:171: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sas/sascalc/pr/invertor.py:315: in iq
    return Pinvertor.iq(self, out, q) + self.background
/usr/lib/python3/dist-packages/sas/sascalc/pr/p_invertor.py:339: in iq
    return np.asscalar(iq_val)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
attr = 'asscalar'

    def __getattr__(attr):
        # Warn for expired attributes, and return a dummy function
        # that always raises an exception.
        try:
            msg = __expired_functions__[attr]
        except KeyError:
            pass
        else:
            warnings.warn(msg, DeprecationWarning, stacklevel=2)
                def _expired(*args, **kwds):
                raise RuntimeError(msg)
                return _expired
            # Emit warnings for deprecated attributes
        try:
            val, msg = __deprecated_attrs__[attr]
        except KeyError:
            pass
        else:
            warnings.warn(msg, DeprecationWarning, stacklevel=2)
            return val
# Importing Tester requires importing all of UnitTest which is not a # cheap import Since it is mainly used in test suits, we lazy import it
        # here to save on the order of 10 ms of import time for most users
        #
# The previous way Tester was imported also had a side effect of adding
        # the full `numpy.testing` namespace
        if attr == 'testing':
            import numpy.testing as testing
            return testing
        elif attr == 'Tester':
            from .testing import Tester
            return Tester
    >       raise AttributeError("module {!r} has no attribute "
                             "{!r}".format(__name__, attr))
E       AttributeError: module 'numpy' has no attribute 'asscalar'

/usr/lib/python3/dist-packages/numpy/__init__.py:311: AttributeError
__________________________ TestBasicComponent.test_pr __________________________

self = <test.pr_inversion.utest_invertor.TestBasicComponent testMethod=test_pr>

    def test_pr(self):
        """
            Test pr calculation
        """
        r = 10.0
        v1 = 2.0*r*math.sin(math.pi*r/self.invertor.d_max)
        pars = numpy.ones(1)
      self.assertAlmostEqual(self.invertor.pr(pars, r), v1, 2)

test/pr_inversion/utest_invertor.py:180: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sas/sascalc/pr/p_invertor.py:380: in pr
    return np.asscalar(pr_val)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
attr = 'asscalar'

    def __getattr__(attr):
        # Warn for expired attributes, and return a dummy function
        # that always raises an exception.
        try:
            msg = __expired_functions__[attr]
        except KeyError:
            pass
        else:
            warnings.warn(msg, DeprecationWarning, stacklevel=2)
                def _expired(*args, **kwds):
                raise RuntimeError(msg)
                return _expired
            # Emit warnings for deprecated attributes
        try:
            val, msg = __deprecated_attrs__[attr]
        except KeyError:
            pass
        else:
            warnings.warn(msg, DeprecationWarning, stacklevel=2)
            return val
# Importing Tester requires importing all of UnitTest which is not a # cheap import Since it is mainly used in test suits, we lazy import it
        # here to save on the order of 10 ms of import time for most users
        #
# The previous way Tester was imported also had a side effect of adding
        # the full `numpy.testing` namespace
        if attr == 'testing':
            import numpy.testing as testing
            return testing
        elif attr == 'Tester':
            from .testing import Tester
            return Tester
    >       raise AttributeError("module {!r} has no attribute "
                             "{!r}".format(__name__, attr))
E       AttributeError: module 'numpy' has no attribute 'asscalar'

/usr/lib/python3/dist-packages/numpy/__init__.py:311: AttributeError
_________________________ TestBasicComponent.test_save _________________________

self = <test.pr_inversion.utest_invertor.TestBasicComponent testMethod=test_save>

    def test_save(self):
        x, y, err = load(find("sphere_80.txt"))
            # Choose the right d_max...
        self.invertor.d_max = 160.0
        # Set a small alpha
        self.invertor.alpha = .0007
        # Set data
        self.invertor.x   = x
        self.invertor.y   = y
        self.invertor.err = err
        # Perform inversion
            out, cov = self.invertor.lstsq(10)
            # Save
        f_name = "test_output.txt"
        self.invertor.to_file(f_name)
            # Load
        self.invertor.from_file(f_name)
        self.assertEqual(self.invertor.d_max, 160.0)
        self.assertEqual(self.invertor.alpha, 0.0007)
        self.assertEqual(self.invertor.chi2, 836.797)
      self.assertAlmostEqual(self.invertor.pr(self.invertor.out, 10.0), 
903.30597721, 4)

test/pr_inversion/utest_invertor.py:436: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sas/sascalc/pr/p_invertor.py:380: in pr
    return np.asscalar(pr_val)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
attr = 'asscalar'

    def __getattr__(attr):
        # Warn for expired attributes, and return a dummy function
        # that always raises an exception.
        try:
            msg = __expired_functions__[attr]
        except KeyError:
            pass
        else:
            warnings.warn(msg, DeprecationWarning, stacklevel=2)
                def _expired(*args, **kwds):
                raise RuntimeError(msg)
                return _expired
            # Emit warnings for deprecated attributes
        try:
            val, msg = __deprecated_attrs__[attr]
        except KeyError:
            pass
        else:
            warnings.warn(msg, DeprecationWarning, stacklevel=2)
            return val
# Importing Tester requires importing all of UnitTest which is not a # cheap import Since it is mainly used in test suits, we lazy import it
        # here to save on the order of 10 ms of import time for most users
        #
# The previous way Tester was imported also had a side effect of adding
        # the full `numpy.testing` namespace
        if attr == 'testing':
            import numpy.testing as testing
            return testing
        elif attr == 'Tester':
            from .testing import Tester
            return Tester
    >       raise AttributeError("module {!r} has no attribute "
                             "{!r}".format(__name__, attr))
E       AttributeError: module 'numpy' has no attribute 'asscalar'

/usr/lib/python3/dist-packages/numpy/__init__.py:311: AttributeError
=============================== warnings summary ===============================
test/pr_inversion/utest_invertor.py::TestBasicComponent::test_save

/tmp/autopkgtest-lxc.s3tk5hb8/downtmp/autopkgtest_tmp/test/pr_inversion/utest_invertor.py:432: ResourceWarning: unclosed file <_io.TextIOWrapper name='test_output.txt' mode='r' encoding='UTF-8'>
    self.invertor.from_file(f_name)
  Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================ FAILED test/pr_inversion/utest_invertor.py::TestBasicComponent::test_iq - Att... FAILED test/pr_inversion/utest_invertor.py::TestBasicComponent::test_pr - Att... FAILED test/pr_inversion/utest_invertor.py::TestBasicComponent::test_save - A... =================== 3 failed, 171 passed, 1 warning in 5.68s ===================
autopkgtest [09:26:45]: test python3-sasview

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: sasview
Source-Version: 5.0.5-4
Done: Stuart Prescott <stu...@debian.org>

We believe that the bug you reported is fixed in the latest version of
sasview, 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 1026...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stuart Prescott <stu...@debian.org> (supplier of updated sasview 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: SHA256

Format: 1.8
Date: Mon, 19 Dec 2022 10:27:43 +1100
Source: sasview
Architecture: source
Version: 5.0.5-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers 
<debian-science-maintain...@lists.alioth.debian.org>
Changed-By: Stuart Prescott <stu...@debian.org>
Closes: 1026349
Changes:
 sasview (5.0.5-4) unstable; urgency=medium
 .
   * Cherry-pick upstream patch for compatibility with numpy 1.23
     (Closes: #1026349).
Checksums-Sha1:
 8acb158f2870cbdb60f5dd74d12e63b160a7ae90 2921 sasview_5.0.5-4.dsc
 44dbf8b8942fc8aaa2b11a839cbbdae6279121b5 52092 sasview_5.0.5-4.debian.tar.xz
 0c5cf67543c61900a1f32fb038e73a40a7c8fe0a 20503 sasview_5.0.5-4_amd64.buildinfo
Checksums-Sha256:
 69dc83aa444b1fc6fc12b78f438ffc8a0bd83cda46d4cadaad34ab5fa838095d 2921 
sasview_5.0.5-4.dsc
 48a5be3ae26da53df660a01472706951253ab79063953748cdd2793a6fcd53d3 52092 
sasview_5.0.5-4.debian.tar.xz
 5f345b184aa5cb078a6b738cae486359bf0b82263484fc6c4f317164394f4784 20503 
sasview_5.0.5-4_amd64.buildinfo
Files:
 42af153821db0b389194c4b92cf511b7 2921 science optional sasview_5.0.5-4.dsc
 eaf53e11c1c5098114ebb4f1eb686244 52092 science optional 
sasview_5.0.5-4.debian.tar.xz
 ec73911da039dca5e9f5678552015efc 20503 science optional 
sasview_5.0.5-4_amd64.buildinfo

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

iQIzBAEBCAAdFiEEkOLSwa0Uaht+u4kdu8F+uxOW8vcFAmOfpIwACgkQu8F+uxOW
8vfIuxAAilkqFhFEb1o0+wQ0sfxBBHKV50HwcyXC1Y+atN27TtF72NXGkbIefAGl
vr/cQ+RtX0pI9vEzYGEMBihtZooiAa+1+kin+z3sh+UZAGAW11GJ1xLVvvPE6fxD
yleQFK2KmxxYX7OUHE6YMF1pOxmR+mv8DsGMZMP/34PHkpCMr2wClJTHusk8jePe
9vUOhMxUO9yUlBNFBiKVtNPOXPbF7DccNCTqfYy2Kk2yRvTE6EjU9b19a9IvFHep
+mDi3w5WsKVnSRqo5ILRznzmr0sTRhh7mhaKt5lYPpVeWKQUq4NTOElo7cJCDuQ6
btas1FwPJQRURlePrk4Hkw549vhQbwACddVXYVihln4TTDQmsPq6CPr8b8GdMnMQ
JQeyVqBWRZF03b6UXHk4r/RWp/8/RmDqLmR946rsCQvTGe9Zz6zsksfu0WkjnsQq
Ztltg0W2L4imKhFGuVjtkKTkiw6UJB2p8nq5P9u6SRrvP+wELEYpFESfThgE9Sb8
qFS1sjDRW+wbozQAiIU0Yo0dQpcYF02ISsSbLtXPKpPMBO3b+iAGQkAOM0DG3FmA
9XRSO4BHZgCdhFEtdkerBv/IGBJhMAJhdml4k4jXgmMKn4nidVFz46TepWjDWTgx
oMHwb09j46ZLIE3iQSKwb4Tn3CyvmlveF3yfkNXm12ZGRhyGPfE=
=j+NQ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to