kilacoda / chanim

Animation engine for explanatory chemistry videos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LaTeX compiler error

ArghyadeepDev opened this issue · comments

ERROR LaTeX compilation error: Undefined tex_file_writing.py:200
control sequence.

                ERROR    Context for error:                       tex_file_writing.py:225
                                                                                         
                         \begin{align}                                                  
                         \chemfig{6((=O)-N(-CH_3)-5(-N=-N(-CH_3                        
                         )-=)--(=O)-N(-H_3C)-)}                                          
                         \end{align}                                                    

ValueError Traceback (most recent call last)
in
----> 1 get_ipython().run_cell_magic('manim', 'ChanimScene', 'class ChanimScene(Scene):\n def construct(self):\n ## ChemWithName creates a chemical diagram with a name label\n chem = ChemWithName("6((=O)-N(-CH_3)-5(-N=-N(-CH_3)-=)--(=O)-N(-H_3C)-)", "Caffeine")\n\n self.play(chem.creation_anim())\n self.wait()\n')

11 frames
in

in construct(self)

/usr/local/lib/python3.7/dist-packages/manim/utils/tex_file_writing.py in compile_tex(tex_file, tex_compiler, output_format)
233
234 raise ValueError(
--> 235 f"{tex_compiler} error converting to"
236 f" {output_format[1:]}. See log output above or"
237 f" the log file: {log_file}"

ValueError: latex error converting to dvi. See log output above or the log file: media/Tex/4799158acc41e94f.log
I AM HAVING This error in Google Colab while running it , I installed both manim and chanim and also !tlmgr install chemfig but still having the problem please solve this , while running
!tlmgr install chemfig
It's showing
Cannot determine type of tlpdb from /root/textmf!
Cannot set up TLPDB in /root/textmf at /usr/bin/tlmgr line 6424