manimlib.utils.tex_file_writing.LatexError: Emergency stop. <to be read again>
- Vorherrschende Sprache
- Python
- Sterne
- 93.8k
- Forks
- 7.7k
- PR-Merge-Kennzahlen
- PR-Kennzahlen ausstehend
Beschreibung
### Describe the error
When I use `Manim` to run the example, I have met this error
I use the code in `example_scenes.py`, I can run the example in other `example`, but I cannot use Latex
### Code and Error
**Code**:
In `example_scenes.py`
**Error**:
```
D:\manim-master\manim-master>python -m manimlib example_scenes.py
ManimGL v1.6.1
[17:05:01] INFO Using the default configuration file, which you can modify in config.py:362
`d:\manim-master\manim-master\manimlib\default_config.yml`
INFO If you want to create a local configuration file, you can create a file named `custom_config.yml`, or run config.py:363
`manimgl --config`
WARNING You may be using Windows platform and have not specified the path of `temporary_storage`, which may cause config.py:327
OSError. So it is recommended to specify the `temporary_storage` in the config file (.yml)
01: AnimatingMethods
02: ControlsExample
03: CoordinateSystemExample
04: GraphExample
05: InteractiveDevelopment
06: OpeningManimExample
07: SurfaceExample
08: TexAndNumbersExample
09: TexIndexing
10: TexTransformExample
11: TextExample
12: UpdatersExample
That module has multiple scenes, which ones would you like to render?
Scene Name or Number: 10
[17:05:04] WARNING You may be using Windows platform and have not specified the path of `temporary_storage`, which may cause config.py:327
OSError. So it is recommended to specify the `temporary_storage` in the config file (.yml)
Exception ignored on calling ctypes callback function: .f at 0x0000025557F95000>
Traceback (most recent call last):
File "C:\Users\S.X.Y\AppData\Local\Programs\Python\Python310\lib\site-packages\pyglet\window\win32\__init__.py", line 708, in f
result = event_handler(msg, wParam, lParam)
File "C:\Users\S.X.Y\AppData\Local\Programs\Python\Python310\lib\site-packages\pyglet\window\win32\__init__.py", line 945, in _event_mousemove
self.dispatch_event('on_mouse_motion', x, y, dx, dy)
File "C:\Users\S.X.Y\AppData\Local\Programs\Python\Python310\lib\site-packages\pyglet\window\__init__.py", line 668, in dispatch_event
super().dispatch_event(*args)
File "C:\Users\S.X.Y\AppData\Local\Programs\Python\Python310\lib\site-packages\pyglet\event.py", line 380, in dispatch_event
if handler(*args):
File "D:\manim-master\manim-master\manimlib\window.py", line 99, in on_mouse_motion
self.scene.on_mouse_motion(point, d_point)
File "D:\manim-master\manim-master\manimlib\scene\scene.py", line 846, in on_mouse_motion
self.mouse_point.move_to(point)
AttributeError: 'TexTransformExample' object has no attribute 'mouse_point'
WARNING You may be using Windows platform and have not specified the path of `temporary_storage`, which may cause config.py:327
OSError. So it is recommended to specify the `temporary_storage` in the config file (.yml)
[17:05:05] ERROR LaTeX Error! Not a worry, it happens to the best of us. tex_file_writing.py:114
DEBUG The error could be: tex_file_writing.py:122
`Emergency stop.
`
Traceback (most recent call last):
File "C:\Users\S.X.Y\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\S.X.Y\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "D:\manim-master\manim-master\manimlib\__main__.py", line 29, in
main()
File "D:\manim-master\manim-master\manimlib\__main__.py", line 25, in main
scene.run()
File "D:\manim-master\manim-master\manimlib\scene\scene.py", line 160, in run
self.construct()
File "D:\manim-master\manim-master\example_scenes.py", line 167, in construct
Tex("A^2 + B^2 = C^2", **kw),
File "D:\manim-master\manim-master\manimlib\mobject\svg\tex_mobject.py", line 57, in __init__
super().__init__(
File "D:\manim-master\manim-master\manimlib\mobject\svg\string_mobject.py", line 68, in __init__
super().__init__(
File "D:\manim-master\manim-master\manimlib\mobject\svg\svg_mobject.py", line 76, in __init__
self.init_svg_mobject()
File "D:\manim-master\manim-master\manimlib\mobject\svg\svg_mobject.py", line 105, in init_svg_mobject
submobs = self.mobjects_from_file(self.get_file_path())
File "D:\manim-master\manim-master\manimlib\mobject\svg\string_mobject.py", line 78, in get_file_path
return self.get_file_path_by_content(self.get_content(is_labelled))
File "D:\manim-master\manim-master\manimlib\mobject\svg\tex_mobject.py", line 85, in get_file_path_by_content
return tex_content_to_svg_file(
File "D:\manim-master\manim-master\manimlib\utils\tex_file_writing.py", line 83, in tex_content_to_svg_file
create_tex_svg(full_tex, svg_file, compiler)
File "D:\manim-master\manim-master\manimlib\utils\tex_file_writing.py", line 125, in create_tex_svg
raise LatexError(error_str)
manimlib.utils.tex_file_writing.LatexError: Emergency stop.
```
### Environment
**OS System**: Window
**manim version**: master ManimGL 1.6.1
**python version**:Python 3.10.4
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
The error occurs in manimlib/utils/tex_file_writing.py when creating LaTeX SVG files. Start by examining the TexTransformExample scene in example_scenes.py line 167, which uses Tex with a formula. Check the LaTeX compilation process and temporary storage configuration on Windows, as the warning suggests. Run the scene with debugging to see the exact LaTeX command and output.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- latex, python
- Bereich
- cli, documentation
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100