Your message dated Sat, 08 Feb 2025 20:42:56 +0000
with message-id <e1tgrfe-00804l...@fasolo.debian.org>
and subject line Bug#1095361: fixed in nxmx 0.0.4-1
has caused the Debian Bug report #1095361,
regarding nxmx: FTBFS: E           AttributeError: `np.string_` was removed in 
the NumPy 2.0 release.
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.)


-- 
1095361: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1095361
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: src:nxmx
Version: 0.0.3-3
Severity: serious
Tags: ftbfs trixie sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --with python3 --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --with python3 --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build" 
module
I: pybuild base:311: python3.12 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_nxmx  
* Building wheel...

[... snipped ...]

                import numpy.distutils as distutils
                return distutils
            else:
                raise AttributeError("`numpy.distutils` is not available from "
                                     "Python 3.12 onwards", name=None)
    
        if attr in __future_scalars__:
            # And future warnings for those that will change, but also give
            # the AttributeError
            warnings.warn(
                f"In the future `np.{attr}` will be defined as the "
                "corresponding NumPy scalar.", FutureWarning, stacklevel=2)
    
        if attr in __former_attrs__:
            raise AttributeError(__former_attrs__[attr], name=None)
    
        if attr in __expired_attributes__:
>           raise AttributeError(
                f"`np.{attr}` was removed in the NumPy 2.0 release. "
                f"{__expired_attributes__[attr]}",
                name=None
            )
E           AttributeError: `np.string_` was removed in the NumPy 2.0 release. 
Use `np.bytes_` instead.

/usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError
___________________ ERROR at setup of test_get_rotation_axes ___________________

    @pytest.fixture
    def nxmx_example():
        with h5py.File(" ", mode="w", **pytest.h5_in_memory) as f:
            entry = f.create_group("/entry")
            entry.attrs["NX_class"] = "NXentry"
            entry["definition"] = "NXmx"
            entry["start_time"] = "2021-09-10T06:54:37Z"
            entry["end_time"] = "2021-09-10T06:55:09Z"
            entry["end_time_estimated"] = "2021-09-10T06:55:09Z"
    
            source = entry.create_group("source")
            source.attrs["NX_class"] = "NXsource"
            source_name = source.create_dataset("name", data="Diamond")
            source_name.attrs["short_name"] = "DLS"
    
            instrument = entry.create_group("instrument")
            instrument.attrs["NX_class"] = "NXinstrument"
            name = instrument.create_dataset(
>               "name", data=np.string_("DIAMOND BEAMLINE I03")
            )

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

attr = 'string_'

    def __getattr__(attr):
        # Warn for expired attributes
        import warnings
    
        if attr == "linalg":
            import numpy.linalg as linalg
            return linalg
        elif attr == "fft":
            import numpy.fft as fft
            return fft
        elif attr == "dtypes":
            import numpy.dtypes as dtypes
            return dtypes
        elif attr == "random":
            import numpy.random as random
            return random
        elif attr == "polynomial":
            import numpy.polynomial as polynomial
            return polynomial
        elif attr == "ma":
            import numpy.ma as ma
            return ma
        elif attr == "ctypeslib":
            import numpy.ctypeslib as ctypeslib
            return ctypeslib
        elif attr == "exceptions":
            import numpy.exceptions as exceptions
            return exceptions
        elif attr == "testing":
            import numpy.testing as testing
            return testing
        elif attr == "matlib":
            import numpy.matlib as matlib
            return matlib
        elif attr == "f2py":
            import numpy.f2py as f2py
            return f2py
        elif attr == "typing":
            import numpy.typing as typing
            return typing
        elif attr == "rec":
            import numpy.rec as rec
            return rec
        elif attr == "char":
            import numpy.char as char
            return char
        elif attr == "array_api":
            raise AttributeError("`numpy.array_api` is not available from "
                                 "numpy 2.0 onwards", name=None)
        elif attr == "core":
            import numpy.core as core
            return core
        elif attr == "strings":
            import numpy.strings as strings
            return strings
        elif attr == "distutils":
            if 'distutils' in __numpy_submodules__:
                import numpy.distutils as distutils
                return distutils
            else:
                raise AttributeError("`numpy.distutils` is not available from "
                                     "Python 3.12 onwards", name=None)
    
        if attr in __future_scalars__:
            # And future warnings for those that will change, but also give
            # the AttributeError
            warnings.warn(
                f"In the future `np.{attr}` will be defined as the "
                "corresponding NumPy scalar.", FutureWarning, stacklevel=2)
    
        if attr in __former_attrs__:
            raise AttributeError(__former_attrs__[attr], name=None)
    
        if attr in __expired_attributes__:
>           raise AttributeError(
                f"`np.{attr}` was removed in the NumPy 2.0 release. "
                f"{__expired_attributes__[attr]}",
                name=None
            )
E           AttributeError: `np.string_` was removed in the NumPy 2.0 release. 
Use `np.bytes_` instead.

/usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError
_________________ ERROR at setup of test_get_dependency_chain __________________

    @pytest.fixture
    def nxmx_example():
        with h5py.File(" ", mode="w", **pytest.h5_in_memory) as f:
            entry = f.create_group("/entry")
            entry.attrs["NX_class"] = "NXentry"
            entry["definition"] = "NXmx"
            entry["start_time"] = "2021-09-10T06:54:37Z"
            entry["end_time"] = "2021-09-10T06:55:09Z"
            entry["end_time_estimated"] = "2021-09-10T06:55:09Z"
    
            source = entry.create_group("source")
            source.attrs["NX_class"] = "NXsource"
            source_name = source.create_dataset("name", data="Diamond")
            source_name.attrs["short_name"] = "DLS"
    
            instrument = entry.create_group("instrument")
            instrument.attrs["NX_class"] = "NXinstrument"
            name = instrument.create_dataset(
>               "name", data=np.string_("DIAMOND BEAMLINE I03")
            )

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

attr = 'string_'

    def __getattr__(attr):
        # Warn for expired attributes
        import warnings
    
        if attr == "linalg":
            import numpy.linalg as linalg
            return linalg
        elif attr == "fft":
            import numpy.fft as fft
            return fft
        elif attr == "dtypes":
            import numpy.dtypes as dtypes
            return dtypes
        elif attr == "random":
            import numpy.random as random
            return random
        elif attr == "polynomial":
            import numpy.polynomial as polynomial
            return polynomial
        elif attr == "ma":
            import numpy.ma as ma
            return ma
        elif attr == "ctypeslib":
            import numpy.ctypeslib as ctypeslib
            return ctypeslib
        elif attr == "exceptions":
            import numpy.exceptions as exceptions
            return exceptions
        elif attr == "testing":
            import numpy.testing as testing
            return testing
        elif attr == "matlib":
            import numpy.matlib as matlib
            return matlib
        elif attr == "f2py":
            import numpy.f2py as f2py
            return f2py
        elif attr == "typing":
            import numpy.typing as typing
            return typing
        elif attr == "rec":
            import numpy.rec as rec
            return rec
        elif attr == "char":
            import numpy.char as char
            return char
        elif attr == "array_api":
            raise AttributeError("`numpy.array_api` is not available from "
                                 "numpy 2.0 onwards", name=None)
        elif attr == "core":
            import numpy.core as core
            return core
        elif attr == "strings":
            import numpy.strings as strings
            return strings
        elif attr == "distutils":
            if 'distutils' in __numpy_submodules__:
                import numpy.distutils as distutils
                return distutils
            else:
                raise AttributeError("`numpy.distutils` is not available from "
                                     "Python 3.12 onwards", name=None)
    
        if attr in __future_scalars__:
            # And future warnings for those that will change, but also give
            # the AttributeError
            warnings.warn(
                f"In the future `np.{attr}` will be defined as the "
                "corresponding NumPy scalar.", FutureWarning, stacklevel=2)
    
        if attr in __former_attrs__:
            raise AttributeError(__former_attrs__[attr], name=None)
    
        if attr in __expired_attributes__:
>           raise AttributeError(
                f"`np.{attr}` was removed in the NumPy 2.0 release. "
                f"{__expired_attributes__[attr]}",
                name=None
            )
E           AttributeError: `np.string_` was removed in the NumPy 2.0 release. 
Use `np.bytes_` instead.

/usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError
_____________ ERROR at setup of test_get_cumulative_transformation _____________

    @pytest.fixture
    def nxmx_example():
        with h5py.File(" ", mode="w", **pytest.h5_in_memory) as f:
            entry = f.create_group("/entry")
            entry.attrs["NX_class"] = "NXentry"
            entry["definition"] = "NXmx"
            entry["start_time"] = "2021-09-10T06:54:37Z"
            entry["end_time"] = "2021-09-10T06:55:09Z"
            entry["end_time_estimated"] = "2021-09-10T06:55:09Z"
    
            source = entry.create_group("source")
            source.attrs["NX_class"] = "NXsource"
            source_name = source.create_dataset("name", data="Diamond")
            source_name.attrs["short_name"] = "DLS"
    
            instrument = entry.create_group("instrument")
            instrument.attrs["NX_class"] = "NXinstrument"
            name = instrument.create_dataset(
>               "name", data=np.string_("DIAMOND BEAMLINE I03")
            )

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

attr = 'string_'

    def __getattr__(attr):
        # Warn for expired attributes
        import warnings
    
        if attr == "linalg":
            import numpy.linalg as linalg
            return linalg
        elif attr == "fft":
            import numpy.fft as fft
            return fft
        elif attr == "dtypes":
            import numpy.dtypes as dtypes
            return dtypes
        elif attr == "random":
            import numpy.random as random
            return random
        elif attr == "polynomial":
            import numpy.polynomial as polynomial
            return polynomial
        elif attr == "ma":
            import numpy.ma as ma
            return ma
        elif attr == "ctypeslib":
            import numpy.ctypeslib as ctypeslib
            return ctypeslib
        elif attr == "exceptions":
            import numpy.exceptions as exceptions
            return exceptions
        elif attr == "testing":
            import numpy.testing as testing
            return testing
        elif attr == "matlib":
            import numpy.matlib as matlib
            return matlib
        elif attr == "f2py":
            import numpy.f2py as f2py
            return f2py
        elif attr == "typing":
            import numpy.typing as typing
            return typing
        elif attr == "rec":
            import numpy.rec as rec
            return rec
        elif attr == "char":
            import numpy.char as char
            return char
        elif attr == "array_api":
            raise AttributeError("`numpy.array_api` is not available from "
                                 "numpy 2.0 onwards", name=None)
        elif attr == "core":
            import numpy.core as core
            return core
        elif attr == "strings":
            import numpy.strings as strings
            return strings
        elif attr == "distutils":
            if 'distutils' in __numpy_submodules__:
                import numpy.distutils as distutils
                return distutils
            else:
                raise AttributeError("`numpy.distutils` is not available from "
                                     "Python 3.12 onwards", name=None)
    
        if attr in __future_scalars__:
            # And future warnings for those that will change, but also give
            # the AttributeError
            warnings.warn(
                f"In the future `np.{attr}` will be defined as the "
                "corresponding NumPy scalar.", FutureWarning, stacklevel=2)
    
        if attr in __former_attrs__:
            raise AttributeError(__former_attrs__[attr], name=None)
    
        if attr in __expired_attributes__:
>           raise AttributeError(
                f"`np.{attr}` was removed in the NumPy 2.0 release. "
                f"{__expired_attributes__[attr]}",
                name=None
            )
E           AttributeError: `np.string_` was removed in the NumPy 2.0 release. 
Use `np.bytes_` instead.

/usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError
___________________ ERROR at setup of test_nxdetector_group ____________________

    @pytest.fixture
    def detector_group():
        with h5py.File(" ", "w", **pytest.h5_in_memory) as f:
            entry = f.create_group("entry")
            entry.attrs["NX_class"] = "NXentry"
            entry["definition"] = "NXmx"
            instrument = entry.create_group("instrument")
            instrument.attrs["NX_class"] = "NXinstrument"
    
            group = instrument.create_group("detector_group")
            group.attrs["NX_class"] = "NXdetector_group"
    
            group.create_dataset(
                "group_names",
>               data=[np.string_(n) for n in ("DET", "DTL", "DTR", "DLL", 
> "DLR")],
                dtype="S12",
            )

tests/test_nxmx.py:389: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

attr = 'string_'

    def __getattr__(attr):
        # Warn for expired attributes
        import warnings
    
        if attr == "linalg":
            import numpy.linalg as linalg
            return linalg
        elif attr == "fft":
            import numpy.fft as fft
            return fft
        elif attr == "dtypes":
            import numpy.dtypes as dtypes
            return dtypes
        elif attr == "random":
            import numpy.random as random
            return random
        elif attr == "polynomial":
            import numpy.polynomial as polynomial
            return polynomial
        elif attr == "ma":
            import numpy.ma as ma
            return ma
        elif attr == "ctypeslib":
            import numpy.ctypeslib as ctypeslib
            return ctypeslib
        elif attr == "exceptions":
            import numpy.exceptions as exceptions
            return exceptions
        elif attr == "testing":
            import numpy.testing as testing
            return testing
        elif attr == "matlib":
            import numpy.matlib as matlib
            return matlib
        elif attr == "f2py":
            import numpy.f2py as f2py
            return f2py
        elif attr == "typing":
            import numpy.typing as typing
            return typing
        elif attr == "rec":
            import numpy.rec as rec
            return rec
        elif attr == "char":
            import numpy.char as char
            return char
        elif attr == "array_api":
            raise AttributeError("`numpy.array_api` is not available from "
                                 "numpy 2.0 onwards", name=None)
        elif attr == "core":
            import numpy.core as core
            return core
        elif attr == "strings":
            import numpy.strings as strings
            return strings
        elif attr == "distutils":
            if 'distutils' in __numpy_submodules__:
                import numpy.distutils as distutils
                return distutils
            else:
                raise AttributeError("`numpy.distutils` is not available from "
                                     "Python 3.12 onwards", name=None)
    
        if attr in __future_scalars__:
            # And future warnings for those that will change, but also give
            # the AttributeError
            warnings.warn(
                f"In the future `np.{attr}` will be defined as the "
                "corresponding NumPy scalar.", FutureWarning, stacklevel=2)
    
        if attr in __former_attrs__:
            raise AttributeError(__former_attrs__[attr], name=None)
    
        if attr in __expired_attributes__:
>           raise AttributeError(
                f"`np.{attr}` was removed in the NumPy 2.0 release. "
                f"{__expired_attributes__[attr]}",
                name=None
            )
E           AttributeError: `np.string_` was removed in the NumPy 2.0 release. 
Use `np.bytes_` instead.

/usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError
=============================== warnings summary ===============================
tests/test_nxmx.py::test_nxmx_single_value_properties[length-1 array]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_nxmx/build/nxmx/__init__.py:889: 
DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is 
deprecated, and will error in future. Ensure you extract a single element from 
your array before performing this operation. (Deprecated NumPy 1.25.)
    return int(self._handle["saturation_value"][()])

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR tests/test_nxmx.py::test_nxentry - AttributeError: `np.string_` was rem...
ERROR tests/test_nxmx.py::test_axis_end_increment_set - AttributeError: `np.s...
ERROR tests/test_nxmx.py::test_nxmx - AttributeError: `np.string_` was remove...
ERROR tests/test_nxmx.py::test_get_rotation_axes - AttributeError: `np.string...
ERROR tests/test_nxmx.py::test_get_dependency_chain - AttributeError: `np.str...
ERROR tests/test_nxmx.py::test_get_cumulative_transformation - AttributeError...
ERROR tests/test_nxmx.py::test_nxdetector_group - AttributeError: `np.string_...
==================== 8 passed, 1 warning, 7 errors in 0.43s ====================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_nxmx/build; python3.13 -m pytest tests
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 
3.13" returned exit code 13
make: *** [debian/rules:5: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202502/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:nxmx, so that this is still
visible in the BTS web page for this package.

Thanks.

--- End Message ---
--- Begin Message ---
Source: nxmx
Source-Version: 0.0.4-1
Done: Alexandre Detiste <tc...@debian.org>

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

Debian distribution maintenance software
pp.
Alexandre Detiste <tc...@debian.org> (supplier of updated nxmx 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: Sat, 08 Feb 2025 20:39:18 +0100
Source: nxmx
Architecture: source
Version: 0.0.4-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Alexandre Detiste <tc...@debian.org>
Closes: 1095361
Changes:
 nxmx (0.0.4-1) unstable; urgency=medium
 .
   * Team upload.
   * New upstream version 0.0.4
   * Build with Numpy 2.x (Closes: #1095361)
Checksums-Sha1:
 28c14ea4dfbc23598adac36d550afbafe2991fac 2154 nxmx_0.0.4-1.dsc
 0ca0d0f317dabe95c24482df9944d1144c722c25 20326 nxmx_0.0.4.orig.tar.gz
 d528194eaea17a5ac2a1e2cbada03c84cb89d265 3024 nxmx_0.0.4-1.debian.tar.xz
 e4fb79fb4ea9f9b0a353297f585e385c62ec0836 9038 nxmx_0.0.4-1_source.buildinfo
Checksums-Sha256:
 dc5e3dd163dfcf80aac65d6d0295ad7af1503a775d7b9c7c942ab288a8b3a191 2154 
nxmx_0.0.4-1.dsc
 ca18ad81fd603e196f6ca17cc787a9549dbad7af3ffe15c379cde8e907199b8f 20326 
nxmx_0.0.4.orig.tar.gz
 30223820c1c075d3def7e99c926cdf96d18f33808b04ae2a60a9e527993a79c9 3024 
nxmx_0.0.4-1.debian.tar.xz
 854cc03d4f4526d7d1ac60116f8c290d4d9156a5741b381239c4aeb88a26ca77 9038 
nxmx_0.0.4-1_source.buildinfo
Files:
 9c2c422c3247946a0c1e6adf2c3ef59b 2154 python optional nxmx_0.0.4-1.dsc
 4d5b88de5411e24f17c721c45c39fd39 20326 python optional nxmx_0.0.4.orig.tar.gz
 de2af5e679e9123408d7e5fdf946a8fd 3024 python optional 
nxmx_0.0.4-1.debian.tar.xz
 2e8fb246ffe477bdad580ae22a70ad35 9038 python optional 
nxmx_0.0.4-1_source.buildinfo

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

iQJFBAEBCgAvFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmentRQRHHRjaGV0QGRl
Ymlhbi5vcmcACgkQMfMURUShdBp8rhAAgYgqSr5eYG13W9BzPBjL/Q89ETeV6X9A
EFSzu5PIrNjm7oDjp4dyOUMM2KA7QbLUnQCU3Zm3qAMlA5IpzYBeQWiZXAJk2XDm
VAbVhDdyj3aEkn1p2Glr1rNZRZkhRykK2VxRoNpFW4aBPeG+qQ3tuvv8o8oQB+0F
dJgsJnvefEqjRLhJARDzoRsOUUdvksUItzU5rzOMAq+I6FF58IKN//diGHLt4XTh
xR0b/2r2r9uZr2MhEtmzhPBoFtPYeLDqifPGI8t+81Gkx3qwSO8oIYFhdqYZbPLU
kQ6YRLoRo2WFI5ZkdPPJOCOPVqV4GOtq5GsE/A5ndokHNL6OAD4ymQ08Df35owMe
iaVSJVu3cjzUQp/fTx2OV/9nRHC1paoBWBoXcgDxlBxwXbqk8Z+XlKArtD3JqaRU
JvwhDG1JSPdlUoUNZidjtx5EL8zSv7suvu5kPcN46ROMctUSfduSnA+zANT3vwqs
y/BqPALoSgMYA1DLrj3dBeQx/n7s6RfY1OU/ke8pfwSjCEyPF4tkwoDvOQupcS0X
Kr3hnnVDC6vTjTGE1vLyZWdQzQhoqHFd3a7V8IZL5LNGzjwciJn5oO2ZYu7NfCJl
9VUPcNmGJJGDbW4EuCbTS7J2npXIFbNK4wuYvmGuDU/lxXMPPU3kbDlfqgIpy0JJ
hwcS5j/GOVE=
=sxga
-----END PGP SIGNATURE-----

Attachment: pgpQBd1LzcBvr.pgp
Description: PGP signature


--- End Message ---

Reply via email to