Mercurial & Sphinx

Mac環境で build エラー

«  プレゼンするなら sphinxjp.themes.s6   ::   Contents   ::   Mercurial  »

Mac環境で build エラー

概要

  • blockdiag や s6 を組み込んで build すると、エラーになった

blockdiag でのエラー例:

Exception occurred:
  File "/opt/local/lib/python2.4/site-packages/sphinx/application.py", line 118, in setup_extension
    raise ExtensionError('Could not import extension %s' % extension, err)
ExtensionError: Could not import extension sphinxcontrib.blockdiag (exception: No module named errors)
The full traceback has been saved in /var/folders/26/26pW5waIF+yF+cnQRybjOE+++TI/-Tmp-/sphinx-err-ks86R7.log, if you want to report the issue to the author.
Please also report this if it was a user error, so that a better error message can be provided next time.
Send reports to georg@python.org. Thanks!

/var/folders/26/26pW5waIF+yF+cnQRybjOE+++TI/-Tmp-/sphinx-err-ks86R7.log:

Traceback (most recent call last):
  File "/opt/local/lib/python2.4/site-packages/sphinx/__init__.py", line 114, in main
    confoverrides, status, sys.stderr, freshenv)
  File "/opt/local/lib/python2.4/site-packages/sphinx/application.py", line 81, in __init__
    self.setup_extension(extension)
  File "/opt/local/lib/python2.4/site-packages/sphinx/application.py", line 118, in setup_extension
    raise ExtensionError('Could not import extension %s' % extension, err)
ExtensionError: Could not import extension sphinxcontrib.blockdiag (exception: No module named errors)

s6 でのエラー例:

Exception occurred:
  File "/opt/local/lib/python2.4/site-packages/sphinx/application.py", line 118, in setup_extension
    raise ExtensionError('Could not import extension %s' % extension, err)
ExtensionError: Could not import extension sphinxjp.themecore (exception: No module named sphinxjp.themecore)
The full traceback has been saved in /var/folders/26/26pW5waIF+yF+cnQRybjOE+++TI/-Tmp-/sphinx-err-WHuuQF.log, if you want to report the issue to the author.
Please also report this if it was a user error, so that a better error message can be provided next time.
Send reports to georg@python.org. Thanks!

/var/folders/26/26pW5waIF+yF+cnQRybjOE+++TI/-Tmp-/sphinx-err-WHuuQF.log:

Traceback (most recent call last):
  File "/opt/local/lib/python2.4/site-packages/sphinx/__init__.py", line 114, in main
    confoverrides, status, sys.stderr, freshenv)
  File "/opt/local/lib/python2.4/site-packages/sphinx/application.py", line 81, in __init__
    self.setup_extension(extension)
  File "/opt/local/lib/python2.4/site-packages/sphinx/application.py", line 118, in setup_extension
    raise ExtensionError('Could not import extension %s' % extension, err)
ExtensionError: Could not import extension sphinxjp.themecore (exception: No module named sphinxjp.themecore)

対応

  • エラーが出る場合、依存関係がおかしくなっている可能性が高い。
  • Python系パッケージを全部入れなおすか、virtualenv と pip による 環境切り換えを検討するとか。

«  プレゼンするなら sphinxjp.themes.s6   ::   Contents   ::   Mercurial  »