Fix Python 3.13 compatibility issues in requirements.txt#42
Open
simonmeacham wants to merge 1 commit intosmall-cactus:mainfrom
Open
Fix Python 3.13 compatibility issues in requirements.txt#42simonmeacham wants to merge 1 commit intosmall-cactus:mainfrom
simonmeacham wants to merge 1 commit intosmall-cactus:mainfrom
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Installation fails on Python 3.13 (Windows) with
KeyError: '__version__'errors when building Pillow andopenai-whisper from source.
Solution
Updated
requirements.txtto use package versions that have pre-built wheels for Python 3.13:numpy>=1.26.4- Allows newer versions with Python 3.13 supportPillow>=10.3.0- Allows newer versions with Python 3.13 supportsympy>=1.12- Fixes dependency conflict with torch (requires >=1.13.3)openai-whisper @ git+...@c0d2f624- Temporary fix using specific git commitNote 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: