• Register
Log In
0 votes

Problem :

I am getting following pydot error

importerror: failed to import pydot. you must install pydot and graphviz for `pydotprint` to work.

6.9k points
edited by

1 Answer

0 votes

Solution :

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

import keras
import pydotplus
from keras.utils.vis_utils import model_to_dot
keras.utils.vis_utils.pydot = pydot

plot_model(your_model_name, to_file='model.png')

That's worked for me.

Further Readings :

36.1k points

Related questions

0 votes
1 answer 31 views
Problem : I am trying to install theano with the help of following command: conda install theano on my Ubuntu 16.04. But facing following import problems. import theano Traceback (most recent call last): File"/home/milenko/miniconda3/lib/python3.6/configparser.py", ... : To use MKL 2018 with Theano you MUST set "MKL_THREADING_LAYER=GNU" in your environement. How to resolve this issue? Any clues?
asked Dec 2, 2019 alecxe 7.5k points
1 vote
1 answer 655 views
Problem : I am very new to deep learning using Keras-TensorFlow in the PyCharmCE environment I am facing below error while working : raise ImportError('Could not import PIL.Image. ' ImportError: Could not import PIL.Image. The use of array_to_img requires PIL.
asked Dec 28, 2019 alecxe 7.5k points
0 votes
2 answers 1K views
Problem : I am beginner to opencv and keras on python. Currently I am trying to apply the Keras' image classifier to my existing project, but I am facing below error. “Error: (-215:assertion failed) !ssize.empty() in function 'cv::resize'” Earlier with the same ... 8, 224x224, frames 3 My file type are exactly the same so now I am confused. Can somebody help me in fixing my problem ?
asked Feb 28 mphil 2.3k points
1 vote
1 answer 40 views
Problem: I am working on a django project. But when I try to make migration to the projects using the command: python manage.py makemigrations & python manage.py migrate But this does not work and an error message appears: The above exception was the direct cause of ... def __str__(self): """Return string representation of user""" return self.email Whats is the problem that is causing the error?
asked Apr 29 samhaz 5k points
1 vote
1 answer 36 views
Problem: I am having basic knowledge of python, tensorflow, keras. I have read most of the possible solutions for my error they are suggesting wrapping my problematic tensor in the Lambda layer and I have already tried this method but I ... line 1665, in build_map_of_graph     layer, node_index, tensor_index = tensor._keras_history AttributeError: 'Tensor' object has no attribute '_keras_history'
asked May 23 Martin K 6.6k points