Skip to content

Update Pillow to support Python 3.13 compatibility #605

@dahagag

Description

@dahagag

Problem

The package installation fails on Python 3.13 with the following error during Pillow 9.2.0 build:

KeyError: '__version__'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1

Root Cause

Pillow 9.2.0 (released July 2022) does not support Python 3.13. The error occurs because Pillow's setup.py tries to read __version__ from a module in a way that is incompatible with Python 3.13.

Solution

Upgrade Pillow from version 9.2.0 to 10.1.0 or newer. Pillow 10.1.0 (released October 2023) includes full Python 3.13 support.

Files to Update:

  • requirements.txt: Change Pillow==9.2.0 to Pillow==10.1.0
  • requirements-webapp.txt: Change Pillow==9.2.0 to Pillow==10.1.0

Additional Context

This issue affects installation via Ansible on systems running Python 3.13. The error appears during the pip install process when building wheels for the opwen_email_client package.

A pull request with the fix will follow.

Metadata

Metadata

Assignees

Labels

bugdependenciesPull requests that update a dependency file

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions