#StackBounty: #16.04 #server #python #python3 pydot.InvocationException: GraphViz's executables not found

Bounty: 50

I couldn’t find any solution that is related to Ubuntu server.
I am going to use plot_model from keras.utils import plot_model to save the .png format of the model. However, the error occurs saying `GraphViz’s executables not found. Full trace-back is here:

Traceback (most recent call last):
  File "/home/user/00_files/project/combined/kfold_loop.py", line 85, in <module>
    plot_model(combined_net(), to_file = 'kfold_loop.png')
  File "/usr/local/lib/python3.5/dist-packages/keras/utils/vis_utils.py", line 133, in plot_model
    dot = model_to_dot(model, show_shapes, show_layer_names, rankdir)
  File "/usr/local/lib/python3.5/dist-packages/keras/utils/vis_utils.py", line 55, in model_to_dot
    _check_pydot()
  File "/usr/local/lib/python3.5/dist-packages/keras/utils/vis_utils.py", line 26, in _check_pydot
    pydot.Dot.create(pydot.Dot())
  File "/home/user/.local/lib/python3.5/site-packages/pydot/__init__.py", line 1951, in create
    'GraphViz's executables not found' )
pydot.InvocationException: GraphViz's executables not found

Process finished with exit code 1

I have 0.13.2 version of graphviz and 1.4.1 version of pydoton Ubuntu 16.04 server.

What else should be done?

FYI: I am accessing Ubuntu server via PyCharm on Windows 10.


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.