2012-07-25 3 views
2

에서 "Grammar.txt"를 찾을 수 없습니다, 다음과 같은 에러가 나는 스핑크스를 열 때파이썬 - 스핑크스

IOError: [Errno 2] No such file or directory: 
'c:\\python27\\sphinx.egg\\sphinx\\pycode\\Grammar.txt' 

을. 계란, 파일 "Grammar.txt는"

다음은은

# Sphinx version: 1.1.3 
# Python version: 2.7.3 
# Docutils version: 0.9.1 release 
# Jinja2 version: 2.6 Traceback (most recent call last): 
File "c:\python27\sphinx.egg\sphinx\cmdline.py", line 188, in main 
    warningiserror, tags) 
File "c:\python27\sphinx.egg\sphinx\application.py", line 114, in __init__ 
    self.setup_extension(extension) 
File "c:\python27\sphinx.egg\sphinx\application.py", line 247, in 
setup_extension 
    mod = __import__(extension, None, None, ['setup']) 
File "c:\python27\sphinx.egg\sphinx\ext\autodoc.py", line 26, in <module> 
File "c:\python27\sphinx.egg\sphinx\pycode\__init__.py", line 25, in <module> 
File "c:\python27\sphinx.egg\sphinx\pycode\pgen2\driver.py", line 126, in load_grammar 
    g = pgen.generate_grammar(gt) 
File "c:\python27\sphinx.egg\sphinx\pycode\pgen2\pgen.py", line 383, in generate_grammar 
    p = ParserGenerator(filename) 
File "c:\python27\sphinx.egg\sphinx\pycode\pgen2\pgen.py", line 15, in __init__ 
    stream = open(filename) IOError: [Errno 2] No such file or directory: 'c:\\python27\\sphinx.egg\\sphinx\\pycode\\Grammar.txt' 

누구나 단서 왜이 제공하는 로그인있어 ... 존재?

답변

2

"Grammar.txt"파일을 찾지 못한 이유를 알게되었습니다. 처음에는 sphinx-quickstart.exe를 내 원본 폴더 안에 옮겼습니다. 대신, (또한 적절한 방법이해야 할) 그냥 질문에 다음 기본 폴더에서 스핑크스 - quickstart.exe를 시작하고하는 것이 좋습니다 :

> Enter the root path for documentation.

> Root path for the documentation [.]: "PathToYourSourceFolder"

당신은이 질문에 소스 폴더 경로를 입력합니다.

희망이 있으면 도움이됩니다.