Graphviz Extension Runtime Error

Anonymous avatarAnonymous 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\cmdline.py", line 172, in main app.build(all_files, filenames) File "c:\python25\lib\site-packages\Sphinx-0.6.1-py2.5.egg\sphinx\application.py", line 129, in build self.builder.build_update() File "c:\python25\lib\site-packages\Sphinx-0.6.1-py2.5.egg\sphinx\builders\init.py", 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\builders\init.py", 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\builders\init.py", line 349, in write self.write_doc(docname, doctree) File "c:\python25\lib\site-packages\Sphinx-0.6.1-py2.5.egg\sphinx\builders\html.py", line 344, in write_doc self.docwriter.write(doctree, destination) File "C:\Python25\lib\site-packages\docutils\writers\init.py", line 76, in write self.translate() File "c:\python25\lib\site-packages\Sphinx-0.6.1-py2.5.egg\sphinx\writers\html.py", line 37, in translate self.document.walkabout(visitor) File "C:\Python25\lib\site-packages\docutils\nodes.py", line 176, in walkabout if child.walkabout(visitor): File "C:\Python25\lib\site-packages\docutils\nodes.py", line 176, in walkabout if child.walkabout(visitor): File "C:\Python25\lib\site-packages\docutils\nodes.py", line 168, in walkabout visitor.dispatch_visit(self) File "C:\Python25\lib\site-packages\docutils\nodes.py", line 1535, in dispatch_visit return method(node) File "c:\python25\lib\site-packages\Sphinx-0.6.1-py2.5.egg\sphinx\ext\graphviz.py", 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\graphviz.py", 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
graphviz-871d01b18b7460aea3f8dc2dde57c872cf5c84e7.png.map'

Any idea what's going wrong ?

Regards

Comments (3)

  1. Georg Brandl

    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 ?

    Regards.

    Julien

  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.