Problem:
plot_model
from keras.utils
to draw a beautiful AI model layers map;plot_model
requires "pydot" and "graphviz";pip install pydot
), and "graphviz" using the installer EXE;AttributeError: module 'pydot' has no attribute 'InvocationException'
.Question: how to make the error go away and the code run correctly?
Edit:
The error AttributeError: module 'pydot' has no attribute 'InvocationException'
is caused by a FileNotFoundError: [WinError 2] "dot" not found in path.
error, that is caused by a FileNotFoundError: [WinError 2] O sistema não pode encontrar o arquivo especificado
error.
It is a pydot version incompatibility, as seen on GitHub.
Do pip install pydot==2.0.0
and it will work, as said by syedalimohsinbukhari.