Skip to content

Fix Python 3.13 compatibility issues in requirements.txt#42

Open
simonmeacham wants to merge 1 commit intosmall-cactus:mainfrom
simonmeacham:fix/python-3.13-compatibility
Open

Fix Python 3.13 compatibility issues in requirements.txt#42
simonmeacham wants to merge 1 commit intosmall-cactus:mainfrom
simonmeacham:fix/python-3.13-compatibility

Conversation

@simonmeacham
Copy link
Copy Markdown

Problem

Installation fails on Python 3.13 (Windows) with KeyError: '__version__' errors when building Pillow and
openai-whisper from source.

Solution

Updated requirements.txt to use package versions that have pre-built wheels for Python 3.13:

  • numpy>=1.26.4 - Allows newer versions with Python 3.13 support
  • Pillow>=10.3.0 - Allows newer versions with Python 3.13 support
  • sympy>=1.12 - Fixes dependency conflict with torch (requires >=1.13.3)
  • ⚠️ openai-whisper @ git+...@c0d2f624 - Temporary fix using specific git commit

Note on openai-whisper

The git-based install is temporary until OpenAI releases a Python 3.13-compatible version to PyPI. The commit is
pinned to ensure reproducibility.

Testing

Tested successfully on:

  • Python 3.13.9
  • Windows 11
  • All packages install without errors
  • Key modules (whisper, PIL, numpy, openai) import correctly

Updates package versions to support Python 3.13 on Windows:

- numpy: Changed to >=1.26.4 to allow versions with Python 3.13 wheels
- Pillow: Changed to >=10.3.0 to allow versions with Python 3.13 wheels
- sympy: Changed to >=1.12 to resolve dependency conflict with torch (requires >=1.13.3)
- openai-whisper: Temporarily install from git commit c0d2f624 until PyPI releases a Python 3.13-compatible version

These changes fix build errors (KeyError: '__version__') that occur when
installing packages from source on Python 3.13.

Tested on: Python 3.13.9, Windows 11

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant