question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Manim is recieving Tex Error.

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chaoxiaosucommented, Aug 18, 2019

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.

0reactions
pedroslreycommented, Dec 16, 2019

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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does Manim meet problems with latex - Stack Overflow
'latex' is not recognized as an internal or external command, operable program or batch file. ERROR:root: LaTeX Error!
Read more >
Sorry, but latex did not succeed. : r/manim - Reddit
LaTeX Error: File `standalone.cls' not found. Type X to quit or <RETURN> to proceed,. or enter new name. (Default extension: cls).
Read more >
Simple animated introduction of List using Python library manim
I now have 2 dataframes. the first contains my primary data which includes a cluster, a currency and a quantity (and other columns)....
Read more >
How to setup Pyglet to work with Manim in Colab?
I installed and imported everything without errors: from manimlib.imports import *. but get an exception when run: !python3 -m manim example_scenes.py ...
Read more >
pymunk Documentation - Read the Docs
installation failure when pip tries to install CFFI since CFFI is a ... Example using the basic text only DebugDraw implementation (normally ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found