-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
dot_graph writes empty png #835
Comments
@fonnesbeck can you verify that your graphviz system library works correctly? E.g. can you try writing out a >>> # dot_graph(b2_min.dask, filename='b2_min.dot')
>>> b2_min.visualize(filename='b2_min.dot') # perhaps nicer syntax
|
Or, an alternative test would be to install graphviz with a tool like brew. |
I have GV installed via brew:
|
I mention the tests above because, when others ran into problems like this (cc @Carreau) it was because the system graphviz library was not compiled with libpng, and so the You could also try visualizing with svg, which, if it works, would corroborate this theory. import dask.array as da
da.ones(5, chunks=2).visualize(filename='foo.svg') |
When I did export to a .dot file, I had the following in the terminal:
|
Your
|
I suspect that the graphviz executables in anaconda are broken (note that the python graphviz library is probably fine.) I recommend uninstalling it and going with what brew would install. Will raise an issue with Anaconda folk.
|
Yup, that is the issue. Removing conda's graphviz fixed all the examples. |
OK, sorry for the runaround. If you have the time, a quick mention from you in the anaconda-issue linked above might help to get this issue resolved upstream. |
Great, thanks for troubleshooting. |
We should probably raise an informative error message if this occurs. |
I am having this same issue. Installed on Windows 10 using conda-forge for dask (2.12.0) and python-graphviz (0.13.2). Installing python-graphviz also grabbed graphviz (2.38.0). I was able to resolve this by uninstalling the conda python-graphviz package and using pip install graphviz instead. Reporting here because I am not receiving a useful error message, as should be the case according to #1027.
|
As this issue is several years old I would suggest opening a new issue |
Following Jake VDP's tutorial blog post, I am attempting to plot a dask graph. However,
dot_graph
plots an empty png. Here is the example. The resulting png file is zero bytes in size. As you can see, there is no exception raised.Using dask 0.7.5 built from master on OS X 10.11, Anaconda Python 3.5. I've installed graphviz and pydot2 from pip.
The text was updated successfully, but these errors were encountered: