sphinx-build (version 1.7.1) generates an error with the fortran domain:
Could not import extension sphinxfortran.fortran_domain (exception: cannot import name Directive)
It comes from the line :
File "sphinxfortran/fortran_domain.py", line 50, in
from sphinx.util.compat import Directive
ImportError: cannot import name Directive
Hi,
sphinx-build (version 1.7.1) generates an error with the fortran domain:
Could not import extension sphinxfortran.fortran_domain (exception: cannot import name Directive)
It comes from the line : File "sphinxfortran/fortran_domain.py", line 50, in
from sphinx.util.compat import Directive
ImportError: cannot import name Directive
According to http://www.sphinx-doc.org/en/stable/changes.html?highlight=sphinx.util.compat, the sphinx.util.compat.Directive class is deprecated.
So I just comment this line and it works on my examples.