Node 'Color' is unknown for LaTeX backend

Issue #4 new
Patrick Lehmann
created an issue

Hello,

I get this error reported on ReadTheDocs, when my documentation is build for HTML and LaTeX:

Exception occurred:
  File "/home/docs/checkouts/readthedocs.org/user_builds/poc-library/envs/release/lib/python3.4/site-packages/sphinx/writers/latex.py", line 2137, in unknown_visit
    raise NotImplementedError('Unknown node: ' + node.__class__.__name__)
NotImplementedError: Unknown node: Color

This error is shown by a normal readthedocs (-b readthedocssinglehtml) run:

  File "/home/docs/checkouts/readthedocs.org/user_builds/poc-library/envs/release/lib/python3.4/site-packages/docutils/nodes.py", line 166, in walkabout
    visitor.dispatch_visit(self)
  File "/home/docs/checkouts/readthedocs.org/user_builds/poc-library/envs/release/lib/python3.4/site-packages/docutils/nodes.py", line 1882, in dispatch_visit
    return method(node)
  File "/home/docs/checkouts/readthedocs.org/user_builds/poc-library/envs/release/lib/python3.4/site-packages/sphinxcontrib/color.py", line 13, in visit_color_node
    if node.color is None:  # if not set, just write text.
AttributeError: 'Color' object has no attribute 'color'

Exception occurred:
  File "/home/docs/checkouts/readthedocs.org/user_builds/poc-library/envs/release/lib/python3.4/site-packages/sphinxcontrib/color.py", line 13, in visit_color_node
    if node.color is None:  # if not set, just write text.
AttributeError: 'Color' object has no attribute 'color'

Is it possible to emit the unformatted text without color information to the LaTeX backend?

Comments (4)

  1. Shirou wakayama repo owner

    I confirmed it does not work in LaTeX builder. But you wrote it is also occured in ReadTheDocs and for HTML. It seems there are several extension related to ReadTheDocs, so I asked which extention.

  2. Log in to comment