1
Vote

docutils

description

Anyone know if docutils runs under IronPython?

I've been trying, but I get a stack-overflow exception (at least least with the html writer). This occurs if I try to use the API with C# or run rst2html.py directly with ipy.

I'm new to IronPython... I tried installing the source to track down the issue(s), but it throws a "not a zip file" exception whenever I try an import.

comments

paweljasinski wrote Oct 13, 2012 at 8:48 PM

for the stack-overflow, the following stopped it for me. I was able to generate html from a trivial test file.

--- c:/cygwin/home/rejap/tmp/docutils-0.9.1/docutils/nodes.py 2012-01-19 23:33:02.000000000 +0100
+++ c:/github/IronLanguages/bin/Debug/Lib/site-packages/docutils/nodes.py 2012-10-13 22:32:35.787827900 +0200
@@ -58,9 +58,9 @@
     false value.
     """
     return True
  • if sys.version_info < (3,):
  • if sys.version_info < (3,) and sys.platform != 'cli':
     # on 2.x, str(node) will be a byte string with Unicode
     # characters > 255 escaped; on 3.x this is no longer necessary
     def __str__(self):
         return unicode(self).encode('raw_unicode_escape')
    
probably we should switch further discussion to mailing list
Ironpython-users@python.org
http://mail.python.org/mailman/listinfo/ironpython-users