From: Brian Fallik <bfallik@li...> - 2009-01-19 18:54:26
I recently checked out docutils in order to try the rst2odt.py script.
During my investigation I believe I uncovered a bug. I've checkout
out svn://svn.berlios.de/docutils/trunk/ at r5852. Also, this is
tested on Ubuntu Intrepid.
If I do not have the python-pygments package installed, "rst2odt
input.rst output.odt" fails with:
NameError: global name 'escape_cdata' is not defined
Exiting due to error. Use "--traceback" to diagnose.
Please report errors to <docutils-users@...>.
I took a look in the code and it seems like importing from pygments is
supposed to be option, but clearly there's a code path that raises an
exception in its absence.
I'm not subscribed so please CC me on any replies and let me know if I
can provide any more information.