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

Can not save to pdf #39

Open
wang-tf opened this issue Jan 6, 2022 · 0 comments
Open

Can not save to pdf #39

wang-tf opened this issue Jan 6, 2022 · 0 comments
Assignees

Comments

@wang-tf
Copy link

wang-tf commented Jan 6, 2022

temp = tempfile.mktemp()

There is an error if I want to generate a pdf format report.

Command '['latexmk', '--pdf', '--interaction=nonstopmode', '/tmp/tmpuqx_mb9_.tex']' returned non-zero exit status 12.

I think the reason is latexmk can not find some files generated before. So I have to change to like this

    if build:
        # temp = tempfile.mktemp()
        import os
        temp = os.path.join(storage.base, "report")
        logger.debug("Generating to tempourary output %s", temp)
        doc.generate_pdf(temp, clean_tex=True)
        # storage.copy(temp + ".pdf", "report.pdf")
@lukacu lukacu self-assigned this Jan 7, 2022
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

No branches or pull requests

2 participants