Skip to content

manim Fails to Render Video in Command Line #4365

@zhdbk3

Description

@zhdbk3

Description of bug / unexpected behavior

When executing manim in the command line, the video fails to render despite the process completing without errors.

Expected behavior

The video should render and preview successfully.

How to reproduce the issue

Code for reproducing the problem
# main.py
from manim import *


class DefaultTemplate(Scene):
    def construct(self):
        circle = Circle()  # create a circle
        circle.set_fill(PINK, opacity=0.5)  # set color and transparency

        square = Square()  # create a square
        square.flip(RIGHT)  # flip horizontally
        square.rotate(-3 * TAU / 8)  # rotate a certain amount

        self.play(Create(square))  # animate the creation of the square
        self.play(Transform(square, circle))  # interpolate the square into the circle
        self.play(FadeOut(square))  # fade out animation
manim main.py

Additional media files

Images/GIFs

Logs

Terminal output
$ manim main.py -v DEBUG
Manim Community v0.19.0

[08/02/25 21:12:28] DEBUG    Hashing ...                                                                                                                                  hashing.py:352
                    DEBUG    Hashing done in 0.002615 s.                                                                                                                  hashing.py:364
                    DEBUG    Hash generated :  3161293378_2169219173_223132457                                                                                            hashing.py:367
                    DEBUG    List of the first few animation hashes of the scene: ['3161293378_2169219173_223132457']                                               cairo_renderer.py:98
                    DEBUG    Hashing ...                                                                                                                                  hashing.py:352
                    DEBUG    Hashing done in 0.003385 s.                                                                                                                  hashing.py:364
                    DEBUG    Hash generated :  4088896323_2176658000_557880437                                                                                            hashing.py:367
                    DEBUG    List of the first few animation hashes of the scene: ['3161293378_2169219173_223132457', '4088896323_2176658000_557880437']            cairo_renderer.py:98
                    DEBUG    Hashing ...                                                                                                                                  hashing.py:352
                    DEBUG    Hashing done in 0.002369 s.                                                                                                                  hashing.py:364
                    DEBUG    Hash generated :  4088896323_2956010123_557880437                                                                                            hashing.py:367
                    DEBUG    List of the first few animation hashes of the scene: ['3161293378_2169219173_223132457', '4088896323_2176658000_557880437',            cairo_renderer.py:98
                             '4088896323_2956010123_557880437']                                                                                                                         
                    INFO     Rendered DefaultTemplate                                                                                                                       scene.py:255
                             Played 3 animations

System specifications

System Details
  • OS (with version, e.g., Windows 10 v2004 or macOS 10.15 (Catalina)): Windows 11 24H2 26100.4652
  • RAM: 32 GB
  • Python version (python/py/python3 --version): Python 3.12.11
  • Installed modules (provide output from pip list):
$ uv pip list
Using Python 3.12.11 environment at: D:\PycharmProjects\ManimVideos\.venv
Package           Version
----------------- -----------
av                13.1.0
beautifulsoup4    4.13.4
click             8.2.2
cloup             3.0.7
colorama          0.4.6
decorator         5.2.1
glcontext         3.0.0
isosurfaces       0.1.2
manim             0.19.0
manimpango        0.6.0
mapbox-earcut     1.0.3
markdown-it-py    3.0.0
mdurl             0.1.2
moderngl          5.12.0
moderngl-window   3.1.1
networkx          3.5
numpy             2.3.2
pillow            11.3.0
pycairo           1.28.0
pydub             0.25.1
pyglet            2.1.6
pyglm             2.8.2
pygments          2.19.2
rich              14.1.0
scipy             1.16.1
screeninfo        0.8.1
skia-pathops      0.8.0.post2
soupsieve         2.7
srt               3.5.3
svgelements       1.9.6
tqdm              4.67.1
typing-extensions 4.14.1
watchdog          6.0.0
LaTeX details
  • LaTeX distribution (e.g. TeX Live 2020): MiKTeX 25.4
  • Installed LaTeX packages:

Additional comments

  • manim checkhealth successfully renders and previews CheckHealthDemo.
  • ✅ Directly running main.py with DefaultTemplate().render(preview=True) works correctly.
  • ❌ Only command-line invocation fails (manim main.py).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions