Seth Stokes
09/12/2024, 4:21 PMhamilton can no longer use graphviz to create the dag.
graphviz.backend.execute.ExecutableNotFound: failed to execute WindowsPath('dot'), make sure the Graphviz executables are on your systems' PATH
Graphviz is added to path and I am able to do this example from the docs.
I tried:
⢠creating a fresh venv
⢠reinstalling sf-hamilton[visualization]
Any ideas?Stefan Krawczyk
09/12/2024, 4:54 PMStefan Krawczyk
09/12/2024, 4:56 PMSeth Stokes
09/12/2024, 5:01 PM.gv file but not the .svg and throws the same errorStefan Krawczyk
09/12/2024, 5:02 PMSeth Stokes
09/12/2024, 5:03 PMgraphviz hello world with the graphviz libStefan Krawczyk
09/12/2024, 5:03 PM.svg fails independent of Hamilton?Seth Stokes
09/12/2024, 5:09 PMSeth Stokes
09/12/2024, 5:10 PMimport graphviz
dot = graphviz.Digraph('hello', format="svg")
dot.edge('hello', 'world')
dot.render("hello-world")
This writes the .gv file but not the .svg and raises the same error.Stefan Krawczyk
09/12/2024, 5:16 PMStefan Krawczyk
09/12/2024, 5:16 PMSeth Stokes
09/12/2024, 6:10 PMViktor
09/17/2024, 12:38 PMpython-graphviz, instead.Seth Stokes
09/19/2024, 9:29 PMdr.visualize_execution() keeps finding this error from Jupyter.
Is this still a graphviz issue outside of hamilton scope?
File c:\codebase\volume-reporting\vol-rep-venv\lib\site-packages\graphviz\jupyter_integration.py:98, in <dictcomp>(.0)
96 include = set(include) if include is not None else {self._jupyter_mimetype}
97 include -= set(exclude or [])
---> 98 return {mimetype: getattr(self, method_name)()
99 for mimetype, method_name in MIME_TYPES.items()
100 if mimetype in include}
File c:\codebase\volume-reporting\vol-rep-venv\lib\site-packages\graphviz\jupyter_integration.py:112, in JupyterIntegration._repr_image_svg_xml(self)
110 def _repr_image_svg_xml(self) -> str:
...
102 stdout, stderr = popen.communicate()
103 return subprocess.CompletedProcess(popen.args, popen.returncode,
104 stdout=stdout, stderr=stderr)
BrokenPipeError: [Errno 32] Broken pipe
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...Stefan Krawczyk
09/19/2024, 9:32 PM\site-packages\graphviz\jupyter_integration.pyUnfortunately yes ā this is down in graphviz