PermissionError: [WinError 32] filename: 'media\\Tex\\name.dvi'
Description of bug / unexpected behavior
Sometimes I get the following error messages when I run the manim file with latex code,
PermissionError: [WinError 32] filename: 'media\\Tex\\name.dvi'
[456] Execution returned code=1 in 10.767 seconds returned signal null
Expected behavior
I think there is no problem with the synax of the code, since I can run the same file successfully at some times.
How to reproduce the issue
`from manim import *
class TransformEquation(Scene): def construct(self): eq = Tex(r"That is $\int_0^1 x^2,dx = \frac{1}{3}$") self.add(eq) self.wait()`
System specifications
- OS Windows 11:
- Python version python3
- LaTeX distribution TeX Live 2021
The problem generally occurs when the file is run again after it has been modified.
Hi, this issue is lacking crucial information about the bug.
- Full stack trace (Every text in console) is needed to analyze the root location of the error. Stack trace is very important in this kind of elusive bugs that only appear in some times.
Only last line
PermissionError: [WinError 32] filename:is not enough information. - Code snippet is not inside of code block, so LaTex is formatted and code example is in unusable shape.
WinError32 = "The process cannot access the file because it is being used by another process."
Sometimes this is caused by the files being stored on a network drive, sometimes its an antivirus program that is responsible. Either way, nothing really we can do about it.