[Python-modules-team] Bug#872270: celery: FTBFS with Sphinx 1.6: AttributeError: 'Sphinx' object has no attribute 'domains'

Dmitry Shachnev mitya57 at debian.org
Tue Aug 15 15:00:17 UTC 2017


On Tue, Aug 15, 2017 at 05:46:29PM +0300, Dmitry Shachnev wrote:
> celery fails to build with Sphinx 1.6, currently available in experimental:
>
> [...]
>
> This commit from upstream Celery should fix this:
> https://github.com/celery/celery/commit/3c98e6216167d7e5

Sorry, that commit is not enough, because after applying it the build fails
with a new error:

  Traceback (most recent call last):
    [...]
    File "/usr/lib/python2.7/dist-packages/sphinx/domains/std.py", line 592, in note_citation_refs
      if node['refdomain'] == 'std' and node['reftype'] == 'citation':
    File "/usr/lib/python2.7/dist-packages/docutils/nodes.py", line 567, in __getitem__
      return self.attributes[key]
  KeyError: 'refdomain'

So you also need to apply this patch to docs/_ext/githubsphinx.py file:
https://github.com/celery/sphinx_celery/commit/28d8f42b43d5a28a

After applying both patches the build succeeds.

--
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://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20170815/d9d5f1d0/attachment.sig>


More information about the Python-modules-team mailing list