Your message dated Fri, 12 Sep 2025 06:50:29 +0000
with message-id <[email protected]>
and subject line Bug#1114712: fixed in pyninjotiff 0.4.2-2
has caused the Debian Bug report #1114712,
regarding pyninjotiff: FTBFS with NumPy 2.3
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 [email protected]
immediately.)


-- 
1114712: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1114712
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: pyninjotiff
Version: 0.4.2-1
Severity: important
User: [email protected]
Usertags: numpy2.3
Tags: ftbfs, forky, sid

Dear maintainer,

During a test rebuild for NumPy 2.3, pyninjotiff failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]

x = 
b'\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01...80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80'

    def unpack(x):
        try:
            return numpy.fromstring(x, typecode)
        except ValueError as e:
            # strips may be missing EOI
            warnings.warn("unpack: %s" % e)
            xlen = ((len(x) // (bits_per_sample // 8))
                    * (bits_per_sample // 8))
>           return numpy.fromstring(x[:xlen], typecode)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E           ValueError: The binary mode of fromstring is removed, use 
frombuffer instead

pyninjotiff/tifffile.py:1898: ValueError
_________________________________ test_write_p _________________________________

x = 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02'

    def unpack(x):
        try:
>           return numpy.fromstring(x, typecode)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E           ValueError: The binary mode of fromstring is removed, use 
frombuffer instead

pyninjotiff/tifffile.py:1892: ValueError

During handling of the above exception, another exception occurred:

    def test_write_p():
        """Test saving an image in P mode.
    
        Values are 0, 1, 2, 3, 4, Palette is black, red, green, blue, gray.
        """
        area = STEREOGRAPHIC_AREA
    
        palette = [np.array((0, 0, 0, 1)),
                   np.array((1, 0, 0, 1)),
                   np.array((0, 1, 0, 1)),
                   np.array((0, 0, 1, 1)),
                   np.array((.5, .5, .5, 1)),
                   ]
        attrs = dict([('resolution', 1050),
                      ('polarization', None),
                      ('platform_name', 'MSG'),
                      ('sensor', 'seviri'),
                      ("palette", palette),
                      ('name', 'msg_cloudtop_height'),
                      ('level', None),
                      ('modifiers', ()),
                      ('start_time', TIME - datetime.timedelta(minutes=85)),
                      ('end_time', TIME - datetime.timedelta(minutes=80)),
                      ('area', area),
                      ('ancillary_variables', [])])
    
        data = da.tile(da.repeat(da.arange(5, chunks=1024, dtype=np.uint8), 
205)[:-1],
                       1024).reshape((1, 1024, 1024))[:, :1024]
        data = xr.DataArray(data, coords={'bands': ['P']}, dims=[
                            'bands', 'y', 'x'], attrs=attrs)
        kwargs = {'compute': True, 'fill_value': None, 'sat_id': 9000014,
                  'chan_id': 1900015, 'data_cat': 'GPRN', 'data_source': 'SMHI',
                  'physic_unit': 'NONE', "physic_value": "NONE",
                  "description": "NWCSAF Cloud Top Height"}
    
        img = FakeImage(data)
        with tempfile.NamedTemporaryFile(delete=DELETE_FILES) as tmpfile:
            filename = tmpfile.name
            if not DELETE_FILES:
                print(filename)
            save(img, filename, data_is_scaled_01=True, **kwargs)
>           colormap, res = _load_file_values_with_colormap(filename)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

pyninjotiff/tests/test_ninjotiff.py:843: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pyninjotiff/tests/test_ninjotiff.py:713: in _load_file_values_with_colormap
    res = page.asarray(colormapped=False).squeeze()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pyninjotiff/tifffile.py:1917: in asarray
    tile = unpack(decompress(fh.read(bytecount)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

x = 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02'

    def unpack(x):
        try:
            return numpy.fromstring(x, typecode)
        except ValueError as e:
            # strips may be missing EOI
            warnings.warn("unpack: %s" % e)
            xlen = ((len(x) // (bits_per_sample // 8))
                    * (bits_per_sample // 8))
>           return numpy.fromstring(x[:xlen], typecode)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E           ValueError: The binary mode of fromstring is removed, use 
frombuffer instead

pyninjotiff/tifffile.py:1898: ValueError
------------------------------ Captured log call -------------------------------
WARNING  pyninjotiff.ninjotiff:ninjotiff.py:567 Ignoring palette's alpha.
=============================== warnings summary ===============================
pyninjotiff/tifffile.py:154
  
/build/reproducible-path/pyninjotiff-0.4.2/.pybuild/cpython3_3.13_pyninjotiff/build/pyninjotiff/tifffile.py:154:
 UserWarning: failed to import the optional _tifffile C extension module.
  Loading of some compressed images will be slow.
  Tifffile.c can be obtained at http://www.lfd.uci.edu/~gohlke/
    warnings.warn(

pyninjotiff/tests/test_ninjotiff.py:37
  
/build/reproducible-path/pyninjotiff-0.4.2/.pybuild/cpython3_3.13_pyninjotiff/build/pyninjotiff/tests/test_ninjotiff.py:37:
 DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for 
removal in a future version. Use timezone-aware objects to represent datetimes 
in UTC: datetime.datetime.now(datetime.UTC).
    TIME = datetime.datetime.utcnow()

pyninjotiff/tests/test_ninjotiff.py: 11 warnings
  
/build/reproducible-path/pyninjotiff-0.4.2/.pybuild/cpython3_3.13_pyninjotiff/build/pyninjotiff/ninjotiff.py:911:
 DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for 
removal in a future version. Use timezone-aware objects to represent datetimes 
in UTC: datetime.datetime.now(datetime.UTC).
    file_dt = datetime.utcnow()

pyninjotiff/tests/test_ninjotiff.py: 11 warnings
  
/build/reproducible-path/pyninjotiff-0.4.2/.pybuild/cpython3_3.13_pyninjotiff/build/pyninjotiff/tifffile.py:1895:
 UserWarning: unpack: The binary mode of fromstring is removed, use frombuffer 
instead
    warnings.warn("unpack: %s" % e)

pyninjotiff/tests/test_ninjotiff.py: 10 warnings
  /usr/lib/python3/dist-packages/xarray/core/common.py:158: 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 float(self.values)

pyninjotiff/tests/test_ninjotiff.py::test_write_bw_fill
pyninjotiff/tests/test_ninjotiff.py::test_write_bw_inverted_ir_fill
  /usr/lib/python3/dist-packages/dask/array/chunk.py:279: RuntimeWarning: 
invalid value encountered in cast
    return x.astype(astype_dtype, **kwargs)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED pyninjotiff/tests/test_ninjotiff.py::test_write_bw - ValueError: The b...
FAILED pyninjotiff/tests/test_ninjotiff.py::test_write_bw_inverted_ir - Value...
FAILED pyninjotiff/tests/test_ninjotiff.py::test_write_bw_fill - ValueError: ...
FAILED pyninjotiff/tests/test_ninjotiff.py::test_write_bw_inverted_ir_fill - ...
FAILED pyninjotiff/tests/test_ninjotiff.py::test_write_rgb - ValueError: The ...
FAILED pyninjotiff/tests/test_ninjotiff.py::test_write_rgb_with_a - ValueErro...
FAILED pyninjotiff/tests/test_ninjotiff.py::test_write_rgb_tb - ValueError: T...
FAILED pyninjotiff/tests/test_ninjotiff.py::test_write_rgba - ValueError: The...
FAILED pyninjotiff/tests/test_ninjotiff.py::test_write_bw_colormap - ValueErr...
FAILED pyninjotiff/tests/test_ninjotiff.py::test_write_ir_colormap - ValueErr...
FAILED pyninjotiff/tests/test_ninjotiff.py::test_write_p - ValueError: The bi...
================= 11 failed, 1 skipped, 36 warnings in 51.26s ==================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/build/reproducible-path/pyninjotiff-0.4.2/.pybuild/cpython3_3.13_pyninjotiff/build;
 python3.13 -m pytest --pyargs pyninjotiff
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 
returned exit code 13
make: *** [debian/rules:14: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2025-09-08T06:17:35Z

-------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/debian/developers-roehling.numpy/artifact/2453927/

About the archive rebuild: The build was made on debusine.debian.net,
using sbuild.

You can find the build task here:
https://debusine.debian.net/debian/developers-roehling.numpy/work-request/163707/

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

Cheers
Timo

--- End Message ---
--- Begin Message ---
Source: pyninjotiff
Source-Version: 0.4.2-2
Done: Antonio Valentino <[email protected]>

We believe that the bug you reported is fixed in the latest version of
pyninjotiff, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Antonio Valentino <[email protected]> (supplier of updated 
pyninjotiff 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 [email protected])


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

Format: 1.8
Date: Fri, 12 Sep 2025 06:09:03 +0000
Source: pyninjotiff
Architecture: source
Version: 0.4.2-2
Distribution: unstable
Urgency: medium
Maintainer: Debian GIS Project <[email protected]>
Changed-By: Antonio Valentino <[email protected]>
Closes: 1114712
Changes:
 pyninjotiff (0.4.2-2) unstable; urgency=medium
 .
   * debian/patches:
     - New 0003-numpy-2.3-compat.patch (Closes: #1114712).
Checksums-Sha1:
 013ebed5a763086eea98f498a203290b07137eaf 2331 pyninjotiff_0.4.2-2.dsc
 2abae9c337ec9c6e69424d8aedd6173e86e09f37 6204 pyninjotiff_0.4.2-2.debian.tar.xz
 3ba5a16f9c4e55a7ae0c05d61333fc3d134f5af5 13313 
pyninjotiff_0.4.2-2_amd64.buildinfo
Checksums-Sha256:
 66966609020ab9ee8db5663bb4df5bb22777082dba3900eb9bf82232d04b8d3d 2331 
pyninjotiff_0.4.2-2.dsc
 cd85ecde416b2cca57f28ea87f669c953e53de8bf5a76de7cbb16a43735bdb43 6204 
pyninjotiff_0.4.2-2.debian.tar.xz
 5a6ee7c1c94ab392da4defecc52924ad96317068f9409f4d6cdb92e8f055395c 13313 
pyninjotiff_0.4.2-2_amd64.buildinfo
Files:
 421960d3b59e0525c412eee32895fcb1 2331 python optional pyninjotiff_0.4.2-2.dsc
 85ae04c4f26f1a476b16b99e7f9940c1 6204 python optional 
pyninjotiff_0.4.2-2.debian.tar.xz
 ae91e8d1ce4ec56c7c046687240231ae 13313 python optional 
pyninjotiff_0.4.2-2_amd64.buildinfo

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

iQJRBAEBCgA7FiEEO3DyCaX/1okDxHLF6/SKslePmBIFAmjDvxUdHGFudG9uaW8u
dmFsZW50aW5vQHRpc2NhbGkuaXQACgkQ6/SKslePmBLW9RAAy/SItcYWbrSElFML
sSuOQAykOwPwjUzk4a0qJ4RW/NbWQvdPjzGdClNrhDZsOs0/iEsBvdJpMiizHrme
hJP2xuwMoyzhB5b/+4dELQzvtD49QutCvlVE82Z1GeVKkgrJAallRMqRtsJvUwGn
FBL2w2a8c7ltfrySTRJW75XDDCFrUjHW+dwEHacdXaVJ2Wyk/ymQK8CtkW4CHixO
KxczsVci7msqgyAGl3ZaoRsNRm4+/jzjdOIfsLcoJvhKpASgAhueZ3HdtZ1Izqzo
HbtfsghK957uXoXqRI4vvyqrMN8UZS5HZJERfSMaab6R13uKJNGuZ+/jf1W5N30R
pBlHD2SVCvKsdf0w6u4yVAoCPyIWqAaDHtK1xo1OANNcU1vjT9lEzkBRYZ7aWxL1
nQ+1GrtYJXYs2P07A80S4XQFl73es7WGK+y9tMn6Kj4W4g2jD3P5WrzVSC56E6Tq
cITVOwpjZ684uMe3dOhsYYe6ldGj7Fp8krhhpFL+hdab53Fy0mmRokUabqZhYj/l
BHvftLWNf4zuJfwO6fOkQcv8EYPQ8vH+7Luobz9nS4tJ4MEVc3mf3CNBpFKDVvIo
voLUyWQP7Z3ainClApaUnGc6CdKUrxda4ahTQXpbO3eKiowOooBI191urLeOzCYf
OMitlhq0SASF1RFDmWyCvuuh4kk=
=etPr
-----END PGP SIGNATURE-----

Attachment: pgpSOgGl_drkP.pgp
Description: PGP signature


--- End Message ---
_______________________________________________
Pkg-grass-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to