Sphinx error: Unknown directive type "automodule" or "autoclass"
Solution 1:
The same thing happened to me! To fix it, go to the line in conf.py that says something like this:
extensions = ['sphinx.ext.todo', 'sphinx.ext.viewcode']
Yours will probably look different. Anyway, add 'sphinx.ext.autodoc'
to the list. e.g.
extensions = ['sphinx.ext.todo', 'sphinx.ext.viewcode', 'sphinx.ext.autodoc']
If it was:
extensions = []
then you'd change it to:
extensions = ['sphinx.ext.autodoc']
Sources: Sphinx documentation: ERROR: Unknown directive type "program-output"