I try to run this example for decision tree learning, but get the following error message:
File \"coco.py\", line 18, in graph.write_pdf(\"iris.pdf
I was facing the same issues, my problem got resolved using:
sudo port install graphviz
sudo port install graphviz
Restart the python kernel if you are using iPython and run again.