[英]IPython nbconvert error (ipynb to pdf)
It seems something missing, but it doesn't provide any further information. 似乎缺少了一些东西,但是它没有提供任何进一步的信息。 Could anyone give a hint?
谁能给个提示吗?
The command is ipython nbconvert --to latex --post pdf Week_Report_2014-10-19.ipynb" 命令是ipython nbconvert --to Latex --post pdf Week_Report_2014-10-19.ipynb“
The output messages as below. 输出消息如下。 Thank you so much.
非常感谢。
[NbConvertApp] Using existing profile dir: u'/Users/elsdrm/.ipython/profile_default'
[NbConvertApp] Converting notebook Week_Report_2014-10-19.ipynb to latex
[NbConvertApp] Support files will be in Week_Report_2014-10-19_files/
[NbConvertApp] Loaded template article.tplx
[NbConvertApp] Writing 13726 bytes to Week_Report_2014-10-19.tex
[NbConvertApp] Building PDF
[NbConvertApp] Running pdflatex 3 times: [u'pdflatex', u'Week_Report_2014-10-19.tex']
Traceback (most recent call last):
File "/usr/local/bin/ipython", line 11, in <module>
sys.exit(start_ipython())
File "/Library/Python/2.7/site-packages/IPython/__init__.py", line 120, in start_ipython
return launch_new_instance(argv=argv, **kwargs)
File "/Library/Python/2.7/site-packages/IPython/config/application.py", line 564, in launch_instance
app.start()
File "/Library/Python/2.7/site-packages/IPython/terminal/ipapp.py", line 367, in start
return self.subapp.start()
File "/Library/Python/2.7/site-packages/IPython/nbconvert/nbconvertapp.py", line 268, in start
self.convert_notebooks()
File "/Library/Python/2.7/site-packages/IPython/nbconvert/nbconvertapp.py", line 311, in convert_notebooks
self.postprocessor(write_resultes)
File "/Library/Python/2.7/site-packages/IPython/nbconvert/postprocessors/base.py", line 28, in __call__
self.postprocess(input)
File "/Library/Python/2.7/site-packages/IPython/nbconvert/postprocessors/pdf.py", line 140, in postprocess
cont = self.run_latex(filename)
File "/Library/Python/2.7/site-packages/IPython/nbconvert/postprocessors/pdf.py", line 104, in run_latex
self.latex_count, log_error)
File "/Library/Python/2.7/site-packages/IPython/nbconvert/postprocessors/pdf.py", line 84, in run_command
p = subprocess.Popen(command, stdout=stdout, stdin=null)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
If you suspect this is an IPython bug, please report it at:
https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@scipy.org
You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.
Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
c.Application.verbose_crash=True
Given that the error fails at the pdflatex
ie the tex->pdf stage, do you have pdflatex
or a different latex compiler installed? 鉴于错误在
pdflatex
即tex-> pdf阶段)失败,您是否已安装pdflatex
或其他乳胶编译器? It looks like the .tex
file was generated successfully but not the .pdf
看起来
.tex
文件已成功生成,但.pdf
没有成功生成
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.