sphinx-quickstartで生成されたmake.batコマンドを使用しようとすると、次のエラーメッセージが表示されます。
HTMLを作成する
エラー:言語モジュールが見つかりません。Sphinxとその依存関係を正しくインストールしましたか?
sphinx-buildコマンドを実行しようとしましたが、同じエラーが発生しました。
WindowsVistaでPython2.6.4を使用しています。setuptools-0.6c11.win32-py2.6をインストールし、easy_installを使用してSphinx0.6.3をインストールしました。
cmdlineをインポートしようとすると、init .pyが失敗しているようです(エラーメッセージの一部をgrepしましたが、表示されたファイルはinittry
.pyだけでした)。これは、 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
「言語」が引数として渡される場所がわからないため、エラーメッセージで混乱します。私は解決策を探しましたが、何も見つかりませんでした。