[Pkg-salt-team] Bug#918377: salt: FTBFS with Sphinx 1.8: cannot import name 'Directive' from 'sphinx.directives'

Dmitry Shachnev mitya57 at debian.org
Sat Jan 5 16:54:40 GMT 2019


Source: salt
Version: 2018.3.3+dfsg1-1
Severity: important
User: python-modules-team at lists.alioth.debian.org
Usertags: sphinx1.8
Tags: fixed-upstream
Forwarded: https://github.com/saltstack/salt/pull/50587

Dear maintainers,

salt fails to build with Sphinx 1.8, currently available in experimental:

  make[2]: Entering directory '/<<BUILDDIR>>/salt-2018.3.3+dfsg1/doc'
  No need to update translations. Skipping...
  /usr/share/sphinx/scripts/python3/sphinx-build -b html -d _build/doctrees    . _build/html
  Running Sphinx v1.8.3
  loading translations [en]... done

  Extension error:
  Could not import extension saltdomain
  (exception: cannot import name 'Directive' from 'sphinx.directives'
  (/usr/lib/python3/dist-packages/sphinx/directives/__init__.py))

The Directive class should be imported from docutils.parsers.rst, not from
sphinx.directives. In this case the correct import already exists, so the
wrong one can be simply dropped.

This is already fixed upstream, see the linked pull request.

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-salt-team/attachments/20190105/428eade5/attachment.sig>


More information about the pkg-salt-team mailing list