Manim is recieving Tex Error.
See original GitHub issueI am trying to use manim in my linux computer, but I always recive the same error.
Traceback (most recent call last): File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/pedro/manim/manim.py", line 5, in <module> manimlib.main() File "/home/pedro/manim/manimlib/__init__.py", line 11, in main config = manimlib.config.get_configuration(args) File "/home/pedro/manim/manimlib/config.py", line 185, in get_configuration module = get_module(args.file) File "/home/pedro/manim/manimlib/config.py", line 180, in get_module spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "active_projects/inducao.py", line 3, in <module> class Inducao(Scene): File "active_projects/inducao.py", line 6, in Inducao text = TextMobject("Indução Matemática") File "/home/pedro/manim/manimlib/mobject/svg/tex_mobject.py", line 144, in __init__ self, self.arg_separator.join(tex_strings), **kwargs File "/home/pedro/manim/manimlib/mobject/svg/tex_mobject.py", line 44, in __init__ self.template_tex_file_body File "/home/pedro/manim/manimlib/utils/tex_file_writing.py", line 19, in tex_to_svg_file dvi_file = tex_to_dvi(tex_file) File "/home/pedro/manim/manimlib/utils/tex_file_writing.py", line 67, 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: 0befe074291b4316.log
And there’s another problem, there is no log file but there is a .tex file in the principal directory. My code seem to be write:
`
from manimlib.imports import *
class Inducao(Scene):
#TITLE
text = TextMobject("Indução Matemática")
subtitle = TextMobject("Parte 2")
subtitle.next_to(text, DOWN)
self.play(Write(text))
self.play(FadeIn(subtitle))
self.wait(3)
self.play(FadeOut(text), FadeOut(subtitle))
`
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
I faced the same problem on my Win 10 and found a workaround. I changed the L29 of manimlib/constants.py to
MEDIA_DIR = os.path.join(os.getcwd(), "media")
, then I passed.You can see here for details.
I found out what was the error: a part of the LaTeX enviorment wasn’t installed, and also I forgot to add “def construct” thanks for all the help!