Skip to content

Error on Windows 2016 #32

Open
Open
@ftesser

Description

@ftesser

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions