nbconvert export to pdf fails

1,474 views
Skip to first unread message

Michael Gilbert

unread,
Dec 9, 2015, 2:56:31 PM12/9/15
to Project Jupyter
I've been trying to get the "download as --> pdf" feature to work on jupyterhub but I keep running into a 500 internal server error saying "nbconvert failed: PDF creation failed".

I have done the following from the command line outside of jupyterhub:

`ipython nbconvert --to=pdf test.ipynb` 

and it creates the pdf successfully. It's only when I try to do so from the web interface that it runs into issues. Here's what I get back in the log:

/miniconda3/lib/python3.4/site-packages/nbconvert/utils/pandoc.py:49: RuntimeWarning: You are using an old version of pandoc (1.9.4.1)
Recommended version is 1.12.1.
Continuing with doubts...
  check_pandoc_version()
/miniconda3/lib/python3.4/site-packages/nbconvert/utils/pandoc.py:49: RuntimeWarning: You are using an old version of pandoc (1.9.4.1)
Recommended version is 1.12.1.
Continuing with doubts...
  check_pandoc_version()
/miniconda3/lib/python3.4/site-packages/nbconvert/utils/pandoc.py:49: RuntimeWarning: You are using an old version of pandoc (1.9.4.1)
Recommended version is 1.12.1.
Continuing with doubts...
  check_pandoc_version()
/miniconda3/lib/python3.4/site-packages/nbconvert/utils/pandoc.py:49: RuntimeWarning: You are using an old version of pandoc (1.9.4.1)
Recommended version is 1.12.1.
Continuing with doubts...
  check_pandoc_version()
[I 2015-12-09 12:49:18.026 billy files:127] Writing 13607 bytes to notebook.tex
[I 2015-12-09 12:49:18.028 billy pdf:143] Building PDF
[I 2015-12-09 12:49:18.029 billy pdf:77] Running pdflatex 3 times: ['pdflatex', 'notebook.tex']
[C 2015-12-09 12:49:18.112 billy pdf:104] pdflatex failed: ['pdflatex', 'notebook.tex']
    This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
     %&-line parsing enabled.
    ---! /packages/texlive/texmf-var/web2c/pdftex/pdflatex.fmt doesn't match pdftex.pool
    (Fatal format file error; I'm stymied)

[I 2015-12-09 12:49:18.118 billy pdf:77] Running bibtex 1 time: ['bibtex', 'notebook']
[W 2015-12-09 12:49:18.146 billy pdf:115] bibtex had problems, most likely because there were no citations
[D 2015-12-09 12:49:18.149 billy pdf:116] bibtex output: ['bibtex', 'notebook']
    I couldn't open file name `notebook.aux'

[I 2015-12-09 12:49:18.151 billy pdf:77] Running pdflatex 3 times: ['pdflatex', 'notebook.tex']
[C 2015-12-09 12:49:18.225 billy pdf:104] pdflatex failed: ['pdflatex', 'notebook.tex']
    This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
     %&-line parsing enabled.
    ---! /packages/texlive/texmf-var/web2c/pdftex/pdflatex.fmt doesn't match pdftex.pool
    (Fatal format file error; I'm stymied)

Anybody have any ideas?

Thanks,

Mike

MinRK

unread,
Dec 10, 2015, 5:37:36 PM12/10/15
to jup...@googlegroups.com
If it works on the command-line but not in the notebook, this is typically a PATH issue, perhaps finding different pdflatex or pandoc versions. Can you tell if that might be the case?

-MinRK

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/d5c61921-4c89-4d42-811f-f549da4b081a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages