Manim Community v0.15.1


[04/01/22 19:12:56] ERROR    LaTeX compilation error: LaTeX Error: File `standalone.cls' not found.                tex_file_writing.py:279


                    ERROR    Context of error:                                                                     tex_file_writing.py:313

                             -> \documentclass[preview]{standalone}


                             \usepackage[english]{babel}

                             \usepackage[utf8]{inputenc}


                    INFO     You do not have package standalone.cls installed.                                     tex_file_writing.py:323

                    INFO     Install standalone.cls it using your LaTeX package manager, or check for typos.       tex_file_writing.py:323

                    ERROR    LaTeX compilation error: Emergency stop.                                              tex_file_writing.py:279


                    ERROR    Context of error:                                                                     tex_file_writing.py:313

                             -> \documentclass[preview]{standalone}


                             \usepackage[english]{babel}

                             \usepackage[utf8]{inputenc}


╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮

│                                                                                                  │

│ C:\tools\Manim\Lib\site-packages\manim\cli\render\commands.py:141 in render                      │

│                                                                                                  │

│   138 │   │   for SceneClass in scene_classes_from_file(file):                                   │

│   139 │   │   │   try:                                                                           │

│   140 │   │   │   │   scene = SceneClass()                                                       │

│ ❱ 141 │   │   │   │   scene.render()                                                             │

│   142 │   │   │   except Exception:                                                              │

│   143 │   │   │   │   error_console.print_exception()                                            │

│   144 │   │   │   │   sys.exit(1)                                                                │

│ C:\tools\Manim\Lib\site-packages\manim\scene\scene.py:222 in render                              │

│                                                                                                  │

│    219 │   │   """                                                                               │

│    220 │   │   self.setup()                                                                      │

│    221 │   │   try:                                                                              │

│ ❱  222 │   │   │   self.construct()                                                              │

│    223 │   │   except EndSceneEarlyException:                                                    │

│    224 │   │   │   pass                                                                          │

│    225 │   │   except RerunSceneException as e:                                                  │

│                                                                                                  │

│ C:\Users\Desktop\Coding\Python\math\taylor.py:6 in construct                               │

│                                                                                                  │

│    3                                                                                             │

│    4 class LogScalingExample(Scene):                                                             │

│    5 │   def construct(self):                                                                    │

│ ❱  6 │   │   ax = Axes(                                                                          │

│    7 │   │   │   x_range=[0, 10, 1],                                                             │

│    8 │   │   │   y_range=[-2, 6, 1],                                                             │

│    9 │   │   │   tips=False,                                                                     │

│                                                                                                  │

│ C:\tools\Manim\Lib\site-packages\manim\mobject\graphing\coordinate_systems.py:1751 in __init__   │

│                                                                                                  │

│   1748 │   │   else:                                                                             │

│   1749 │   │   │   self.y_axis_config["exclude_origin_tick"] = False                             │

│   1750 │   │                                                                                     │

│ ❱ 1751 │   │   self.x_axis = self._create_axis(self.x_range, self.x_axis_config, self.x_length)  │

│   1752 │   │   self.y_axis = self._create_axis(self.y_range, self.y_axis_config, self.y_length)  │

│   1753 │   │                                                                                     │

│   1754 │   │   # Add as a separate group in case various other                                   │

│                                                                                                  │

│ C:\tools\Manim\Lib\site-packages\manim\mobject\graphing\coordinate_systems.py:1824 in            │

│ _create_axis                                                                                     │

│                                                                                                  │

│   1821 │   │   │   Returns a number line based on ``range_terms``.                               │

│   1822 │   │   """                                                                               │

│   1823 │   │   axis_config["length"] = length                                                    │

│ ❱ 1824 │   │   axis = NumberLine(range_terms, **axis_config)                                     │

│   1825 │   │                                                                                     │

│   1826 │   │   # without the call to _origin_shift, graph does not exist when min > 0 or max <   │

│   1827 │   │   # shifts the axis so that 0 is centered                                           │

│                                                                                                  │

│ C:\tools\Manim\Lib\site-packages\manim\mobject\graphing\number_line.py:246 in __init__           │

│                                                                                                  │

│   243 │   │   │   │   )                                                                          │

│   244 │   │   │                                                                                  │

│   245 │   │   │   else:                                                                          │

│ ❱ 246 │   │   │   │   self.add_numbers(                                                          │

│   247 │   │   │   │   │   x_values=self.numbers_to_include,                                      │

│   248 │   │   │   │   │   excluding=self.numbers_to_exclude,                                     │

│   249 │   │   │   │   │   font_size=self.font_size,                                              │

│                                                                                                  │

│ C:\tools\Manim\Lib\site-packages\manim\mobject\graphing\number_line.py:487 in add_numbers        │

│                                                                                                  │

│   484 │   │   │   if x in excluding:                                                             │

│   485 │   │   │   │   continue                                                                   │

│   486 │   │   │   numbers.add(                                                                   │

│ ❱ 487 │   │   │   │   self.get_number_mobject(                                                   │

│   488 │   │   │   │   │   x,                                                                     │

│   489 │   │   │   │   │   font_size=font_size,                                                   │

│   490 │   │   │   │   │   label_constructor=label_constructor,                                   │

│                                                                                                  │

│ C:\tools\Manim\Lib\site-packages\manim\mobject\graphing\number_line.py:425 in get_number_mobject │

│                                                                                                  │

│   422 │   │   if label_constructor is None:                                                      │

│   423 │   │   │   label_constructor = self.label_constructor                                     │

│   424 │   │                                                                                      │

│ ❱ 425 │   │   num_mob = DecimalNumber(                                                           │

│   426 │   │   │   x, font_size=font_size, mob_class=label_constructor, **number_config           │

│   427 │   │   )                                                                                  │

│   428                                                                                            │

│                                                                                                  │

│ C:\tools\Manim\Lib\site-packages\manim\mobject\text\numbers.py:100 in __init__                   │

│                                                                                                  │

│    97 │   │   │   },                                                                             │

│    98 │   │   )                                                                                  │

│    99 │   │                                                                                      │

│ ❱ 100 │   │   self._set_submobjects_from_number(number)                                          │

│   101 │   │   self.init_colors()                                                                 │

│   102 │                                                                                          │

│   103 │   @property                                                                              │

│                                                                                                  │

│ C:\tools\Manim\Lib\site-packages\manim\mobject\text\numbers.py:125 in                            │

│ _set_submobjects_from_number                                                                     │

│                                                                                                  │

│   122 │   │   self.submobjects = []                                                              │

│   123 │   │                                                                                      │

│   124 │   │   num_string = self._get_num_string(number)                                          │

│ ❱ 125 │   │   self.add(*(map(self._string_to_mob, num_string)))                                  │

│   126 │   │                                                                                      │

│   127 │   │   # Add non-numerical bits                                                           │

│   128 │   │   if self.show_ellipsis:                                                             │

│                                                                                                  │

│ C:\tools\Manim\Lib\site-packages\manim\mobject\text\numbers.py:181 in _string_to_mob             │

│                                                                                                  │

│   178 │   │   │   mob_class = self.mob_class                                                     │

│   179 │   │                                                                                      │

│   180 │   │   if string not in string_to_mob_map:                                                │

│ ❱ 181 │   │   │   string_to_mob_map[string] = mob_class(string, **kwargs)                        │

│   182 │   │   mob = string_to_mob_map[string].copy()                                             │

│   183 │   │   mob.font_size = self._font_size                                                    │

│   184 │   │   return mob                                                                         │

│                                                                                                  │

│ C:\tools\Manim\Lib\site-packages\manim\mobject\text\tex_mobject.py:303 in __init__               │

│                                                                                                  │

│   300 │   │   │   │   │   │   """,                                                               │

│   301 │   │   │   │   │   ),                                                                     │

│   302 │   │   │   │   )                                                                          │

│ ❱ 303 │   │   │   raise compilation_error                                                        │

│   304 │   │   self.set_color_by_tex_to_color_map(self.tex_to_color_map)                          │

│   305 │   │                                                                                      │

│   306 │   │   if self.organize_left_to_right:                                                    │

│                                                                                                  │

│ C:\tools\Manim\Lib\site-packages\manim\mobject\text\tex_mobject.py:282 in __init__               │

│                                                                                                  │

│   279 │   │   self.brace_notation_split_occurred = False                                         │

│   280 │   │   self.tex_strings = self._break_up_tex_strings(tex_strings)                         │

│   281 │   │   try:                                                                               │

│ ❱ 282 │   │   │   super().__init__(                                                              │

│   283 │   │   │   │   self.arg_separator.join(self.tex_strings),                                 │

│   284 │   │   │   │   tex_environment=self.tex_environment,                                      │

│   285 │   │   │   │   tex_template=self.tex_template,                                            │

│                                                                                                  │

│ C:\tools\Manim\Lib\site-packages\manim\mobject\text\tex_mobject.py:93 in __init__                │

│                                                                                                  │

│    90 │   │                                                                                      │

│    91 │   │   assert isinstance(tex_string, str)                                                 │

│    92 │   │   self.tex_string = tex_string                                                       │

│ ❱  93 │   │   file_name = tex_to_svg_file(                                                       │

│    94 │   │   │   self._get_modified_expression(tex_string),                                     │

│    95 │   │   │   environment=self.tex_environment,                                              │

│    96 │   │   │   tex_template=self.tex_template,                                                │

│                                                                                                  │

│ C:\tools\Manim\Lib\site-packages\manim\utils\tex_file_writing.py:48 in tex_to_svg_file           │

│                                                                                                  │

│    45 │   if tex_template is None:                                                               │

│    46 │   │   tex_template = config["tex_template"]                                              │

│    47 │   tex_file = generate_tex_file(expression, environment, tex_template)                    │

│ ❱  48 │   dvi_file = compile_tex(                                                                │

│    49 │   │   tex_file,                                                                          │

│    50 │   │   tex_template.tex_compiler,                                                         │

│    51 │   │   tex_template.output_format,                                                        │

│                                                                                                  │

│ C:\tools\Manim\Lib\site-packages\manim\utils\tex_file_writing.py:192 in compile_tex              │

│                                                                                                  │

│   189 │   │   if exit_code != 0:                                                                 │

│   190 │   │   │   log_file = tex_file.replace(".tex", ".log")                                    │

│   191 │   │   │   print_all_tex_errors(log_file, tex_compiler, tex_file)                         │

│ ❱ 192 │   │   │   raise ValueError(                                                              │

│   193 │   │   │   │   f"{tex_compiler} error converting to"                                      │

│   194 │   │   │   │   f" {output_format[1:]}. See log output above or"                           │

│   195 │   │   │   │   f" the log file: {log_file}",                                              │

╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

ValueError: latex error converting to dvi. See log output above or the log file: media/Tex/e580f4cf99037bcd.log


참고로 choco install manim_latex 시도하면 뭔가 불길한 붉은글씨를 마구 토하고 실패해버림.

MikTeX는 가능해서 그거라도 설치했는데 그걸론 부족한건지 저렇게 뜸.