【发布时间】:2021-08-03 20:40:19
【问题描述】:
详情
我的阅读文档构建失败,我不明白。 nbsphinx.py 第 2151 行中“逐字”的断言导致构建失败。因此,当我尝试包含我创建的 Jupyter Notebook 教程时,构建会失败。我将教程的当前版本与未导致构建失败的先前版本进行了比较,但我找不到可能导致当前失败的差异。
- 阅读文档项目网址:lofti_gaia
- 构建 URL:https://github.com/logan-pearce/lofti_gaia
- 阅读文档用户名:logan-pearce
预期结果
包含 *.ipynb 文件的传递构建
实际结果
由于 'Verbatim' 的断言失败,构建在 nbsphinx.py 的第 2151 行失败。
终端输出:
Running Sphinx v4.1.2
loading translations [en]... done
making output directory... done
WARNING: html_static_path entry '_static' does not exist
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [latex]: all documents
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
processing lofti_gaia.tex... index installation tutorials/QuickStart tutorials/Tutorial api lofti loftitools
resolving references...
done
writing... failed
Exception occurred:
File "/home/docs/checkouts/readthedocs.org/user_builds/lofti-gaia/conda/latest/lib/python3.7/site-packages/nbsphinx.py", line 2151, in depart_codearea_latex
assert 'Verbatim' in lines[0]
AssertionError
The full traceback has been saved in /tmp/sphinx-err-x1h83s3m.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
【问题讨论】:
-
请不要粘贴文字图片。而是粘贴实际的错误消息。
标签: jupyter-notebook jupyter python-sphinx read-the-docs