-
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
Cannot visualise #3216
Comments
Here is my pydot version: Metadata-Version: 2.0 |
New pydot version break many packages. Use pydot 1.1.0. On Wed, Jul 13, 2016 at 12:11 PM, William Jones notifications@github.com
|
Thanks @nouiz |
The solution to the issue reported above is to remove the call Please let |
I don't like the idea of postponing the error. WIth the old version, we where able to give an error to the user when it was importing the optional module that use pydot. Now, the error can happen after hours of computation. We just need this method to do what pydot currently do when it get called. We don't need the old check, just the current check. This allow much better user error. |
Please see this comment: pydot/pydot@812e3c4#commitcomment-18236709, where I describe how you can still check early, without duplicating the |
@johnyf the error raised by pydot if graphviz is not installed is the following:
This is error message is not explicit enough for users of third party libraries like theano or keras that use pydot has an internal dependency. The end users do not necessarily know that the |
This still seems to be an issue, did you folks got it resolved? I have:
I tried installing older /usr/local/lib/python2.7/site-packages/keras/utils/visualize_util.py in <module>()
5 # fall back on pydot if necessary
6 import pydot
----> 7 if not pydot.find_graphviz():
8 raise RuntimeError('Failed to import pydot. You must install pydot'
9 ' and graphviz for `pydotprint` to work.')
AttributeError: 'module' object has no attribute 'find_graphviz' It looks like removing |
Pydot-ng fixes it |
@varoudis 🙌 ! Works like a charm, Thanks... |
@varoudis did you change visualize_util.py to import pydotng?? I am running into the same issue , installed pydot 1.1.0 still doesn't seem to fix it. |
In Theano the problem has been fixed, as reported here: pydot/pydot@812e3c4#commitcomment-18266611, and the latest release of |
It's already the case. install pydotng instead of pydot. |
Thanks @ogrisel pydot 1.1.0 worked for me and thanks for all the amazing contribution to Scikit-learn. |
Love the library btw. This seems to be an issue with pydot from what I can tell.
from keras.utils.visualize_util import plot
AttributeError Traceback (most recent call last)
in ()
17 from PIL import Image
18 import matplotlib.pyplot as plt
---> 19 from keras.utils.visualize_util import plot
20 get_ipython().magic(u'matplotlib inline')
21
/Users/fonz/anaconda/lib/python2.7/site-packages/keras/utils/visualize_util.py in ()
5 # fall back on pydot if necessary
6 import pydot
----> 7 if not pydot.find_graphviz():
8 raise RuntimeError('Failed to import pydot. You must install pydot'
9 ' and graphviz for
pydotprint
to work.')AttributeError: 'module' object has no attribute 'find_graphviz'
The text was updated successfully, but these errors were encountered: