2014-10-19 104 views
0

它似乎缺少,但它不提供任何进一步的信息。任何人都可以提供一个提示吗?IPython nbconvert错误(ipynb到pdf)

该命令IPython的nbconvert --to乳胶--post PDF Week_Report_2014-10-19.ipynb”

输出信息如下。谢谢你这么多。

[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 [email protected] 
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 

回答

0

鉴于错误在pdflatex即tex-> PDF格式阶段失败,你有pdflatex或安装了不同的乳胶编译器?它看起来像已成功生成.tex文件,但不是.pdf

+0

我'pdflatex'在'/ usr/texbin /'中,它可以工作。但不知何故'nbconvert'找不到它。 – user3197501 2014-10-20 00:34:38

+0

@ user3197501您需要将'/ usr/texbin'添加到您的路径 – pyCthon 2014-10-20 00:37:41