Skip to content

[BUG] manimgl rendering: unexpected keyword argument 'skip_animations' #314

@ttiee

Description

@ttiee

Description

Hello, I am new to use manimgl and manim-slides

this when running manimgl demo01.py BasicExample, it runs well

from manimlib import *
import numpy as np
from manim_slides import Slide

class BasicExample(Scene):
    def construct(self):
        circle = Circle(radius=3, color=BLUE)
        dot = Dot()

        self.play(GrowFromCenter(circle))

        self.play(MoveAlongPath(dot, circle), run_time=2, rate_func=linear)

        self.play(dot.animate.move_to(ORIGIN))

but replace the Scene to Slide like this

from manimlib import *
import numpy as np
from manim_slides import Slide

class BasicExample(Slide):
    def construct(self):
        circle = Circle(radius=3, color=BLUE)
        dot = Dot()

        self.play(GrowFromCenter(circle))

        self.play(MoveAlongPath(dot, circle), run_time=2, rate_func=linear)

        self.play(dot.animate.move_to(ORIGIN))

I get the following error:

(.env) E:\Manim\manimgl>manimgl demo01.py BasicExample
ManimGL v1.6.1
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "E:\Manim\manimgl\.env\Scripts\manimgl.exe\__main__.py", line 7, in <module>
  File "E:\Manim\manimgl\manimlib\__main__.py", line 22, in main
    scenes = manimlib.extract_scene.main(config)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Manim\manimgl\manimlib\extract_scene.py", line 134, in main
    scenes = get_scenes_to_render(all_scene_classes, scene_config, config)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Manim\manimgl\manimlib\extract_scene.py", line 107, in get_scenes_to_render
    return [
           ^
  File "E:\Manim\manimgl\manimlib\extract_scene.py", line 108, in <listcomp>
    scene_from_class(scene_class, scene_config, config)
  File "E:\Manim\manimgl\manimlib\extract_scene.py", line 86, in scene_from_class
    return scene_class(**scene_config)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Manim\manimgl\.env\Lib\site-packages\manim_slides\slide\manimlib.py", line 19, in __init__
    super().__init__(*args, **kwargs)
  File "E:\Manim\manimgl\.env\Lib\site-packages\manim_slides\slide\base.py", line 29, in __init__
    super().__init__(*args, **kwargs)
  File "E:\Manim\manimgl\manimlib\scene\scene.py", line 122, in __init__
    self.file_writer = SceneFileWriter(self, **self.file_writer_config)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: SceneFileWriter.__init__() got an unexpected keyword argument 'skip_animations'

I don't really know why
I will apprechiate a lot If you can give me some help

Version

The latest manimgl and manim-slides

Platform

Win11

Screenshots

image

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcliRelated to the command line interfacemanimglExclusive to ManimGLpythonPull requests that update Python codewaiting externalWaiting for things that are external to Manim Slides (e.g., a feature on a dependency)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions