【发布时间】:2016-03-21 23:24:05
【问题描述】:
我想使用 readthedocs.org 为我的项目生成文档(包括使用 autodoc 自动生成的文档)。但是,我的项目使用 Python 3.5 语法(async 和 await),看起来它无法处理。构建成功,虽然我得到了很多这样的错误:
/home/docs/checkouts/readthedocs.org/user_builds/sparrow/checkouts/latest/docs/source/entity.rst:176: WARNING: autodoc: failed to import module 'sparrow.entity'; the following exception was raised:
Traceback (most recent call last):
File "/home/docs/checkouts/readthedocs.org/user_builds/sparrow/envs/latest/local/lib/python3.4/site-packages/sphinx/ext/autodoc.py", line 385, in import_object
__import__(self.modname)
File "/home/docs/checkouts/readthedocs.org/user_builds/sparrow/checkouts/latest/sparrow/__init__.py", line 26, in <module>
from .model import *
File "/home/docs/checkouts/readthedocs.org/user_builds/sparrow/checkouts/latest/sparrow/model.py", line 37
async def install(self):
有没有办法解决这个问题?
【问题讨论】:
-
您可能想向
readthedocs.org寻求帮助。 -
@DietrichEpp:docs.readthedocs.org/en/latest/support.html:“如果您对如何使用 Read the Docs 有疑问,或者遇到与错误无关的问题,Stack Overflow 是最好的提问场所。 " :)
-
那么您是说 Stack Overflow 是错误的地方吗? github.com/rtfd/readthedocs.org/issues/1990
标签: python python-3.x python-sphinx autodoc read-the-docs