Closed tcompa closed 10 months ago
Current versions in fractal-tasks-core: Required in pyproject.toml: >=9.1.1,<11.0.0 Used for tests: 10.0.1
I checked in https://github.com/fractal-analytics-platform/fractal-tasks-core/actions/runs/6531523635/job/17732909815?pr=571, and the latest Pillow version (10.1) is indeed responsible for this issue.
I opened an issue at imageio: https://github.com/imageio/imageio/issues/1044. Depending on how it works over there, we may want to temporarily constrain the Pillow version to <10.1.
I suspect a similar issue may appear in scikit-image (see https://github.com/search?q=repo%3Ascikit-image%2Fscikit-image+%22.mode+%3D%22&type=code), but I'm not able to say whether we rely on these features.
I checked (through a fractal-containers run of examples 01 and 02 from fractal-demos, using the 570-fix-error-in-yokogawa-to-zarr-due-to-pillow-version
fractal-tasks-core branch) that restricting the Pillow version to be <10.1 does fix the issue.
I'm merging #571 for now, and will open a new issue as a reminder for relaxing this constraint as soon as there are relevant updates in imageio or pillow.
Running fractal-demos example 01 via a fresh version of fractal-containers leads to a failed job, with the traceback below. The obvious candidate explanation is https://pillow.readthedocs.io/en/stable/releasenotes/10.1.0.html#setting-image-mode: