I am getting following pydot error
importerror: failed to import pydot. you must install pydot and graphviz for `pydotprint` to work.
I also had faced the similar issue in the past.
I did bellow changes to resolve the issue.On mac Anaconda python=3.6.8
from keras.utils.vis_utils import model_to_dot
keras.utils.vis_utils.pydot = pydot
That's worked for me.