extensions = [ 'sphinxcontrib.httpdomain', ]"make html"を実行すると。
$ make html Running Sphinx v1.8.4 loading translations [ja]... done Extension error: Could not import extension sphinxcontrib.httpdomain (exception: No module named 'sphinxcontrib') make: *** [Makefile:19: html] エラー 2なになに?sphinxcontrib が無い?何故だ?
import sys print sys.path"make html"を実行すると。
$ make html Running Sphinx v1.8.4 ['/usr/share/sphinx/scripts/python3', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/dist-packages', '/usr/lib/python3/dist-packages'] loading translations [ja]... done Extension error: Could not import extension sphinxcontrib.httpdomain (exception: No module named 'sphinxcontrib') make: *** [Makefile:19: html] エラー 2おっと?python3.7用が動いている...。
$ ls -l /etc/alternatives| grep sphinx lrwxrwxrwx 1 root root 47 10月 2 15:26 sphinx-apidoc -> /usr/share/sphinx/scripts/python3/sphinx-apidoc lrwxrwxrwx 1 root root 48 10月 2 15:26 sphinx-autogen -> /usr/share/sphinx/scripts/python3/sphinx-autogen lrwxrwxrwx 1 root root 46 10月 2 15:40 sphinx-build -> /usr/share/sphinx/scripts/python3/sphinx-build lrwxrwxrwx 1 root root 51 10月 2 15:26 sphinx-quickstart -> /usr/share/sphinx/scripts/python3/sphinx-quickstart...なぜ、python3になってるのかな...。
$ sudo update-alternatives --config sphinx-build $ sudo update-alternatives --config sphinx-quickstart $ sudo update-alternatives --config sphinx-apidoc $ sudo update-alternatives --config sphinx-autogen無事、httpdomainが使えました。
update: 2020/10/02 15:50 | path: /pub/software/sphinx