I installed easy_install
under windows, and installed pygraph
but the commad import gv
in the example taken from here doesn't work:
What is gv lib? what import gv
does?
I get this error :
Traceback (most recent call last):
File "C:\Python27\graph.py", line 11, in <module>
import gv
ImportError: No module named gv
All the other imports works fine
gv is GraphViz and apparently something with the place or the bindings of this library is wrong. You might have to modify sys.
Graphviz is an open-source python module that is used to create graph objects which can be completed using different nodes and edges. It is based on the DOT language of the Graphviz software and in python it allows us to download the source code of the graph in DOT language.
Try to install libgv-python
with your package manager. On Ubuntu:
sudo apt-get install libgv-python
This could have multiple problem sources:
Of course there are sure other possibile problems, but I think this would be the most likely.
Edit: Have a look at this. Looks like it's the same problem as yours.
For the second problem eventually this discussion may also help.
This seems to be a common issue with python-graph, see the discussion at http://code.google.com/p/python-graph/issues/detail?id=15. gv
is GraphViz and apparently something with the place or the bindings of this library is wrong. You might have to modify sys.path
, but it might be even more troublesome on Windows.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With