我希望使用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
寻求帮助。 - Dietrich Epp