Charles Duffy schrieb: > I appreciate the report... that said, I'm a little unclear on what the > Right Way to fix this is. sphinx.ext.pngmath appears to reference a > self.builder.imgpath in render_math, but app.builder.imgpath doesn't > appear to exist when process_graphviz_nodes is called from the doctree- > resolved hook: > > WARNING: /home/cduffy/fvte/doc/concepts.rst:53: (ERROR/3) Exception > occured evaluating graphviz expression: > AttributeError: 'StandaloneHTMLBuilder' object has no attribute > 'imgpath' > > WARNING: /home/cduffy/fvte/doc/index.rst:: (ERROR/3) Exception occured > evaluating graphviz expression: > AttributeError: 'LaTeXBuilder' object has no attribute 'imgpath' > > Given such, I'm rather curious about why imgpath is available for > pngmath's use.
pngmath renders the PNG when visiting the node in the HTML translator, while you already transform away the nodes directly before calling the translator. Perhaps this is also what the graphviz extension should do. BTW, I just saw that matplotlib has a custom extension that creates inheritance graphs with graphviz: http://groups.google.com/group/sphinx-dev/browse_thread/thread/e1f816aa58743e37/64cb54e5490ea2af?lnk=gst&q=inheritance#64cb54e5490ea2af Perhaps the code calling graphviz can be consolidated, so that this extension can make use of the graphviz extension once it's in sphinx.ext. cheers, Georg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-dev@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---