Exception: Latex error converting to dvi. See log output above...
See original GitHub issueLet me start by saying that I’ve read through all of the other issues on here with the same error message, and have tried each of the fixes, but to no avail.
I was running example scene #1, and:
Traceback (most recent call last):
File "C:\Users\kaneo\Desktop\manim\manim\manimlib\extract_scene.py", line 155, in main
scene = SceneClass(**scene_kwargs)
File "C:\Users\kaneo\Desktop\manim\manim\manimlib\scene\scene.py", line 52, in __init__
self.construct()
File "example_scenes.py", line 18, in construct
title = TextMobject("This is some \\LaTeX")
File "C:\Users\kaneo\Desktop\manim\manim\manimlib\mobject\svg\tex_mobject.py", line 145, in __init__
self, self.arg_separator.join(tex_strings), **kwargs
File "C:\Users\kaneo\Desktop\manim\manim\manimlib\mobject\svg\tex_mobject.py", line 45, in __init__
self.template_tex_file_body
File "C:\Users\kaneo\Desktop\manim\manim\manimlib\utils\tex_file_writing.py", line 19, in tex_to_svg_file
dvi_file = tex_to_dvi(tex_file)
File "C:\Users\kaneo\Desktop\manim\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: C:\Users\kaneo\Desktop\manim\manim\manimlib\files\Tex\cc8b128e228b77ce.log
The ‘log file’ contains:
`\documentclass[preview]{standalone}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{dsfont}
\usepackage{setspace}
\usepackage{tipa}
\usepackage{relsize}
\usepackage{textcomp}
\usepackage{mathrsfs}
\usepackage{calligra}
\usepackage{wasysym}
\usepackage{ragged2e}
\usepackage{physics}
\usepackage{xcolor}
\usepackage{textcomp}
\usepackage{microtype}
\DisableLigatures{encoding = *, family = * }
%\usepackage[UTF8]{ctex}
\linespread{1}
\begin{document}
\centering This is some \LaTeX
\end{document}`
I’m on windows 10. This same error happens when I make my own custom scripts, but I am able to run example scenes 2 and 4.
Issue Analytics
- State:
- Created 4 years ago
- Comments:31 (7 by maintainers)
Top Results From Across the Web
Issues with Manim. 'error converting to dvi.' - Stack Overflow
As I said, I have no such .log file, and the corresponding .tex file seems to make no mention of any missing packages....
Read more >Latex error converting to dvi : r/manim - Reddit
Sorry if this has been asked before but Im currently facing an issue with latex. Exception: Latex error converting to dvi. See log...
Read more >Source code for manim.utils.tex_file_writing - Docs
"""Interface for writing, compiling, and converting ``.tex`` files. ... See log output above or" f" the log file: {log_file}", ) return result.
Read more >manim - Bountysource
Exception : Latex error converting to dvi. ... in tex_to_dvi "See log output above or the log file: %s" % log_file) Exception: Latex...
Read more >manim上显示中文的问题求解答
Exception : Xelatex error converting to xdv. See log output above or the log file: media/Tex/de13cf5ef7f6d002.log ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I met the same problem. I’m using Windows 10, and found it caused by TeX engines. In Windows, path seqerator is
\
but TeX recognized it as a escape character. eg../media\Tex\fjkaljfa.tex
will be./mediaexjkaljfa.tex
, the\T
,\f
have been wiped.So replace
\
to/
before calling a TeX executable will solve this problem.Did someone PR it?
I’m facing the exact same issue; when I try to run
python -m manim example_scenes.py WriteStuff -pl
, I get “See log output above…” with “Latex error converting to dvi.” However, there is no log file./media\Tex\e6984177d9d09224.log
as indicated, only a .tex file of the same name. I have Tex Live installed and all the appropriate packages (I know this because I successfully managed to compile the .tex file independently). What’s going on?