[Python-modules-team] Bug#901769: sphinx: crash with numbered toctrees

Robin Jarry robin at jarry.cc
Mon Jun 18 08:27:13 BST 2018


Package: python3-sphinx
Source: sphinx
Version: 1.7.5-2
Severity: important
Tags: upstream fixed-upstream

Hi,

With python{,3}-sphinx 1.7.5-*, using numbered toctrees cause a crash.
Take the following rst source:

 .. toctree::
    :numbered:

    doc1
    doc2
    doc3

When building (whatever format), we get this error:

  Exception occurred:
    File "/usr/lib/python3/dist-packages/sphinx/environment/collectors/toctree.py", line 172, in _walk_toc
      subnode[0]['secnumber'] = list(number)
  TypeError: 'NoneType' object is not iterable

This bug has already been reported:
https://github.com/sphinx-doc/sphinx/issues/5048

and fixed upstream:
https://github.com/sphinx-doc/sphinx/commit/96b9b9a127646c51e4bb8db980d528802a6ba652.patch

But this fix is not yet included in a release, it will be in sphinx
1.7.6. Could you apply the patch in a debian 1.7.5-3 version?

Thanks.

-- 
Robin



More information about the Python-modules-team mailing list