Traceback (most recent call last):
File "bin/rst2html5", line 30, in
description=description)
File "/Library/Python/2.7/site-packages/docutils/core.py", line 352, in publish_cmdline
config_section=config_section, enable_exit_status=enable_exit_status)
File "/Library/Python/2.7/site-packages/docutils/core.py", line 219, in publish
output = self.writer.write(self.document, self.destination)
File "/Library/Python/2.7/site-packages/docutils/writers/init.py", line 80, in write
self.translate()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/rst2html5-0.1-py2.7.egg/html5css3/init.py", line 122, in translate
visitor = self.translator_class(self.document)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/rst2html5-0.1-py2.7.egg/html5css3/init.py", line 369, in init
styles = utils.get_stylesheet_list(self.settings)
File "/Library/Python/2.7/site-packages/docutils/utils/init.py", line 519, in get_stylesheet_list
for path in stylesheets]
AttributeError: Values instance has no attribute 'stylesheet_dirs'
My workaround was to create a virtualenv with an older OSX version (2.7.2) of Python, install docutils 0.10 via pip, and then rst2html5 is working properly.
Python 2.7.5, OSX Mountain Lion, rst2html cloned from source on github on 8/8/13. When running:
$ bin/rst2html5 --jquery --reveal-js --pretty-print-code --embed-content --traceback examples/slides.rst > reveal.html
I get the following error:
Traceback (most recent call last): File "bin/rst2html5", line 30, in
description=description)
File "/Library/Python/2.7/site-packages/docutils/core.py", line 352, in publish_cmdline
config_section=config_section, enable_exit_status=enable_exit_status)
File "/Library/Python/2.7/site-packages/docutils/core.py", line 219, in publish
output = self.writer.write(self.document, self.destination)
File "/Library/Python/2.7/site-packages/docutils/writers/init.py", line 80, in write
self.translate()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/rst2html5-0.1-py2.7.egg/html5css3/init.py", line 122, in translate
visitor = self.translator_class(self.document)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/rst2html5-0.1-py2.7.egg/html5css3/init.py", line 369, in init
styles = utils.get_stylesheet_list(self.settings)
File "/Library/Python/2.7/site-packages/docutils/utils/init.py", line 519, in get_stylesheet_list
for path in stylesheets]
AttributeError: Values instance has no attribute 'stylesheet_dirs'
I think I have traced this to some new
stylesheet_dirs
setting that was added to docutils at 0.11 (http://docutils.sourceforge.net/RELEASE-NOTES.html#id39).My workaround was to create a virtualenv with an older OSX version (2.7.2) of Python, install docutils 0.10 via pip, and then rst2html5 is working properly.