VACUMM / sphinx-fortran

Fortran domain and autodoc extensions to Sphinx
Other
45 stars 29 forks source link

sphinx.util.compat.Directive class is now deprecated in sphinx 1.6b1 #12

Closed gastineau closed 6 years ago

gastineau commented 6 years ago

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.

stefraynaud commented 6 years ago

Thanks for spotting this