#1010430 tifffile breaks skimage autopkgtest: asarray() got an unexpected keyword argument 'multifile'

Package:
src:skimage
Source:
skimage
Submitter:
Paul Gevers
Date:
2022-06-30 17:27:03 UTC
Severity:
serious
Tags:
Blocked By:
Bug Title
1010595

  7

Please make xsimd available on all platforms

normal testing about 4 years ago

#1010430#5
Date:
2022-05-01 12:45:32 UTC
From:
To:
Dear maintainer(s),

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

                        pass            fail
tifffile               from testing    20220426-1
skimage                from testing    0.18.3-2
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 tifffile to
testing [1]. Due to the nature of this issue, I filed this bug report
against both packages. Can you please investigate the situation and
reassign the bug to the right package?

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=tifffile

https://ci.debian.net/data/autopkgtest/testing/amd64/s/skimage/21268058/log.gz
                      multifile=False, multifile_close=True, fastij=True,
                      is_ome=True)

/usr/lib/python3/dist-packages/skimage/io/tests/test_tifffile.py:41: _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ /usr/lib/python3/dist-packages/skimage/io/_io.py:48: in imread
     img = call_plugin('imread', fname, plugin=plugin, **plugin_args)
/usr/lib/python3/dist-packages/skimage/io/manage_plugins.py:207: in
call_plugin
     return func(*args, **kwargs)
/usr/lib/python3/dist-packages/skimage/io/_plugins/tifffile_plugin.py:30: in
imread
     return tifffile_imread(fname, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
files = '/usr/lib/python3/dist-packages/skimage/data/../data/multipage.tif'
aszarr = False
kwargs = {'fastij': True, 'key': [1], 'multifile': False,
'multifile_close': True}
kwargs_file = {'is_ome': True}, kwargs_seq = {}
tif = <tifffile.TiffFile 'multipage.tif'>

     def imread(
         files: str
         | os.PathLike
         | FileHandle
         | BinaryIO
         | Sequence[str | os.PathLike]
         | None = None,
         *,
         aszarr: bool = False,
         **kwargs,
     ) -> numpy.ndarray | ZarrTiffStore | ZarrFileSequenceStore:
         """Return image data from TIFF file(s) as numpy array or zarr
storage.
             Refer to the TiffFile and TiffSequence classes and their
asarray
         functions for documentation.
             Parameters
         ----------
         files : path-like, binary stream, or sequence
             File name, seekable binary stream, glob pattern, or sequence of
             file names. May be None (default) if 'container' is specified.
         aszarr : bool
             If True, return file sequences, series, or single pages as
             zarr storage instead of numpy array (experimental).
         **kwargs
             Optional extra arguments.
             Parameters 'name', 'offset', 'size', and 'is_' flags are
passed to
             TiffFile or TiffSequence.imread.
             Parameters 'imread', 'container', 'sort', 'pattern',
'axesorder',
             and 'categories' are passed to TiffSequence.
             Other parameters are passed to the asarray or aszarr functions.
             The first image series in the file is returned if no
arguments are
             provided.
             Returns
         -------
         numpy.ndarray or zarr storage
             Image data from the specified pages.
             Zarr storage instances must be closed after use.
             See TiffPage.asarray for operations that are applied (or not)
             to the raw data stored in the file.
             """
         kwargs_file = parse_kwargs(
             kwargs,
             'name',
             'offset',
             'size',
             # private
             '_multifile',
             '_useframes',
             # is_flags
             *(key for key in kwargs if key[:3] == 'is_'),
         )
         kwargs_seq = parse_kwargs(
             kwargs,
             'imread',
             'container',
             'sort',
             'pattern',
             'axesorder',
             'categories',
         )
             if kwargs_seq.get('container', None) is None:
             if isinstance(files, str) and ('*' in files or '?' in files):
                 files = glob.glob(files)
             if not files:
                 raise ValueError('no files found')
                 if (
                 isinstance(files, collections.abc.Sequence)
                 and not isinstance(files, str)
                 and len(files) == 1
             ):
                 files = files[0]
                 if isinstance(files, str) or not isinstance(
                 files, collections.abc.Sequence
             ):
                 with TiffFile(files, **kwargs_file) as tif:
                     if aszarr:
                         return tif.aszarr(**kwargs)
E                   TypeError: asarray() got an unexpected keyword
argument 'multifile'

#1010430#24
Date:
2022-06-07 06:22:56 UTC
From:
To:
#1010430#33
Date:
2022-06-08 19:19:36 UTC
From:
To:
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 1010430@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ole Streicher <olebole@debian.org> (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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 08 Jun 2022 18:33:48 +0200
Source: skimage
Architecture: source
Version: 0.18.3-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Ole Streicher <olebole@debian.org>
Closes: 1009431 1010430
Changes:
 skimage (0.18.3-3) unstable; urgency=medium
 .
   * Remove use of deprecated kwargs from test_tifffile_kwarg_passthrough
     (Closes: #1010430)
   * handle PIL palettes with <256 colors (Closes: #1009431)
Checksums-Sha1:
 aae02cda197f6c74e98f9c5d1913f91f39cc6651 2905 skimage_0.18.3-3.dsc
 38084aa1bcf6f38c248ab1d8b44e5fe019279c8b 25316 skimage_0.18.3-3.debian.tar.xz
Checksums-Sha256:
 948fc7d3e7ca885c3910440b2fba324b3c283facfb7ce341ba14317fab4c5542 2905 skimage_0.18.3-3.dsc
 130d3ab231dedaa2bc6dce3e862065b2e58953c0239287fc652f8bc3ca9093f1 25316 skimage_0.18.3-3.debian.tar.xz
Files:
 3b2b1df1e8ec2fed472d8c06331875d6 2905 python optional skimage_0.18.3-3.dsc
 7f938c35c03c608bc32cc34f0f2b7ef0 25316 python optional skimage_0.18.3-3.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEuvxshffLFD/utvsVcRWv0HcQ3PcFAmKg4m0ACgkQcRWv0HcQ
3PcjrxAAlD8u6YaptTrPJnziW3bpEGNFbna1NYJPQ+DaWGyUrfhOuthxVNSFY5nN
4Z2mwV2x7/CxeUcVcVcrnkkdZ4Kl0A+dyJYpwIJ+EuK5GWxZJ6qsqfxS1A1wU8G1
bpwSz4bS2029RVVQXGJ+IY8PcFfDCJuy5JnyB7cK7/ui8pPRpec9m5bAJujvOq6S
REbDC0dWhcLG+02zA+AcNEzZ6chVXO2smTBjCmbboyhuosL6ccRZJcCCPohe4mtr
MWIjcgiDRN16a6bu1l90ZYY/Etixw+4Afkhb0+DoYh9P1DMElgcZPM4qHLVFt/5I
gZqLI6kVwEZbsvxVNvdPBb0GX9kek1Fun8Cnwpodotxff+hx1GPge0WS/4faXiuT
qEsZE5RgQ2gl3xtqUpReQYjE2v4231mU76VArKycrzI3ePgeA/Z3bRVJ9v1RXrUB
+GMduTEI4DUj+QNBpPNK7z9MOqZZjVb2jmFsep76Z4fp0kfzTd+WKIoGPRHNd4O9
INzYrY2Lf1Xkw6sg+HaINuWdWd13YhNG62D3K7egWeUnPUg3D6z5zD1rhI3qyr+n
1WVoj+fTPSSr959Kvyq8uDNrzlud8LaGb/WjCoGdhUMvD0gu3j0P+mO5tisXqQy7
CobTMRBVqMbD7GRYMjsNvG9UV6f3QtF3U4Fvl+SucEmZ5e39+2Q=
=rcba
-----END PGP SIGNATURE-----

#1010430#38
Date:
2022-06-30 17:22:35 UTC
From:
To:
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 1010430@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ole Streicher <olebole@debian.org> (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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 25 Jun 2022 19:45:33 +0200
Source: skimage
Architecture: source
Version: 0.19.3-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Ole Streicher <olebole@debian.org>
Closes: 1010430
Changes:
 skimage (0.19.3-1) unstable; urgency=medium
 .
   * New upstream version 0.19.3
   * Rediff patches. Drop patches applied upstream.
   * Drop versionized build deps where applicable
   * Push Standards-Version to 4.6.0. No changes needed
   * Add new build dependencies python3-pythran, python3-pooch
   * Skip more files that require pooch and internet
   * Remove use of deprecated kwargs from test_tifffile_kwarg_passthrough
     (Closes: #1010430)
Checksums-Sha1:
 5d97aadb02346996de3b296ade55450970379809 2895 skimage_0.19.3-1.dsc
 f80bc957d6f2bafc7c74e3b9e9972686279ef6c1 22978982 skimage_0.19.3.orig.tar.gz
 3cb6d9214c2f8b56b92aa114a804ac3e22bfc734 25296 skimage_0.19.3-1.debian.tar.xz
Checksums-Sha256:
 0d5e16305f9a2040207fa393a581366a78aad7f7e6bd839de239c58c8d6c5264 2895 skimage_0.19.3-1.dsc
 4eb877c98d1395769daef5bc2ba8a7efd3f736c87086aecb3775a9174593398b 22978982 skimage_0.19.3.orig.tar.gz
 e76d27eb23d52e905490326457a9b22cb32e157ad9a35ed8144ce9219aae7d5d 25296 skimage_0.19.3-1.debian.tar.xz
Files:
 f44cfec6df859156ec8e3481563c3bb8 2895 python optional skimage_0.19.3-1.dsc
 cf5d57730c66ca394a9e979741193cae 22978982 python optional skimage_0.19.3.orig.tar.gz
 b7a787a9b329321406076a31a40c0129 25296 python optional skimage_0.19.3-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEuvxshffLFD/utvsVcRWv0HcQ3PcFAmK90usACgkQcRWv0HcQ
3PfwohAAvNtvkMpfQ+kxZk+KUaaKikadzPxxdwq2yft+eDb5j3BeIWTXoXnAZksN
US9ZRC4xlez8AQmBkX8NfWbZFRuW7OypqRk9Ov3SlGIGxBW2roRABQAL/0+vRTkF
fy7vcACznlhLnkQNjXORaGaNBaMxLrvFmOxPMXobPFvK9SMPmKtMUiUJHCtn00SV
N2ly4GFyU0i7yiBZEEk57wxOtVq2saGVs+HfLaN73Ml3egy9J+0V8jEFhA+gpjtP
d/b5ZG0eykc22jU8j9ag6fsWIugT6cldP3ZCf2IVaFgz7FJ9h7B8jA9qnrGXIAvp
yUqf+XcbevlPTj4sHmxIWqGSF7AYcEW98CRdd0T1yeEOhI81Na/IHQwtRAd8U/Kc
a+wBht9cpA57WbqID7y4Zlfq7VlG9heGgeFBsJc2SoStvomjhvLhvkt6UIt9q+tG
3ivXtqnX04LP24a/E76LQSUbVlAr6IkanabUjgVNLpZpu5Ntt5vSakE8x4VD1ZjS
Qyj6gRXqA58Ol7O7aLhPJlyiz3gNfw/56EgZJH2dCQPZUg7kH3Owf4YI+k5AxuoN
P7Fm61zsuvQian8s+wmEQ0Wkxlqgt+GdfRZWV2df4VYNH2ylApwPty4KYRaN5qEE
0dwuxlFKY0VnTSpYji1NJ0g+c1uKYT6oJ7LjFUkOE5tYssA46Xk=
=NAEX
-----END PGP SIGNATURE-----