Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Windows 2016 #32

Open
ftesser opened this issue Jan 29, 2020 · 0 comments · May be fixed by #33
Open

Error on Windows 2016 #32

ftesser opened this issue Jan 29, 2020 · 0 comments · May be fixed by #33

Comments

@ftesser
Copy link

ftesser commented Jan 29, 2020

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:

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
@ftesser ftesser linked a pull request Jan 29, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant