Your message dated Fri, 24 Oct 2025 22:09:59 +0000
with message-id <[email protected]>
and subject line Bug#1118742: fixed in skimage 0.25.2-3
has caused the Debian Bug report #1118742,
regarding skimage: FTBFS with Python 3.14 - Test_deprecate_parameter failure
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.)
--
1118742: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1118742
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: skimage
Version: 0.25.2-2
Severity: important
Tags: ftbfs patch
User: [email protected]
Usertags: python3.14
Hi Maintainer
skimage will FTBFS when Python 3.14 is added as a supported version,
see #1117927. This transition is already underway in Ubuntu. I've
copied what I hope is the relevant part of their log below.
The attached patch contains a fix for this issue cherry-picked from upstream.
Regards
Graham
=================================== FAILURES ===================================
________________ Test_deprecate_parameter.test_wrong_param_name ________________
self = <skimage._shared.tests.test_utils.Test_deprecate_parameter
object at 0x7ea5ae8fd550>
def test_wrong_param_name(self):
with pytest.raises(ValueError, match="'old' is not in list"):
> @deprecate_parameter("old", start_version="0.10",
> stop_version="0.12")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skimage/_shared/tests/test_utils.py:475:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <skimage._shared.utils.deprecate_parameter object at 0x7ea5a5b5ea50>
func = <function
Test_deprecate_parameter.test_wrong_param_name.<locals>.foo at
0x7ea59e83f7f0>
def __call__(self, func):
parameters = inspect.signature(func).parameters
> deprecated_idx = list(parameters.keys()).index(self.deprecated_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ValueError: list.index(x): x not in list
skimage/_shared/utils.py:255: ValueError
During handling of the above exception, another exception occurred:
self = <skimage._shared.tests.test_utils.Test_deprecate_parameter
object at 0x7ea5ae8fd550>
def test_wrong_param_name(self):
> with pytest.raises(ValueError, match="'old' is not in list"):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E AssertionError: Regex pattern did not match.
E Regex: "'old' is not in list"
E Input: 'list.index(x): x not in list'
skimage/_shared/tests/test_utils.py:473: AssertionError
Description: fix test to match python 3.14
Origin: upstream, https://github.com/scikit-image/scikit-image/commit/61b32225cc75fc94d8b056dc6780cb1bf4cdcadf#diff-b18ac9fbca7548d3f9279dccca614307ec05194648515f467ac1e139b32adadd
Author: Grzegorz Bokota <[email protected]>
Last-Update: 2025-08-22
--- a/skimage/_shared/utils.py
+++ b/skimage/_shared/utils.py
@@ -252,11 +252,17 @@
def __call__(self, func):
parameters = inspect.signature(func).parameters
- deprecated_idx = list(parameters.keys()).index(self.deprecated_name)
+ try:
+ deprecated_idx = list(parameters.keys()).index(self.deprecated_name)
+ except ValueError as e:
+ raise ValueError(f"{self.deprecated_name!r} not in parameters") from e
+
+ new_idx = False
if self.new_name:
- new_idx = list(parameters.keys()).index(self.new_name)
- else:
- new_idx = False
+ try:
+ new_idx = list(parameters.keys()).index(self.new_name)
+ except ValueError as e:
+ raise ValueError(f"{self.new_name!r} not in parameters") from e
if parameters[self.deprecated_name].default is not DEPRECATED:
raise RuntimeError(
@@ -520,8 +526,7 @@
def __call__(self, func):
message = (
- f"`{func.__name__}` is deprecated since version "
- f"{self.deprecated_version}"
+ f"`{func.__name__}` is deprecated since version {self.deprecated_version}"
)
if self.removed_version:
message += f" and will be removed in version {self.removed_version}."
@@ -613,9 +618,7 @@
try:
np.testing.assert_allclose(mod, 0, atol=atol)
except AssertionError:
- raise ValueError(
- f'Integer argument required but received ' f'{val}, check inputs.'
- )
+ raise ValueError(f'Integer argument required but received {val}, check inputs.')
return np.round(val).astype(np.int64)
@@ -776,7 +779,7 @@
return 0 if image_dtype == bool else 1
if order < 0 or order > 5:
- raise ValueError("Spline interpolation order has to be in the " "range 0-5.")
+ raise ValueError("Spline interpolation order has to be in the range 0-5.")
if image_dtype == bool and order != 0:
raise ValueError(
--- a/skimage/_shared/tests/test_utils.py
+++ b/skimage/_shared/tests/test_utils.py
@@ -470,13 +470,13 @@
_func_deprecated_params(1, 2, old0=2)
def test_wrong_param_name(self):
- with pytest.raises(ValueError, match="'old' is not in list"):
+ with pytest.raises(ValueError, match="'old' not in parameters"):
@deprecate_parameter("old", start_version="0.10", stop_version="0.12")
def foo(arg0):
pass
- with pytest.raises(ValueError, match="'new' is not in list"):
+ with pytest.raises(ValueError, match="'new' not in parameters"):
@deprecate_parameter(
"old", new_name="new", start_version="0.10", stop_version="0.12"
--- End Message ---
--- Begin Message ---
Source: skimage
Source-Version: 0.25.2-3
Done: Ole Streicher <[email protected]>
We believe that the bug you reported is fixed in the latest version of
skimage, 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.
Ole Streicher <[email protected]> (supplier of updated skimage 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, 24 Oct 2025 21:34:31 +0200
Source: skimage
Architecture: source
Version: 0.25.2-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers
<[email protected]>
Changed-By: Ole Streicher <[email protected]>
Closes: 1118742
Changes:
skimage (0.25.2-3) unstable; urgency=medium
.
* Fix test to match python 3.14 (Closes: #1118742)
* Add build-dep python3-numpy-dev
* d/u/metadata: fix Reference keywords
* Push Standards-Version to 4.7.2, no changes needed
Checksums-Sha1:
4b6b69625bafeb3f6cbc130525f403e375e36d3e 3071 skimage_0.25.2-3.dsc
752cba9f024614969625c05e2586fa83b270a354 32476 skimage_0.25.2-3.debian.tar.xz
Checksums-Sha256:
adfd0fc3462c924da4a1c73dd944930ce26bfc6f87aae276b2a0b628ccc58ecc 3071
skimage_0.25.2-3.dsc
fa63068f19a9c403969aaa3c5f6682ce355bc48055af3aea7cd3376146ec685b 32476
skimage_0.25.2-3.debian.tar.xz
Files:
5b47c23b0fcac11765e52f4062cc780b 3071 python optional skimage_0.25.2-3.dsc
bbc584d528377c8e01c334e43249b147 32476 python optional
skimage_0.25.2-3.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEE7/BpV0Ra2/h0L3qtmk9WvbkOGL0FAmj755gACgkQmk9WvbkO
GL2ySQ/9GHtURm2KZZEqXAfZCAjyDkQy5akf1JQyCwNgqIG1T9RvVtngzp83feMv
OBeBkydzbCzFWv+o6MKj7+28YFJdDYlLZq1yJl9vqLtlrb0eu4OJqsSD7TARV94i
qAULbzvkaYX8v59YvFuWXjgu/DGsOt2qzeeBD0I6RDhKvX+g+6RXD1RbmqOQX8LO
CSCc+jnN5rxqLS4n7oZ9tdr8jXZfjfpDH+xQfyXCqlOSxsH3e5TQVlphGbKlrl2J
S9rY7IhgD/L5ZY7foPtkaEdQACHSDH8Lsnxx//lM3QrbljWY48kMYw+zwJ8aCzfS
/6BLidoE8YwtfVb+78ykA0ywLr9/ooP6dfegkOYt00PklCnAUNcevLtke0LyQ1pG
NRSz/1VDjyAXlCen9BVO6DSECKKDP4tnMEYIWWecZfPQkS4WeIr2F5dm58as2HqE
SUiDWKmMpKovsKzSfDdrWp925TP6CZRxjObm0x5wG9ZEZaWHWrrwaHSZpzwRcasW
dBjXHuv5M7HOSymtAgmgttgetrAcJ+qg2hTr7e6hIvLiZ8/Dnk6XR2ZKUgI7jAd9
0/AosCwP20ErhJaDxeWnZU/sBkLdcJXMcgj82/J3o82xn+R0inpXDusLQEGMd+HA
NMkxSqJLSbQIlkdQER0v2V7LDOFUDK41cq0Xm556ezerwqOZbAA=
=Te+L
-----END PGP SIGNATURE-----
pgpLnaQMVW0F3.pgp
Description: PGP signature
--- End Message ---