python - AttributeError:“值”对象在运行 sphinx-build 时没有属性“tab_width”
问题描述
运行时:
sphinx-build -M html . _build
我收到以下错误:
Running Sphinx v3.0.3
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 9 source files that are out of date
updating environment: [new config] 9 added, 0 changed, 0 removed
/home/vinzee/.pyenv/versions/3.6.14/envs/venv/lib/python3.6/site-packages/recommonmark/parser.py:75: UserWarning: Container node skipped: type=document
warn("Container node skipped: type={0}".format(mdnode.t))
reading sources... [ 66%] api
Exception occurred:
File "/home/vinzee/.pyenv/versions/3.6.14/envs/venv/lib/python3.6/site-packages/sphinx/ext/autodoc/__init__.py", line 440, in get_doc
tab_width = self.directive.state.document.settings.tab_width
AttributeError: 'Values' object has no attribute 'tab_width'
The full traceback has been saved in /tmp/sphinx-err-tm3jn6xm.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!
我的版本:
Python: 3.6.14
sphinx-build: 3.0.3
我该如何解决这个错误?
解决方案
推荐阅读
- java - Java Https POST 因连接超时而失败,但可与 Postman 一起使用。谁能帮我吗?
- python - 读取 csv 文件,解析数据,并存储在字典中
- c# - IAsyncEnumerable 不适用于面向 .Net 4.8 的 Visual Studio 项目
- jquery - jquery:当div达到一定高度时更改背景颜色
- sql - 在 MySQL 中加入 3 个表后如何计算 z 分数
- go - http.Client POST 在发送正文之前读取响应
- javascript - 如何在javascript中按字母顺序对字符串(名称)列表进行排序
- javascript - D3 图表:未捕获的类型错误:无法读取未定义的属性“序数”
- xml - 编辑时间值并在 XSLT 中添加工作日
- python - 将表达式分隔为字符串