Your message dated Sun, 19 Oct 2025 20:40:42 +0000
with message-id <[email protected]>
and subject line Bug#1118347: fixed in scikit-learn 1.7.2+dfsg-3
has caused the Debian Bug report #1118347,
regarding scikit-learn: image tests fail treating text file as image
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.)


-- 
1118347: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1118347
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: scikit-learn
Version: 1.7.2+dfsg-2
Severity: serious
Justification: debci

scikit-learn 1.7.2+dfsg-2 is failing test_load_sample_image* from
test_base.py

It looks like it is cycling through all files in datasets/images
without discerning whether the file is an actual image file, so
failing when it processes README.txt.


926s ___________________________ test_load_sample_images 
____________________________
926s 
926s     def test_load_sample_images():
926s         try:
926s >           res = load_sample_images()
926s                   ^^^^^^^^^^^^^^^^^^^^
926s 
926s /usr/lib/python3/dist-packages/sklearn/datasets/tests/test_base.py:230: 
926s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ 
926s /usr/lib/python3/dist-packages/sklearn/datasets/_base.py:1336: in 
load_sample_images
926s     descr = load_descr("README.txt", descr_module=IMAGES_MODULE)
926s             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
926s /usr/lib/python3/dist-packages/sklearn/datasets/_base.py:491: in load_descr
926s     return path.read_text(encoding=encoding)
926s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
926s /usr/lib/python3.13/pathlib/_local.py:548: in read_text
926s     return PathBase.read_text(self, encoding, errors, newline)
926s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
926s /usr/lib/python3.13/pathlib/_abc.py:632: in read_text
926s     with self.open(mode='r', encoding=encoding, errors=errors, 
newline=newline) as f:
926s          
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
926s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ 
926s 
926s self = 
PosixPath('/usr/lib/python3/dist-packages/sklearn/datasets/images/README.txt')
926s mode = 'r', buffering = -1, encoding = 'utf-8', errors = None, newline = 
None
926s 
926s     def open(self, mode='r', buffering=-1, encoding=None,
926s              errors=None, newline=None):
926s         """
926s         Open the file pointed to by this path and return a file object, as
926s         the built-in open() function does.
926s         """
926s         if "b" not in mode:
926s             encoding = io.text_encoding(encoding)
926s >       return io.open(self, mode, buffering, encoding, errors, newline)
926s                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
926s E       FileNotFoundError: [Errno 2] No such file or directory: 
'/usr/lib/python3/dist-packages/sklearn/datasets/images/README.txt'
926s 
926s /usr/lib/python3.13/pathlib/_local.py:539: FileNotFoundError
926s ____________________________ test_load_sample_image 
____________________________
926s 
926s     def test_load_sample_image():
926s         try:
926s >           china = load_sample_image("china.jpg")
926s                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
926s 
926s /usr/lib/python3/dist-packages/sklearn/datasets/tests/test_base.py:246: 
926s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ 
926s /usr/lib/python3/dist-packages/sklearn/utils/_param_validation.py:218: in 
wrapper
926s     return func(*args, **kwargs)
926s            ^^^^^^^^^^^^^^^^^^^^^
926s /usr/lib/python3/dist-packages/sklearn/datasets/_base.py:1392: in 
load_sample_image
926s     images = load_sample_images()
926s              ^^^^^^^^^^^^^^^^^^^^
926s /usr/lib/python3/dist-packages/sklearn/datasets/_base.py:1336: in 
load_sample_images
926s     descr = load_descr("README.txt", descr_module=IMAGES_MODULE)
926s             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
926s /usr/lib/python3/dist-packages/sklearn/datasets/_base.py:491: in load_descr
926s     return path.read_text(encoding=encoding)
926s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
926s /usr/lib/python3.13/pathlib/_local.py:548: in read_text
926s     return PathBase.read_text(self, encoding, errors, newline)
926s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
926s /usr/lib/python3.13/pathlib/_abc.py:632: in read_text
926s     with self.open(mode='r', encoding=encoding, errors=errors, 
newline=newline) as f:
926s          
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
926s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ 
926s 
926s self = 
PosixPath('/usr/lib/python3/dist-packages/sklearn/datasets/images/README.txt')
926s mode = 'r', buffering = -1, encoding = 'utf-8', errors = None, newline = 
None
926s 
926s     def open(self, mode='r', buffering=-1, encoding=None,
926s              errors=None, newline=None):
926s         """
926s         Open the file pointed to by this path and return a file object, as
926s         the built-in open() function does.
926s         """
926s         if "b" not in mode:
926s             encoding = io.text_encoding(encoding)
926s >       return io.open(self, mode, buffering, encoding, errors, newline)
926s                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
926s E       FileNotFoundError: [Errno 2] No such file or directory: 
'/usr/lib/python3/dist-packages/sklearn/datasets/images/README.txt'
926s 
926s /usr/lib/python3.13/pathlib/_local.py:539: FileNotFoundError

--- End Message ---
--- Begin Message ---
Source: scikit-learn
Source-Version: 1.7.2+dfsg-3
Done: Timo Röhling <[email protected]>

We believe that the bug you reported is fixed in the latest version of
scikit-learn, 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.
Timo Röhling <[email protected]> (supplier of updated scikit-learn 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: Sun, 19 Oct 2025 21:38:20 +0200
Source: scikit-learn
Architecture: source
Version: 1.7.2+dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers 
<[email protected]>
Changed-By: Timo Röhling <[email protected]>
Closes: 1118347
Changes:
 scikit-learn (1.7.2+dfsg-3) unstable; urgency=medium
 .
   * Upload to unstable.
   * Fix accidental formatting corruption in d/rules
   * Keep README.txt installed in sklearn.datasets module (Closes: #1118347)
   * Fix documentation depending on localization
Checksums-Sha1:
 e5c9da3f79fe3060307fed97acdb28866ded1027 3712 scikit-learn_1.7.2+dfsg-3.dsc
 97c50cbaf1f9c282909e6b5bbaadeca41242bcfc 27024 
scikit-learn_1.7.2+dfsg-3.debian.tar.xz
Checksums-Sha256:
 ea13bf37f2088cb4439f3d7bb0484077ba44fe235ffb189aa21f1b42e32395ca 3712 
scikit-learn_1.7.2+dfsg-3.dsc
 d813d5fdc0234527b691d57ced167030127e2501f86d34289b04bea9c7dc5651 27024 
scikit-learn_1.7.2+dfsg-3.debian.tar.xz
Files:
 9aec0055b0e25cc4fabcc5e268066b41 3712 python optional 
scikit-learn_1.7.2+dfsg-3.dsc
 7610320737df0ee03d759248c951ab1b 27024 python optional 
scikit-learn_1.7.2+dfsg-3.debian.tar.xz

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

iQJIBAEBCgAyFiEEmwPruYMA35fCsSO/zIxr3RQD9MoFAmj1RuQUHHJvZWhsaW5n
QGRlYmlhbi5vcmcACgkQzIxr3RQD9MovHQ//VbZvwH0QXg84bYvAhtooz5ZBy39n
dlQ0uDglQVY/cMcfHK6gQYGF2LjnMydLMy41hTNPPkup/l0X6UYvIy709en+0bda
P8MQZvak7dsxp+n0Xk0jvjkUpvYZJMgfXs+WCRMYH4JD59v6EtcgZrDN8zim8Lzc
I4b7RswiugRLXfahaAfhUtLzkZjlhn4oMncrrEboxlMjk5ELbRpKZdIt3zUHopFi
DUI+KPTP/GLZfQBXLSLCSI7f3XWIu0yqAUwqc9nyhl/Ke4+j9Mm9Q+DxJqF4f4KR
kSNLYFW4plCgc4ZEYbpoRh2Ds6Maqt7V7jLwtEUa+blFBfiBUzNj6US0PCVw+xxI
Lob2SKxX3LrhHwDRxKIN8h4GnSC2Blw1C9wE1lTYeaArGBUopcopyC94WQHkx4Hl
o+WAP/jqIiBLcHEb/MRE8Bnp5Ptff60jcksHlN5RJNm5kspUGNF5YMnXQbKQiXW/
93xEMBk5fm9rTjt7RXD8hBbiblgnlFjsvzn3mdY/Mj525RFnmpW0EJHWA3o63vvU
Mg8p9iL/wQ6vXQL3IRDJ/NdJuQFR6EyqteOcg7595rAWMRPxLevztV37NBdaOXjZ
sAqo7LQbE2WFH6ObFc9MyoQm+2KFeOoaz9pC4VFTQ4Vi2nF6cexkxnNr6pQdmSUF
i34kX9e7qnPaRYI=
=nFP8
-----END PGP SIGNATURE-----

Attachment: pgpaOXFwqPJuO.pgp
Description: PGP signature


--- End Message ---

Reply via email to