首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >IPython to转换错误(ipynb到pdf)

IPython to转换错误(ipynb到pdf)
EN

Stack Overflow用户
提问于 2014-10-19 17:39:22
回答 1查看 824关注 0票数 1

它似乎缺少一些东西,但它没有提供任何进一步的信息。有人能给点提示吗?

命令是

输出消息如下所示。非常感谢。

代码语言:javascript
复制
[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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-10-19 18:02:27

假设错误在pdflatex (即tex->pdf阶段)失败,那么您是否安装了pdflatex或不同的胶乳编译器?看起来.tex文件是成功生成的,而不是.pdf文件。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26453418

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档