You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the command-line arguments with --fps, a type error occured.
Here is the bug report below.
Code:
(manim) PS C:\Documents\Github\Repo\manim> manimgl test.py TextExample -r "1920x1080" --fps 60 --clear-cache -ow
ManimGL v1.7.2
TextExample.mp4 :: 0it [00:00, ?it/s]Traceback (most recent call last):
File "C:\Application\Anaconda3\envs\manim\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Application\Anaconda3\envs\manim\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Application\Anaconda3\envs\manim\Scripts\manimgl.exe\__main__.py", line 7, in<module>sys.exit(main())
File "C:\Documents\Github\Repo\manim\manimlib\__main__.py", line 61, in main
run_scenes()
File "C:\Documents\Github\Repo\manim\manimlib\__main__.py", line 39, in run_scenes
scene.run()
File "C:\Documents\Github\Repo\manim\manimlib\scene\scene.py", line 155, in run
self.construct()
File "C:\Documents\Github\Repo\manim\test.py", line 18, in construct
self.play(Write(text))
File "C:\Documents\Github\Repo\manim\manimlib\scene\scene.py", line 321, in wrapper
func(self, *args, **kwargs)
File "C:\Documents\Github\Repo\manim\manimlib\scene\scene.py", line 586, in play
self.progress_through_animations(animations)
File "C:\Documents\Github\Repo\manim\manimlib\scene\scene.py", line 551, in progress_through_animations
fortin self.get_animation_time_progression(animations):
File "C:\Documents\Github\Repo\manim\manimlib\scene\scene.py", line 499, in get_animation_time_progression
time_progression = self.get_time_progression(run_time, desc=description)
File "C:\Documents\Github\Repo\manim\manimlib\scene\scene.py", line 471, in get_time_progression
times = np.arange(0, run_time, 1 / self.camera.fps) + 1 / self.camera.fps
TypeError: unsupported operand type(s) for /: 'int' and 'str'
And I locate the error in manimlib\scene\scene.py , line 471:
When using the command-line arguments with
--fps
, a type error occured.Here is the bug report below.
Code:
And I locate the error in
manimlib\scene\scene.py
, line 471:I tried typecasting, and then it can work well. Hope an official fixed version!
add this line:
The text was updated successfully, but these errors were encountered: