Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotImplementedError: rst2rst.writer.RSTTranslator visiting unknown node type: docinfo #29

Open
mcepl opened this issue Jan 4, 2018 · 0 comments

Comments

@mcepl
Copy link

mcepl commented Jan 4, 2018

While processing new_life_of_petunia_dursley.rst (from https://gitlab.com/mcepl/petunia_dursley/) I got this error with rst2rst from the master HEAD:

matej@mitmanek: petunia_dursley (master *%)$ rst2rst --traceback new_life_of_petunia_dursley.rst /tmp/petunia.rst
Traceback (most recent call last):
  File "/home/matej/.local/bin/rst2rst", line 11, in <module>
    load_entry_point('rst2rst==0.3.dev0', 'console_scripts', 'rst2rst')()
  File "/home/matej/.local/lib/python2.7/site-packages/rst2rst/scripts/rst2rst.py", line 14, in main
    description=description)
  File "/home/matej/.local/lib/python2.7/site-packages/docutils/core.py", line 354, in publish_cmdline
    config_section=config_section, enable_exit_status=enable_exit_status)
  File "/home/matej/.local/lib/python2.7/site-packages/docutils/core.py", line 219, in publish
    output = self.writer.write(self.document, self.destination)
  File "/home/matej/.local/lib/python2.7/site-packages/docutils/writers/__init__.py", line 80, in write
    self.translate()
  File "/home/matej/.local/lib/python2.7/site-packages/rst2rst/writer.py", line 83, in translate
    self.document.walkabout(self.visitor)
  File "/home/matej/.local/lib/python2.7/site-packages/docutils/nodes.py", line 174, in walkabout
    if child.walkabout(visitor):
  File "/home/matej/.local/lib/python2.7/site-packages/docutils/nodes.py", line 166, in walkabout
    visitor.dispatch_visit(self)
  File "/home/matej/.local/lib/python2.7/site-packages/docutils/nodes.py", line 1882, in dispatch_visit
    return method(node)
  File "/home/matej/.local/lib/python2.7/site-packages/docutils/nodes.py", line 1907, in unknown_visit
    % (self.__class__, node.__class__.__name__))
NotImplementedError: rst2rst.writer.RSTTranslator visiting unknown node type: docinfo
matej@mitmanek: petunia_dursley (master *%)$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant