{"action":"created","issue":{"url":"https://api.github.com/repos/blaze/dask/issues/835","labels_url":"https://api.github.com/repos/blaze/dask/issues/835/labels{/name}","comments_url":"https://api.github.com/repos/blaze/dask/issues/835/comments","events_url":"https://api.github.com/repos/blaze/dask/issues/835/events","html_url":"https://github.com/blaze/dask/issues/835","id":117141796,"number":835,"title":"dot_graph writes empty png","user":{"login":"fonnesbeck","id":81476,"avatar_url":"https://avatars.githubusercontent.com/u/81476?v=3","gravatar_id":"","url":"https://api.github.com/users/fonnesbeck","html_url":"https://github.com/fonnesbeck","followers_url":"https://api.github.com/users/fonnesbeck/followers","following_url":"https://api.github.com/users/fonnesbeck/following{/other_user}","gists_url":"https://api.github.com/users/fonnesbeck/gists{/gist_id}","starred_url":"https://api.github.com/users/fonnesbeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fonnesbeck/subscriptions","organizations_url":"https://api.github.com/users/fonnesbeck/orgs","repos_url":"https://api.github.com/users/fonnesbeck/repos","events_url":"https://api.github.com/users/fonnesbeck/events{/privacy}","received_events_url":"https://api.github.com/users/fonnesbeck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-16T14:54:22Z","updated_at":"2015-11-16T16:25:52Z","closed_at":null,"body":"Following Jake VDP's [tutorial blog post](https://jakevdp.github.io/blog/2015/08/14/out-of-core-dataframes-in-python/), I am attempting to plot a dask graph. However, `dot_graph` plots an empty png. [Here is the example](https://gist.github.com/102830057075818bec2b). The resulting png file is zero bytes in size. As you can see, there is no exception raised.\r\n\r\nUsing dask 0.7.5 built from master on OS X 10.11, Anaconda Python 3.5. I've installed graphviz and pydot2 from pip."},"comment":{"url":"https://api.github.com/repos/blaze/dask/issues/comments/157087630","html_url":"https://github.com/blaze/dask/issues/835#issuecomment-157087630","issue_url":"https://api.github.com/repos/blaze/dask/issues/835","id":157087630,"user":{"login":"fonnesbeck","id":81476,"avatar_url":"https://avatars.githubusercontent.com/u/81476?v=3","gravatar_id":"","url":"https://api.github.com/users/fonnesbeck","html_url":"https://github.com/fonnesbeck","followers_url":"https://api.github.com/users/fonnesbeck/followers","following_url":"https://api.github.com/users/fonnesbeck/following{/other_user}","gists_url":"https://api.github.com/users/fonnesbeck/gists{/gist_id}","starred_url":"https://api.github.com/users/fonnesbeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fonnesbeck/subscriptions","organizations_url":"https://api.github.com/users/fonnesbeck/orgs","repos_url":"https://api.github.com/users/fonnesbeck/repos","events_url":"https://api.github.com/users/fonnesbeck/events{/privacy}","received_events_url":"https://api.github.com/users/fonnesbeck/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T16:25:51Z","updated_at":"2015-11-16T16:25:51Z","body":"Your `visualize` example fails with the following:\r\n\r\n\r\n    ---------------------------------------------------------------------------\r\n    ExpatError                                Traceback (most recent call last)\r\n    <ipython-input-9-01f98d3386e3> in <module>()\r\n          1 import dask.array as da\r\n    ----> 2 da.ones(5, chunks=2).visualize(filename='foo.svg')\r\n\r\n    /Users/fonnescj/anaconda3/lib/python3.5/site-packages/dask/base.py in visualize(self, filename, format, optimize_graph, **kwargs)\r\n         25                   **kwargs):\r\n         26         return visualize(self, filename=filename, format=format,\r\n    ---> 27                          optimize_graph=optimize_graph, **kwargs)\r\n         28 \r\n         29     def _visualize(self, filename='mydask', format=None, optimize_graph=False):\r\n\r\n    /Users/fonnescj/anaconda3/lib/python3.5/site-packages/dask/base.py in visualize(*args, **kwargs)\r\n        125     dsk = merge(dsks)\r\n        126 \r\n    --> 127     return dot_graph(dsk, filename=filename, **kwargs)\r\n        128 \r\n        129 \r\n\r\n    /Users/fonnescj/anaconda3/lib/python3.5/site-packages/dask/dot.py in dot_graph(dsk, filename, format, **kwargs)\r\n        218         f.write(data)\r\n        219 \r\n    --> 220     return _get_display_cls(format)(filename=full_filename)\r\n\r\n    /Users/fonnescj/anaconda3/lib/python3.5/site-packages/IPython/core/display.py in __init__(self, data, url, filename)\r\n        384         self.filename = None if filename is None else unicode_type(filename)\r\n        385 \r\n    --> 386         self.reload()\r\n        387         self._check_data()\r\n        388 \r\n\r\n    /Users/fonnescj/anaconda3/lib/python3.5/site-packages/IPython/core/display.py in reload(self)\r\n        403         if self.filename is not None:\r\n        404             with open(self.filename, self._read_flags) as f:\r\n    --> 405                 self.data = f.read()\r\n        406         elif self.url is not None:\r\n        407             try:\r\n\r\n    /Users/fonnescj/anaconda3/lib/python3.5/site-packages/IPython/core/display.py in data(self, svg)\r\n        488         from xml.dom import minidom\r\n        489         svg = cast_bytes_py2(svg)\r\n    --> 490         x = minidom.parseString(svg)\r\n        491         # get svg tag (should be 1)\r\n        492         found_svg = x.getElementsByTagName('svg')\r\n\r\n    /Users/fonnescj/anaconda3/lib/python3.5/xml/dom/minidom.py in parseString(string, parser)\r\n       1966     if parser is None:\r\n       1967         from xml.dom import expatbuilder\r\n    -> 1968         return expatbuilder.parseString(string)\r\n       1969     else:\r\n       1970         from xml.dom import pulldom\r\n\r\n    /Users/fonnescj/anaconda3/lib/python3.5/xml/dom/expatbuilder.py in parseString(string, namespaces)\r\n        923     else:\r\n        924         builder = ExpatBuilder()\r\n    --> 925     return builder.parseString(string)\r\n        926 \r\n        927 \r\n\r\n    /Users/fonnescj/anaconda3/lib/python3.5/xml/dom/expatbuilder.py in parseString(self, string)\r\n        221         parser = self.getParser()\r\n        222         try:\r\n    --> 223             parser.Parse(string, True)\r\n        224             self._setup_subset(string)\r\n        225         except ParseEscape:\r\n\r\n    ExpatError: no element found: line 1, column 0"}}