Repository navigation
State a supported minimum Python version - #2491
Merged
Merged
Conversation
00PrabalK00
force-pushed
the
docs/python-version
branch
from
August 10, 2026 16:41
4e1fb69 to
ac2a4e2
Compare
The README and the installation docs say Python 3.7 or higher, and the conda instructions create a 3.8 environment. Neither can work: `ipython>=8.18.0` alone rules out anything below 3.9, and on 3.9 importing manimlib raises "TypeError: 'staticmethod' object is not callable", since calling a staticmethod object directly, as Mobject and Scene do with their decorators, only became legal in 3.10. 3.9 reached end of life in October 2025, and current releases of rendercanvas, skia-pathops, pillow and trimesh all require 3.10 or higher, so 3.10 is where the dependency stack sits regardless. Say so in both places, and add a python_requires so pip reports the problem up front rather than after a failed install. Classifiers follow. Fixes 3b1b#2405
00PrabalK00
force-pushed
the
docs/python-version
branch
from
August 10, 2026 16:52
ac2a4e2 to
2dde4dc
Compare
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.
Motivation
The README and the installation docs say Python 3.7 or higher, and the conda instructions create a 3.8 environment. Neither can work.
ipython>=8.18.0alone rules out anything below 3.9, and on 3.9 importing manimlib fails outright.To be precise about why 3.10 rather than 3.9, since it comes down to very little:
compileallunder 3.9 passes on all of manimlib, so there is no 3.10 only syntax. The import failure isMobject.stash_mobject_pointersandScene.affects_mobject_list,@staticmethodfunctions used as decorators inside their own class body, legal to call directly only from 3.10. That is #2263, which #2466 targets. Drop those two@staticmethodlines locally and 3.9 imports and renders fine.So the case for 3.10 is not that the library needs it deeply, it is that 3.9 went end of life in October 2025 and current releases of rendercanvas, skia-pathops, pillow and trimesh all require 3.10 or higher. On 3.9 pip resolves back to wgpu 0.24 and rendercanvas 2.2.1 to stay under that ceiling. Happy to cut this back to a docs only change and drop the
python_requiresif you would rather keep 3.9 installable.Fixes #2405
Proposed changes
installation.rst, and create the conda env with 3.10python_requires = >=3.10tosetup.cfg, so pip reports the problem before installing rather than afterTest
Code:
Result:
3.9 fails with
TypeError: 'staticmethod' object is not callable. 3.10, 3.11 and 3.12 all install and import fine.