狮身人面像0.6.3:这些语言模块不能被发现
-
22-09-2019 - |
题
,收到以下的错误消息时,我尝试使用斯芬克斯-快速启动产生MAKE.BAT命令:
将HTML
错误:语言模块不能被发现。你安装狮身人面像和它的依赖是否正确?
我试图运行斯芬克斯-build命令和接收到的同样的错误。
我在Windows Vista上使用Python 2.6.4。我已经安装的setuptools-0.6c11.win32-py2.6,以及使用的easy_install安装斯芬克斯0.6.3。
似乎的初始化强>当它试图进口CMDLINE(I grep'd错误消息的一部分,并且的.py失败的初始化强>的.py是唯一的文件的是,由于错误显示卷起)至多在try
块进口CMDLINE。
try:
from sphinx import cmdline
except ImportError, err:
errstr = str(err)
if errstr.lower().startswith('no module named'):
whichmod = errstr[16:]
hint = ''
if whichmod.startswith('docutils'):
whichmod = 'Docutils library'
elif whichmod.startswith('jinja'):
whichmod = 'Jinja library'
elif whichmod == 'roman':
whichmod = 'roman module (which is distributed with Docutils)'
hint = ('This can happen if you upgraded docutils using\n'
'easy_install without uninstalling the old version'
'first.')
else:
whichmod += ' module'
print >>sys.stderr, ('Error: The %s cannot be found. '
'Did you install Sphinx and its dependencies '
'correctly?' % whichmod)
if hint:
print >> sys.stderr, hint
return 1
raise
我不明白这里的“语言”将作为参数获得通过,所以我在错误信息混淆。我已经寻找一个解决方案,但都打开了什么。
解决方案
通过斯芬克斯包“语言” Grepping,唯一相关的进口是:
/usr/lib/pymodules/python2.5/sphinx/environment.py:from docutils.parsers.rst.languages import en as english
所以,最有可能有一些错误的docutils的安装。诚然,如果报道的完整包路径错误消息将是更有帮助。
不隶属于 StackOverflow