-
Notifications
You must be signed in to change notification settings - Fork 19.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: module 'pydot' has no attribute 'find_graphviz' #3210
Comments
You can try to install |
@tboquet Thanks for your help! But this time I got this error: |
Here is how I fix the problem: |
@oeway The same error still exists.... |
Could you try to install from here: https://github.com/nlhepler/pydot As you can see from here https://github.com/nlhepler/pydot/blob/master/pydot/__init__.py#L474 , they do have find_graphviz function. |
@rylanchiu I think it is caused by could not find the graphviz although graphviz is installed. When I use It works and linked successful after I tried to uninstall it and re-install. Or you can try |
Would it be possible to add support for |
The problem is that pydot changed a small part of its interface. We fixed It would be easy to do the same in keras to suport its newer version. On Tue, Aug 23, 2016 at 8:46 PM, Hadrien Mary notifications@github.com
|
pydot-ng will give you pydot that satisfies the keras package, use On ubuntu you need to have the "dot" executable in your PATH, you can do this by installing the graphviz package: |
First, the
So, we should install
|
pydot pre 1.2.0 do not support python 3... |
I can run it after installing everything mentioned above. |
I faced similar problem and executing the following commands solved my problem.
|
Same issue here... |
http://stackoverflow.com/questions/36869258/how-to-use-graphviz-with-anaconda-spyder Downloading Graphviz from their website (msi version in my case given I'm on windows) and adding |
Thanks @Tahsin-Mayeesha . This is the right solution. |
I tried install all the requirement both from pip and from binary installation on system and I configured my PATH. It doesn't work. Regardless, how useful is this visualization? |
What is the error you getting? I model.summary() is more useful. |
I can import pydot, graphviz. |
pip install pydot-ng
conda install graphviz
pip uninstall pyparsing
pip install -Iv
https://pypi.python.org/packages/source/p/pyparsing/pyparsing-1.5.7.tar.gz#md5=9be0fcdcc595199c646ab317c1d9a709
pip install pydot
conda install -c https://conda.binstar.org/sstromberg pydot
conda install GraphViz
…On Sun, Feb 5, 2017 at 9:04 AM, Albert X.W. ***@***.***> wrote:
@sookinoby <https://github.com/sookinoby>
from keras.utils.visualize_util import plot
File "D:\Anaconda3\lib\site-packages\keras\utils\visualize_util.py", line 13, in <module>
raise RuntimeError('Failed to import pydot. You must install pydot'
RuntimeError: Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.
I can import pydot, graphviz.
I can also use dot at Terminal.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3210 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARxwS88xOy6b-WuEsD0p0CjQhfW31QvRks5rZXRogaJpZM4JLCWx>
.
--
*_________________*
*Hany A. EL-Ghaish*
*E-JUST University*
*PhD Candidate at School of Communication and Computer Engineering,
Egypt-Japan University of Science and Technology *
M. 01004393715
|
install - http://www.graphviz.org/Download_windows.php. Add the bin folder to windows path. Everything will work fine. |
on Mac, the following commands fixed the issue:
|
On Mac: If you are working in a virtual environment with Anaconda (always do that to avoid messing up the python in your OS):
And run your script from terminal. As a sanity check (in terminal):
The output should be a string similar to: "{'dot': 'your_path/bin/dot', 'twopi': ..." But, @sookinoby is right, model.summary() is much more useful. |
I have this issue with python3 on ubuntu 16.04. Since I know I have the necessary packages installed, I do the following to avoid the error:
|
For Mac, we need |
try pydotplus |
I have this issue with ubuntu 16.04
This can help me
|
For window, this because python can't find graphviz path, in pydot_ng init.py
We should modify to
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed. |
no not stale unless a human says so |
HI @tomas-angles :
But the following lines of code in python script run under keras leaves an error below again and again: from keras.utils import plot_model plot_model(model1, to_file='model.png') |
Please see #5313 (comment) and #3216 (comment). Comments about installation: https://stackoverflow.com/a/47209738/1959808 |
|
On macOS: |
This issue has been addressed by #6398, specifically 54a417f. It can be closed. keras/keras/utils/vis_utils.py Lines 23 to 32 in e73199d
|
I had the same error on my MacBook and I installed pydot on Jupyter notebook ! pip install pydot But grraphviz wouldn't work, so I went to graphviz documentations and installed home-brew on my terminal and then brew install graphviz This worked well and I could see the plot |
My os is Ubuntu 14.04 and python version is 3.5. I just simply did what the document said:
And what I got is:
Indeed I have ensured that
pydot
,pydotplus
,graphviz
have been installed as I could import them properly. Do you know how to fix it? Thank you in advance!The text was updated successfully, but these errors were encountered: