错误内容:
ValueError: Your installation does not support converting .dvi files to SVG. Consider updating dvisvgm to atleast version 2.4.
但我的dvisvgm版本已经为3.3,ffmpeg也已经安装。
完整信息如下:
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ C:\Users\Remilia │
│ Scarlet\AppData\Local\Programs\Python\Python312\Lib\site-packages\manim\cli\render\commands.py:1 │
│ 20 in render │
│ │
│ 117 │ │ │ try: │
│ 118 │ │ │ │ with tempconfig({}): │
│ 119 │ │ │ │ │ scene = SceneClass() │
│ ❱ 120 │ │ │ │ │ scene.render() │
│ 121 │ │ │ except Exception: │
│ 122 │ │ │ │ error_console.print_exception() │
│ 123 │ │ │ │ sys.exit(1) │
│ │
│ C:\Users\Remilia │
│ Scarlet\AppData\Local\Programs\Python\Python312\Lib\site-packages\manim\scene\scene.py:229 in │
│ render │
│ │
│ 226 │ │ """ │
│ 227 │ │ self.setup() │
│ 228 │ │ try: │
│ ❱ 229 │ │ │ self.construct() │
│ 230 │ │ except EndSceneEarlyException: │
│ 231 │ │ │ pass │
│ 232 │ │ except RerunSceneException as e: │
│ │
│ C:\Users\Remilia Scarlet\Desktop\Manim动画\自制\hellp.py:8 in construct │
│ │
│ 5 │ │ dot2 = Dot([2, 1, 0]) │
│ 6 │ │ line = Line(dot.get_center(), dot2.get_center()).set_color(ORANGE) │
│ 7 │ │ b1 = Brace(line) │
│ ❱ 8 │ │ b1text = b1.get_text("Horizontal distance") │
│ 9 │ │ b2 = Brace(line, direction=line.copy().rotate(PI / 2).get_unit_vector()) │
│ 10 │ │ b2text = b2.get_tex("x-x_1") │
│ 11 │ │ self.add(line, dot, dot2, b1, b2, b1text, b2text) │
│ │
│ C:\Users\Remilia │
│ Scarlet\AppData\Local\Programs\Python\Python312\Lib\site-packages\manim\mobject\svg\brace.py:139 │
│ in get_text │
│ │
│ 136 │ │ return self │
│ 137 │ │
│ 138 │ def get_text(self, *text, **kwargs): │
│ ❱ 139 │ │ text_mob = Tex(*text) │
│ 140 │ │ self.put_at_tip(text_mob, **kwargs) │
│ 141 │ │ return text_mob │
│ 142 │
│ │
│ C:\Users\Remilia │
│ Scarlet\AppData\Local\Programs\Python\Python312\Lib\site-packages\manim\mobject\text\tex_mobject │
│ .py:443 in __init__ │
│ │
│ 440 │ def __init__( │
│ 441 │ │ self, *tex_strings, arg_separator="", tex_environment="center", **kwargs │
│ 442 │ ): │
│ ❱ 443 │ │ super().__init__( │
│ 444 │ │ │ *tex_strings, │
│ 445 │ │ │ arg_separator=arg_separator, │
│ 446 │ │ │ tex_environment=tex_environment, │
│ │
│ C:\Users\Remilia │
│ Scarlet\AppData\Local\Programs\Python\Python312\Lib\site-packages\manim\mobject\text\tex_mobject │
│ .py:293 in __init__ │
│ │
│ 290 │ │ │ │ │ │ """, │
│ 291 │ │ │ │ │ ), │
│ 292 │ │ │ │ ) │
│ ❱ 293 │ │ │ raise compilation_error │
│ 294 │ │ self.set_color_by_tex_to_color_map(self.tex_to_color_map) │
│ 295 │ │ │
│ 296 │ │ if self.organize_left_to_right: │
│ │
│ C:\Users\Remilia │
│ Scarlet\AppData\Local\Programs\Python\Python312\Lib\site-packages\manim\mobject\text\tex_mobject │
│ .py:272 in __init__ │
│ │
│ 269 │ │ self.brace_notation_split_occurred = False │
│ 270 │ │ self.tex_strings = self._break_up_tex_strings(tex_strings) │
│ 271 │ │ try: │
│ ❱ 272 │ │ │ super().__init__( │
│ 273 │ │ │ │ self.arg_separator.join(self.tex_strings), │
│ 274 │ │ │ │ tex_environment=self.tex_environment, │
│ 275 │ │ │ │ tex_template=self.tex_template, │
│ │
│ C:\Users\Remilia │
│ Scarlet\AppData\Local\Programs\Python\Python312\Lib\site-packages\manim\mobject\text\tex_mobject │
│ .py:81 in __init__ │
│ │
│ 78 │ │ │
│ 79 │ │ assert isinstance(tex_string, str) │
│ 80 │ │ self.tex_string = tex_string │
│ ❱ 81 │ │ file_name = tex_to_svg_file( │
│ 82 │ │ │ self._get_modified_expression(tex_string), │
│ 83 │ │ │ environment=self.tex_environment, │
│ 84 │ │ │ tex_template=self.tex_template, │
│ │
│ C:\Users\Remilia │
│ Scarlet\AppData\Local\Programs\Python\Python312\Lib\site-packages\manim\utils\tex_file_writing.p │
│ y:68 in tex_to_svg_file │
│ │
│ 65 │ │ tex_template.tex_compiler, │
│ 66 │ │ tex_template.output_format, │
│ 67 │ ) │
│ ❱ 68 │ svg_file = convert_to_svg(dvi_file, tex_template.output_format) │
│ 69 │ if not config["no_latex_cleanup"]: │
│ 70 │ │ delete_nonsvg_files() │
│ 71 │ return svg_file │
│ │
│ C:\Users\Remilia │
│ y:255 in convert_to_svg │
│ │
│ 252 │ │
│ 253 │ # if the file does not exist now, this means conversion failed │
│ 254 │ if not result.exists(): │
│ ❱ 255 │ │ raise ValueError( │
│ 256 │ │ │ f"Your installation does not support converting {dvi_file.suffix} files to S │
│ 257 │ │ │ f" Consider updating dvisvgm to at least version 2.4." │
│ 258 │ │ │ f" If this does not solve the problem, please refer to our troubleshooting g │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ValueError: Your installation does not support converting .dvi files to SVG. Consider updating dvisvgm to atleast version 2.4. If this does not solve the problem, please refer to our troubleshooting guide at:
https://docs.manim.community/en/stable/faq/general.html#my-installation-does-not-support-converting-pdf-to-svg-help