When I run a very simple code with pydot
import pydot
graph = pydot.Dot(graph_type=\'graph\')
for i in range(3):
edge = pydot.Edge(\"king\", \"lord%d\" %
What I did at the end after so many tries from what i saw here (pseudo sequence for it to work for networkx ) :
apt-get remove python-pydot
pip install pydotplus
apt-get install libcgraph6
apt-get install python-pygraphviz
# pip freeze | grep pydot
pydotplus==2.0.2
# pip freeze | grep pyparsing
pyparsing==2.2.0
# pip freeze | grep graphviz
pygraphviz==1.2
# python -c 'import pydotplus'
#
There are now at least 2 more versions that appear to support PyParsing-2 and Python-3:
site-packages\pydotplus
to site-packages\pydot
for it to work with existing programs that import pydot.a branch for Python 3 compatibility