pydot: GraphViz's executables not found on Windows 7 64-bit

What steps will reproduce the problem?
1. Install pydot on Win 7 64
2. Try to run the graph write_png() method

What is the expected output? What do you see instead?

You'll see this:
    graph.write_png('example2_graph.png')
  File "build\bdist.win-amd64\egg\pydot.py", line 1809, in <lambda>
  File "build\bdist.win-amd64\egg\pydot.py", line 1911, in write
  File "build\bdist.win-amd64\egg\pydot.py", line 1953, in create
pydot.InvocationException: GraphViz's executables not found

What version of the product are you using? On what operating system?

Using graphviz 2.28 on Win 7 64-bit.

Please provide any additional information below.

It looks like graphviz uses a different registry setting for Win7 64:

    hkey = win32api.RegOpenKeyEx( win32con.HKEY_LOCAL_MACHINE, "SOFTWARE\Wow6432Node\AT&T Research Labs\Graphviz 2.28", 0, win32con.KEY_QUERY_VALUE )


Original issue reported on code.google.com by mike.naq...@gmail.com on 20 Jan 2012 at 4:46

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 20 (1 by maintainers)

Commits related to this issue

Most upvoted comments

I just added this registry key to 64bit win7 and everything started working:

[HKEY_LOCAL_MACHINE\SOFTWARE\ATT\Graphviz]
"InstallPath"="C:\\Program Files (x86)\\Graphviz2.38"

Just change it based on your Graphviz installation directory.

Original comment by amir.tavasoli@gmail.com on 29 Dec 2014 at 6:32

Attachments: