You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the same code on LInux, Windows 10 and Windows 2016.
On Windows 2016 the function build_pdf fails, without any log or output, as shown below for this simple example:
PS C:\Users\Administrator> python -c "import latex; latex.build_pdf(r'\documentclass{article}\begin{document}Hello\end{document}')"
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\latex\build.py", line 175, in build_pdf
stdout=open(os.devnull, 'w'), )
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['pdflatex', '-interaction=batchmode', '-halt-on-error', '-no-shell-escape', '-file-line-error', 'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\3\\tmptebd6l1k\\tmptnlokmm8.latex']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 1, in<module>
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\latex\build.py", line 232, in build_pdf
return builder.build_pdf(source, texinputs)
File "<C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\decorator.py:decorator-gen-2>", line 2, in build_pdf
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\data\decorators.py", line 82, in _
return f(*bvals.args, **bvals.kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\latex\build.py", line 177, in build_pdf
raise_from(LatexBuildError(base_fn + '.log'), e)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\future\utils\__init__.py", line 403, in raise_from
exec(execstr, myglobals, mylocals)
File "<string>", line 1, in<module>
latex.exc.LatexBuildError: None
The text was updated successfully, but these errors were encountered:
Hello,
I used the same code on LInux, Windows 10 and Windows 2016.
On Windows 2016 the function build_pdf fails, without any log or output, as shown below for this simple example:
The text was updated successfully, but these errors were encountered: