python - Travis 无法将 ipython notebook 转换为 html
问题描述
我在使用 Travis 从 ipython 笔记本生成 HTML 时遇到问题。Autodoc 失败并出现以下错误。
building [html]: targets for 36 source files that are out of date
updating environment: [new config] 36 added, 0 changed, 0 removed
reading sources... [ 2%] ACC_Analysis
Notebook error:
PandocMissing in ACC_Analysis.ipynb:
Pandoc wasn't found.
Please check that pandoc is installed:
https://pandoc.org/installing.html
Makefile:20: recipe for target 'html' failed
make: *** [html] Error 2
The command "make html" exited with 2.
0.00s$ touch build/html/.nojekyll
The command "touch build/html/.nojekyll" exited with 0.
这是构建日志:https ://travis-ci.com/github/jmscslgroup/strym/builds/183858071
奇怪的是,当我 tun 时,autodoc 在我的本地机器上不会失败make html
。
我无法弄清楚我需要告诉 Travis 安装什么依赖项。如果有人有这种问题的经验,请帮助我。谢谢。
解决方案
我想通了。我需要将以下行添加到 .travis.yml 文件中:
before_install:
- sudo apt-get -y install pandoc
推荐阅读
- excel - Excel - 如何获取地址的各个组成部分
- puppeteer - 如何在 puppeteer js 中选择具有多个类名和特定 aria-label 的按钮?
- python - 在 pytest 夹具中捕获异常
- webpack - 如何在带有 HTML Webpack 插件的 webpack 构建中包含多个 favicon?
- python - 调用`async for in`后如何获得异步生成器的下一次迭代
- javascript - Sequelize如何添加自定义排序功能?
- wpf - 根据屏幕上的窗口位置交换垂直滚动条边
- gatsby - Netlify:未能索引到 Algolia
- python - 我想从选项中的文本键中获取数据我被困了一个小时有人可以帮助我吗
- dafny - 如何证明将集合转换为序列并返回是dafny中的一个身份