On 2012-11-11, Stefan Merten wrote:
> [-- Type: text/plain, Encoding: quoted-printable --]
> Hi!
> After some time I updated from the SVN repository and found that since
> r7503 command line usage does not work any more::
> $ rst2html --version
> Traceback (most recent call last):
> File "/home/stefan/bin/rst2html", line 23, in <module>
> publish_cmdline(writer_name='html', description=description)
> File "/home/stefan/lib/python/lib/docutils/docutils/core.py", line 349, in publish_cmdline
> pub.set_components(reader_name, parser_name, writer_name)
> File "/home/stefan/lib/python/lib/docutils/docutils/core.py", line 93, in set_components
> self.set_reader(reader_name, self.parser, parser_name)
> File "/home/stefan/lib/python/lib/docutils/docutils/core.py", line 83, in set_reader
> self.reader = reader_class(parser, parser_name)
> File "/home/stefan/lib/python/lib/docutils/docutils/readers/__init__.py", line 52, in __init__
> self.set_parser(parser_name)
> File "/home/stefan/lib/python/lib/docutils/docutils/readers/__init__.py", line 63, in set_parser
> parser_class = parsers.get_parser_class(parser_name)
> File "/home/stefan/lib/python/lib/docutils/docutils/parsers/__init__.py", line 53, in get_parser_class
> return module.Parser
> AttributeError: 'module' object has no attribute 'Parser'
> For r7502::
> $ rst2html --version
> rst2html (Docutils 0.10 [repository], Python 2.6.5, on linux2)
Thank you for the bug report. However,
I cannot reproduce it with a current SVN checkout (revision 7536):
$ rst2html --version
rst2html (Docutils 0.10 [repository], Python 2.7.3rc2, on linux2)
$ python2.6 .bin/rst2html --version
rst2html (Docutils 0.10 [repository], Python 2.6.8, on linux2)
$ python2.5 ~/.bin/rst2html --version
rst2html (Docutils 0.10 [repository], Python 2.5.5, on linux2)
$ python2.4 ~/.bin/rst2html --version
rst2html (Docutils 0.10 [repository], Python 2.4.6, on linux2)
$ python3 ~/.bin/rst2html --version
rst2html (Docutils 0.10 [repository], Python 3.2.3, on linux2)
Could you try again with a recent checkout or snapshot?
Günter
|