manim icon indicating copy to clipboard operation
manim copied to clipboard

UserWarning: g0-72 not recognized + Index out of range

Open jyrg02 opened this issue 3 years ago • 1 comments

Describe the error

I am trying to get a preview using the TestScene command.

Code and Error

Code:

from manimlib.imports import*

class TestScene(Scene): def construct(self): t = TextMobject("Hello manim!") t.scale(2)

self.play(Write(t))
`self.wait()`

Error:

C:\Users\username\Downloads>manim test.py TestScene -p Media will be written to C:\Users\username\Downloads\media. You can change this behavior with the --media_dir flag. Writing "\centering Hello manim!" to C:\Users\username\Downloads\media\Tex\5d48734699112c17.tex C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\manimlib\mobject\svg\svg_mobject.py:125: UserWarning: g0-72 not recognized warnings.warn("%s not recognized" % ref) C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\manimlib\mobject\svg\svg_mobject.py:125: UserWarning: g0-101 not recognized warnings.warn("%s not recognized" % ref) C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\manimlib\mobject\svg\svg_mobject.py:125: UserWarning: g0-108 not recognized warnings.warn("%s not recognized" % ref) C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\manimlib\mobject\svg\svg_mobject.py:125: UserWarning: g0-111 not recognized warnings.warn("%s not recognized" % ref) C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\manimlib\mobject\svg\svg_mobject.py:125: UserWarning: g0-109 not recognized warnings.warn("%s not recognized" % ref) C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\manimlib\mobject\svg\svg_mobject.py:125: UserWarning: g0-97 not recognized warnings.warn("%s not recognized" % ref) C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\manimlib\mobject\svg\svg_mobject.py:125: UserWarning: g0-110 not recognized warnings.warn("%s not recognized" % ref) C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\manimlib\mobject\svg\svg_mobject.py:125: UserWarning: g0-105 not recognized warnings.warn("%s not recognized" % ref) C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\manimlib\mobject\svg\svg_mobject.py:125: UserWarning: g0-33 not recognized warnings.warn("%s not recognized" % ref) Writing "Hello manim!" to C:\Users\username\Downloads\media\Tex\6b3bd74ad7213701.tex

Traceback (most recent call last): File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\manimlib\extract_scene.py", line 155, in main scene = SceneClass(**scene_kwargs) File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\manimlib\scene\scene.py", line 75, in init self.construct() File "C:\Users\username\Downloads\test.py", line 5, in construct t = TextMobject("Hello manim!") File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\manimlib\mobject\svg\tex_mobject.py", line 150, in init self.break_up_by_substrings() File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\manimlib\mobject\svg\tex_mobject.py", line 190, in break_up_by_substrings sub_tex_mob.move_to(self.submobjects[last_submob_index], RIGHT) IndexError: list index out of range

Environment

OS System: manim version: master python version:

jyrg02 avatar Feb 14 '22 19:02 jyrg02

manim version: master ? I don't think so. I noticed that you use from manimlib.imports import * to import and used TextMobject, so I guess you are using the cairo-backend branch version of manim. But this issue may cause by your LaTeX, maybe try reinstall it?

TonyCrane avatar Feb 15 '22 02:02 TonyCrane