AllenCellModeling/aicsimageio

main[base-imageio] failing due to Pillow

SeanLeRoy opened this issue · 0 comments

(Update Update) Seems the issue was resolved, should try again

(Update) They fixed the original issue in 2.28.1 but a new issue where another keyword was deprecated (fps) is now blocking us :( This issue describes it imageio/imageio#992

With the release of imageio 2.28.0 on 04/23/2023, main[base-imageio] failed when using imageio's pillow plugin to access images. As a result of this we have pinned 2.27.0 until this issue is resolved.

The main issue seems to come from trying to access the n_frames attribute.

aicsimageio/tests/image_container_test_utils.py:161: in run_image_file_checks
    run_image_container_checks(
aicsimageio/tests/image_container_test_utils.py:75: in run_image_container_checks
    assert image_container.shape == expected_shape
aicsimageio/readers/reader.py:521: in shape
    return self.xarray_dask_data.shape
aicsimageio/readers/reader.py:359: in xarray_dask_data
    self._xarray_dask_data = self._read_delayed()
aicsimageio/readers/default_reader.py:418: in _read_delayed
    image_length = self._get_image_length(
aicsimageio/readers/default_reader.py:286: in _get_image_length
    return reader.get_length()
.tox/base-imageio/lib/python3.8/site-packages/imageio/v2.py:138: in get_length
    return self.instance.properties(index=...).n_images
.tox/base-imageio/lib/python3.8/site-packages/imageio/plugins/pillow.py:487: in properties
    n_frames: int = self._image.n_frames