Issue #253 resolved

Graphviz Extension Runtime Error

Anonymous created an issue

I'm trying to use graphviz within a project. Running on Windows, Python 2.5

from a clean quickstart structure, added one file named essai.txt containing the following :

Essai Graphviz

.. graphviz::

digraph foo { "bar" -> "baz"; }

which is derived form the graphviz extension documentation.

I get the following error log when building HTML output (sorry couldn't find a way to better attach it):

Traceback (most recent call last): File "c:\python25\lib\site-packages\Sphinx-0.6.1-py2.5.egg\sphinx\", line 172, in main, filenames) File "c:\python25\lib\site-packages\Sphinx-0.6.1-py2.5.egg\sphinx\", line 129, in build self.builder.build_update() File "c:\python25\lib\site-packages\Sphinx-0.6.1-py2.5.egg\sphinx\", line 255, in build_update 'out of date' % len(to_build)) File "c:\python25\lib\site-packages\Sphinx-0.6.1-py2.5.egg\sphinx\", line 310, in build self.write(docnames, list(updated_docnames), method) File "c:\python25\lib\site-packages\Sphinx-0.6.1-py2.5.egg\sphinx\", line 349, in write self.write_doc(docname, doctree) File "c:\python25\lib\site-packages\Sphinx-0.6.1-py2.5.egg\sphinx\builders\", line 344, in write_doc self.docwriter.write(doctree, destination) File "C:\Python25\lib\site-packages\docutils\", line 76, in write self.translate() File "c:\python25\lib\site-packages\Sphinx-0.6.1-py2.5.egg\sphinx\writers\", line 37, in translate self.document.walkabout(visitor) File "C:\Python25\lib\site-packages\docutils\", line 176, in walkabout if child.walkabout(visitor): File "C:\Python25\lib\site-packages\docutils\", line 176, in walkabout if child.walkabout(visitor): File "C:\Python25\lib\site-packages\docutils\", line 168, in walkabout visitor.dispatch_visit(self) File "C:\Python25\lib\site-packages\docutils\", line 1535, in dispatch_visit return method(node) File "c:\python25\lib\site-packages\Sphinx-0.6.1-py2.5.egg\sphinx\ext\", line 161, in html_visit_graphviz render_dot_html(self, node, node['code'], node['options']) File "c:\python25\lib\site-packages\Sphinx-0.6.1-py2.5.egg\sphinx\ext\", line 139, in render_dot_html mapfile = open(outfn + '.map', 'rb') IOError: [Errno 2] No such file or directory: 'D:\projets\oss\cartographie\_build\html\_images\'

Any idea what's going wrong ?


Comments (4)

  1. Georg Brandl repo owner

    Thanks for the report! Your markup is wrong, because the content of the graphviz directive is not indented. It should be

    .. graphviz::
       digraph foo {
          "bar" -> "baz";

    Nevertheless, the unhandled exception should not occur. I've fixed this in 801f9133d823 .

  2. Anonymous

    Thanks Georg for reactivity ! Im' sorry, but I also tried with correct indent

    It's working exactly the same.

    I even tested the dot snippet with several other graphviz chains and it's OK.

    Have you tried creating a document including graphviz ? Could you send me sample ?



  3. Log in to comment