CalledProcessError
Hi, I have installed the graphviz and settled the path also but unable take full advantages of it.In Jupyter notebook the importing of graphviz creating no issue but whenever I am going to display the graph the following error occurs:
CalledProcessError Traceback (most recent call last) in () ----> 1 mglearn.plots.plot_animal_tree()
~\Anaconda3\lib\site-packages\mglearn\plot_animal_tree.py in plot_animal_tree(ax) 23 mygraph.edge("2", "5", label="True") 24 mygraph.edge("2", "6", label="False") ---> 25 mygraph.render("tmp") 26 ax.imshow(imread("tmp.png")) 27 ax.set_axis_off()
~\Anaconda3\lib\site-packages\graphviz\files.py in render(self, filename, directory, view, cleanup) 174 filepath = self.save(filename, directory) 175 --> 176 rendered = backend.render(self._engine, self._format, filepath) 177 178 if cleanup:
~\Anaconda3\lib\site-packages\graphviz\backend.py in render(engine, format, filepath, quiet) 129 with open(os.devnull, 'w') as stderr: 130 try: --> 131 subprocess.check_call(args, stderr=stderr, **POPEN_KWARGS) 132 except OSError as e: 133 if e.errno == errno.ENOENT:
~\Anaconda3\lib\subprocess.py in check_call(*popenargs, **kwargs) 326 if cmd is None: 327 cmd = popenargs[0] --> 328 raise CalledProcessError(retcode, cmd) 329 return 0 330
CalledProcessError: Command '['dot.bat', '-Tpng', '-O', 'tmp']' returned non-zero exit status 1
Please help me out.Life becomes hell without having the taste of displaying the graph. Thank You!!