我正在使用用 Java 编写的库处理几个 Jython 项目。感谢 autodoc 扩展,我想用 Sphinx 创建一些好的文档。但是,当我尝试创建 html 时,出现错误,因为 autodoc 找不到用 Java 编写的库:
sphinx-build -b html -d _build/doctrees . _build/html
Running Sphinx v1.0.5
loading pickled environment... done
building [html]: targets for 1 source files that are out of date
updating environment: 0 added, 1 changed, 0 removed
reading sources... [100%] index
/Users/myName/myJythonProject/doc/index.rst:14: (WARNING/2)
autodoc can't import/find module 'myJythonProject', it reported error:
"global name 'PoolManager' is not defined",
please check your spelling and sys.path
其中 PoolManager 是一个 Java 类。
谁能帮我解决这个问题?