manim: problems with tex_to_dvi in tex_mobject.py
Hi all,
run extract_scene.py -p curves.py in python jupyter notebook. I got always following error which I don’t manage to solve.
Traceback (most recent call last): File "C:\Users\Koen\manim\extract_scene.py", line 200, in main handle_scene(SceneClass(**scene_kwargs), **config) File "C:\Users\Koen\manim\scene\scene.py", line 48, in __init__ self.construct(*self.construct_args) File ".\curves.py", line 126, in construct anim = SlideWordDownCycloid("Brachistochrone") File ".\curves.py", line 67, in __init__ word_mob = TextMobject(list(word)) File "C:\Users\Koen\manim\mobject\tex_mobject.py", line 54, in __init__ self.template_tex_file File "C:\Users\Koen\manim\mobject\tex_mobject.py", line 255, in tex_to_svg_file dvi_file = tex_to_dvi(tex_file) File "C:\Users\Koen\manim\mobject\tex_mobject.py", line 297, in tex_to_dvi "See log output above or the log file: %s" % log_file) Exception: Latex error converting to dvi. See log output above or the log file: C:\Users\Koen\manim\files\Tex\-91855429.log
Does anyone know how to deal with this error?
many thanks from a bit frustrated person
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (2 by maintainers)
Commits related to this issue
- Fix latex command https://github.com/3b1b/manim/issues/36 — committed to samg7b5/Manim-TB by samg7b5 3 years ago
I had to change the commands = […] in mobject/tex_mobject.py
Two cents - ran into this today, I recommend looking at the log file as this indicates an error or missing font/package in LaTeX, not a problem with
manim
. Look for an error like this in the log file:In my case I had two missing tex packages to install: physics and doublestroke. I followed the install instructions here.
@nickredsox still not working for me
I did as the beginning and it didn’t work. this is my first error:
C:\Manim\manim-master>python -m manim Example_Scenes.py WriteStuff -pl Media will be written to ./media. You can change this behavior with the --media_dir flag. ‘latex’ não é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes.
Traceback (most recent call last): File “C:\Manim\manim-master\manimlib\extract_scene.py”, line 155, in main scene = SceneClass(**scene_kwargs) File “C:\Manim\manim-master\manimlib\scene\scene.py”, line 53, in init self.construct() File “Example_Scenes.py”, line 102, in construct tex_to_color_map={“text”: YELLOW} File “C:\Manim\manim-master\manimlib\mobject\svg\tex_mobject.py”, line 144, in init self, self.arg_separator.join(tex_strings), **kwargs File “C:\Manim\manim-master\manimlib\mobject\svg\tex_mobject.py”, line 44, in init self.template_tex_file_body File “C:\Manim\manim-master\manimlib\utils\tex_file_writing.py”, line 19, in tex_to_svg_file dvi_file = tex_to_dvi(tex_file) File “C:\Manim\manim-master\manimlib\utils\tex_file_writing.py”, line 94, in tex_to_dvi “See log output above or the log file: %s” % log_file) Exception: Latex error converting to dvi. See log output above or the log file: ./media\Tex\34b95eca9f7c5b73.log
/* The first lines says that “latex” is not recognized by the system. i tryed to substitute the code from tex_file_writing by the one in the begining of this issue and did not work. I couldn’t find any solution.*/
Thanks for your response. I’ve already fixed this by installing the recent version of miktex and then by trying to compile it with my Tex editor (Texniccenter in my case). Miktex automatically suggest the installation of any missed packages once we compile the file in Texniccenter.