{"action":"created","issue":{"url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/1666","repository_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues","labels_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/1666/labels{/name}","comments_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/1666/comments","events_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/1666/events","html_url":"https://github.com/ContinuumIO/anaconda-issues/issues/1666","id":226439450,"node_id":"MDU6SXNzdWUyMjY0Mzk0NTA=","number":1666,"title":"graphviz package doesn't add executable to PATH on windows","user":{"login":"kalefranz","id":1418419,"node_id":"MDQ6VXNlcjE0MTg0MTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1418419?v=4","gravatar_id":"","url":"https://api.github.com/users/kalefranz","html_url":"https://github.com/kalefranz","followers_url":"https://api.github.com/users/kalefranz/followers","following_url":"https://api.github.com/users/kalefranz/following{/other_user}","gists_url":"https://api.github.com/users/kalefranz/gists{/gist_id}","starred_url":"https://api.github.com/users/kalefranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalefranz/subscriptions","organizations_url":"https://api.github.com/users/kalefranz/orgs","repos_url":"https://api.github.com/users/kalefranz/repos","events_url":"https://api.github.com/users/kalefranz/events{/privacy}","received_events_url":"https://api.github.com/users/kalefranz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":42,"created_at":"2017-05-04T23:52:10Z","updated_at":"2018-09-14T17:14:13Z","closed_at":"2017-05-15T22:53:41Z","author_association":"MEMBER","body":"_From @amueller on May 4, 2017 22:34_\n\nThe graphviz dot executable is installed to ``<anaconda>/Library/bin/graphviz/`` (I think, don't have a machine here to double check - but there's definitely a graphviz sub-folder).\r\nBut this folder is not added to the executable search path. That means that it can not be used basically, and using the python graphviz package fails.\r\nI just manually fixed this issue at around 10 laptops in my workshop :-/\r\ndoing ``!set PATH=PATH;C:\\path\\to\\anaconda\\Library\\bin\\graphviz\\`` fixed it.\n\n_Copied from original issue: conda/conda#5227_"},"comment":{"url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/comments/421425205","html_url":"https://github.com/ContinuumIO/anaconda-issues/issues/1666#issuecomment-421425205","issue_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/1666","id":421425205,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTQyNTIwNQ==","user":{"login":"dloperab","id":16327575,"node_id":"MDQ6VXNlcjE2MzI3NTc1","avatar_url":"https://avatars3.githubusercontent.com/u/16327575?v=4","gravatar_id":"","url":"https://api.github.com/users/dloperab","html_url":"https://github.com/dloperab","followers_url":"https://api.github.com/users/dloperab/followers","following_url":"https://api.github.com/users/dloperab/following{/other_user}","gists_url":"https://api.github.com/users/dloperab/gists{/gist_id}","starred_url":"https://api.github.com/users/dloperab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dloperab/subscriptions","organizations_url":"https://api.github.com/users/dloperab/orgs","repos_url":"https://api.github.com/users/dloperab/repos","events_url":"https://api.github.com/users/dloperab/events{/privacy}","received_events_url":"https://api.github.com/users/dloperab/received_events","type":"User","site_admin":false},"created_at":"2018-09-14T17:14:13Z","updated_at":"2018-09-14T17:14:13Z","author_association":"NONE","body":"> > What? Adding it to the path or using the pip graphviz?\r\n> \r\n> Neither of those. Adding `Library\\bin\\graphviz` to PATH could break Spyder and Matplotlib, and the pip graphviz packages are not compatible with the graphviz package provided by conda.\r\n> \r\n> To be clarify even further:\r\n> \r\n> 1. `conda install graphviz` installs the C graphviz executables and libraries (e.g. the `dot` executable).\r\n> 2. `pip install graphviz` installs one of the Python bindings for Graphviz (the one used by Dask).\r\n> 3. `conda install python-graphviz` installs the same package as `pip install graphviz`, but patched to work with conda's Graphviz C package.\r\n> \r\n> > Requiring a specific configuration in the python graphviz means that there is a tight coupling between these packages when there shouldn't be.\r\n> \r\n> There's no additional configuration, you just need to run\r\n> \r\n> ```\r\n> conda install python-graphviz\r\n> ```\r\n> instead of\r\n> \r\n> ```\r\n> pip install graphviz\r\n> ```\r\n> (as I said above).\r\n> \r\n> > How about networkx? That also uses the dot executable, right? And I think there's many more packages that do.\r\n> \r\n> I don't know, but nobody has complained about it. We'll look into it if somebody reports an issue.\r\n> \r\n> If there are more packages that use `dot`, they need to change from\r\n> \r\n> ```\r\n> subprocess.call(['dot'])\r\n> ```\r\n> to\r\n> \r\n> ```\r\n> subprocess.call(['dot'], shell=True)\r\n> ```\r\n> for Windows (which is a good practice anyway because it prevents opening a cmd.exe window).\r\n> \r\n> > Can you please reopen the issue? This doesn't really seem to be solved.\r\n> \r\n> This is solved. We _can't_ add `Library\\bin\\graphviz` to PATH because it would be break all packages that depend on Qt, sorry.\r\n\r\nIt works...installing \"conda install graphviz\", \"pip install graphviz\" and \"conda install python-graphviz\" in Windows + Anaconda."}}
{"actor":{"display_login":"dloperab"}}