3
我已经在我的virtualenv中,并且我确信一切都在python路径上。Sphinx-api无法导入Django项目的模块
(myenv)[email protected]:/var/lib/mydirectory/doc$ sphinx-apidoc -o . ../testproject/
Creating file ./testproject.rst.
Creating file ./testproject.apps.rst.
# ... and many more .... #
Creating file ./modules.rst.
(myenv)[email protected]:/var/lib/mydirectory/doc$ make html
sphinx-build -b html -d _build/doctrees . _build/html
Making output directory...
Running Sphinx v1.1.2
loading pickled environment... not yet created
building [html]: targets for 17 source files that are out of date
updating environment: 17 added, 0 changed, 0 removed
Traceback (most recent call last):t
File "/var/lib/server/myenv/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
__import__(self.modname)
ImportError: No module named webclient.__init__
# ... and many more .... #
/var/lib/mydirectory/doc/testproject.rst:7: WARNING: autodoc can't import/find module 'testproject.__init__', it reported error: "No module named testproject.__init__", please check your spelling and sys.path
# ... and many more .... #
当我打开html文件时,我只看到标题和章节标题。没有autodocs。
是什么导致了这个问题?我已经在我的虚拟环境中...
任何想法?我正在使用狮身人面像1.1.2。
谢谢。
谢谢。你是对的。固定。 – user1012451 2012-01-16 03:45:02