Issue 99 in python-graph: There is no gv.py for MS Windows

13 views
Skip to first unread message

python...@googlecode.com

unread,
Sep 12, 2011, 12:39:27 AM9/12/11
to python...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 99 by kanu...@gwu.edu: There is no gv.py for MS Windows
http://code.google.com/p/python-graph/issues/detail?id=99

What steps will reproduce the problem?
1. The example on http://code.google.com/p/python-graph/wiki/Example uses
the command "import gv"
2. To the best of my knowledge gv does not exist for Windows

What is the expected output? What do you see instead?
I use Eclipse and PyDev and "import gv" results in "Unresolved import"
because there is no equivalent for the following in Windows:

import sys
sys.path.append('..')
sys.path.append('/usr/lib/graphviz/python/')
sys.path.append('/usr/lib64/graphviz/python/')
import gv

What version of the product are you using? On what operating system?
Eclipse 2.7 on Windows 7

Please provide any additional information below.

Is there any advice you cam provide on how to go about rendering my graph
or if there is a work around or an alternative.

Thanks so much

python...@googlecode.com

unread,
Sep 17, 2011, 9:32:27 AM9/17/11
to python...@googlegroups.com
Updates:
Status: Invalid

Comment #1 on issue 99 by pmatiello: There is no gv.py for MS Windows
http://code.google.com/p/python-graph/issues/detail?id=99

You have to download and install Graphviz for Windows. I'm not sure whether
the Python modules comes bundled with the Windows install, but the command
line tools are surely available (and you can call them from your scripts to
draw a DOT file generated by python-graph).

Unfortunately, there isn't much more we can do about it as Graphviz is an
entirely different project.

http://www.graphviz.org/

python...@googlecode.com

unread,
Nov 12, 2013, 1:15:17 PM11/12/13
to python...@googlegroups.com

Comment #2 on issue 99 by derekdav...@gmail.com: There is no gv.py for MS
Windows
http://code.google.com/p/python-graph/issues/detail?id=99

use:

import pygraphviz as gv
.
.
.
.
dot = write(gr)
gvv = gv.AGraph(dot)
gvv.layout(prog='dot') # use dot
gvv.draw('file.png')



--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

python...@googlecode.com

unread,
Nov 12, 2013, 1:16:28 PM11/12/13
to python...@googlegroups.com

Comment #3 on issue 99 by derekdav...@gmail.com: There is no gv.py for MS
Windows
http://code.google.com/p/python-graph/issues/detail?id=99

use:

import pygraphviz as gv
.
.
.
.
dot = write(gr)
gvv = gv.AGraph(dot)
gvv.layout(prog='dot')
Reply all
Reply to author
Forward
0 new messages