저는 이미 내 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 파일을 열면 헤드 라인과 섹션 제목 만 표시됩니다. 자동 권한이 없습니다.
이 문제의 원인은 무엇입니까? 나는 이미 내 가상 환경에있다. ...
어떤 생각? 나는 Sphinx 1.1.2를 사용하고있다.
감사합니다.
감사합니다. 네가 옳아. 결정된. – user1012451