Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 415965 - dev-python/docutils-0.9: rst2man.py fails with NotImplementedError when generating llvm docs
Summary: dev-python/docutils-0.9: rst2man.py fails with NotImplementedError when gener...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks: 415295
  Show dependency tree
 
Reported: 2012-05-14 17:10 UTC by Michał Górny
Modified: 2015-09-03 09:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
One of the failing files (bugpoint.rst,6.18 KB, text/plain)
2012-05-14 17:16 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-05-14 17:10:13 UTC
The LLVM project manpages are written in rst. Recently, I added the support for generating them using rst2man.py to the ebuild. While the code worked (with a few warnings about unknown '.. code-block:: perl'), docutils-0.9 fails terribly with the following traceback:

$ rst2man.py bugpoint.rst --traceback
Traceback (most recent call last):
  File "/usr/bin/rst2man.py-2.7", line 26, in <module>
    publish_cmdline(writer=manpage.Writer(), description=description)
  File "/usr/lib64/python2.7/site-packages/docutils/core.py", line 356, in publish_cmdline
    config_section=config_section, enable_exit_status=enable_exit_status)
  File "/usr/lib64/python2.7/site-packages/docutils/core.py", line 223, in publish
    output = self.writer.write(self.document, self.destination)
  File "/usr/lib64/python2.7/site-packages/docutils/writers/__init__.py", line 77, in write
    self.translate()
  File "/usr/lib64/python2.7/site-packages/docutils/writers/manpage.py", line 106, in translate
    self.document.walkabout(visitor)
  File "/usr/lib64/python2.7/site-packages/docutils/nodes.py", line 173, in walkabout
    if child.walkabout(visitor):
  File "/usr/lib64/python2.7/site-packages/docutils/nodes.py", line 173, in walkabout
    if child.walkabout(visitor):
  File "/usr/lib64/python2.7/site-packages/docutils/nodes.py", line 173, in walkabout
    if child.walkabout(visitor):
  File "/usr/lib64/python2.7/site-packages/docutils/nodes.py", line 173, in walkabout
    if child.walkabout(visitor):
  File "/usr/lib64/python2.7/site-packages/docutils/nodes.py", line 165, in walkabout
    visitor.dispatch_visit(self)
  File "/usr/lib64/python2.7/site-packages/docutils/nodes.py", line 1611, in dispatch_visit
    return method(node)
  File "/usr/lib64/python2.7/site-packages/docutils/nodes.py", line 1636, in unknown_visit
    % (self.__class__, node.__class__.__name__))
NotImplementedError: docutils.writers.manpage.Translator visiting unknown node type: inline

The issue can be easily reproduced by emerging =sys-devel/llvm-9999. I've modified the build so that docgen happens (and fails) before the actual compiling starts.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-05-14 17:16:55 UTC
Created attachment 311769 [details]
One of the failing files
Comment 2 Mike Gilbert gentoo-dev 2012-05-14 17:20:02 UTC
Bug 415295 comment 6 says that docutils-0.8.1 works fine. Just documenting that here.
Comment 3 Bernard Cafarelli gentoo-dev 2015-09-03 09:52:52 UTC
llvm >= 3.2 uses sphinx for doc generation, and faulty docutils versions were removed from tree some time ago, so I am cleaning this bug