{"action":"created","issue":{"url":"https://api.github.com/repos/nsaphra/AMRICA/issues/1","repository_url":"https://api.github.com/repos/nsaphra/AMRICA","labels_url":"https://api.github.com/repos/nsaphra/AMRICA/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/nsaphra/AMRICA/issues/1/comments","events_url":"https://api.github.com/repos/nsaphra/AMRICA/issues/1/events","html_url":"https://github.com/nsaphra/AMRICA/pull/1","id":142532969,"number":1,"title":"Fix bug in networkx1.11 + graphviz on OS X","user":{"login":"wadkar","id":788991,"avatar_url":"https://avatars.githubusercontent.com/u/788991?v=3","gravatar_id":"","url":"https://api.github.com/users/wadkar","html_url":"https://github.com/wadkar","followers_url":"https://api.github.com/users/wadkar/followers","following_url":"https://api.github.com/users/wadkar/following{/other_user}","gists_url":"https://api.github.com/users/wadkar/gists{/gist_id}","starred_url":"https://api.github.com/users/wadkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wadkar/subscriptions","organizations_url":"https://api.github.com/users/wadkar/orgs","repos_url":"https://api.github.com/users/wadkar/repos","events_url":"https://api.github.com/users/wadkar/events{/privacy}","received_events_url":"https://api.github.com/users/wadkar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-22T03:07:13Z","updated_at":"2016-05-12T09:13:14Z","closed_at":"2016-03-28T11:57:15Z","pull_request":{"url":"https://api.github.com/repos/nsaphra/AMRICA/pulls/1","html_url":"https://github.com/nsaphra/AMRICA/pull/1","diff_url":"https://github.com/nsaphra/AMRICA/pull/1.diff","patch_url":"https://github.com/nsaphra/AMRICA/pull/1.patch"},"body":"When run with a simple AMR input, I get:\nTraceback (most recent call last):\n  File \"./disagree.py\", line 317, in <module>\n    monolingual_main(args)\n  File \"./disagree.py\", line 199, in monolingual_main\n    ag = nx.to_agraph(g)\nAttributeError: 'module' object has no attribute 'to_agraph'\n\nThis seems to be caused by a bug \"in the `draw_graphviz` function in\nnetworkx-1.11 triggered by the change that the graphviz drawing tools\nare no longer imported into the top level namespace of networkx\"\n\nSee: http://stackoverflow.com/a/35280794/800207\n\nThis commit fixese the issue by replacing direct `nx.to_agraph()` call\nwith appropriate full path calls.\n\nI tried reproducing the error on Ubuntu but did not succeed.\nI am creating this PR in case somebody else faces similar issue."},"comment":{"url":"https://api.github.com/repos/nsaphra/AMRICA/issues/comments/218702457","html_url":"https://github.com/nsaphra/AMRICA/pull/1#issuecomment-218702457","issue_url":"https://api.github.com/repos/nsaphra/AMRICA/issues/1","id":218702457,"user":{"login":"nsaphra","id":414788,"avatar_url":"https://avatars.githubusercontent.com/u/414788?v=3","gravatar_id":"","url":"https://api.github.com/users/nsaphra","html_url":"https://github.com/nsaphra","followers_url":"https://api.github.com/users/nsaphra/followers","following_url":"https://api.github.com/users/nsaphra/following{/other_user}","gists_url":"https://api.github.com/users/nsaphra/gists{/gist_id}","starred_url":"https://api.github.com/users/nsaphra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsaphra/subscriptions","organizations_url":"https://api.github.com/users/nsaphra/orgs","repos_url":"https://api.github.com/users/nsaphra/repos","events_url":"https://api.github.com/users/nsaphra/events{/privacy}","received_events_url":"https://api.github.com/users/nsaphra/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T09:13:14Z","updated_at":"2016-05-12T09:13:14Z","body":"I'd love to get a PR that works with the current version, thanks! (Sorry\nfor late response.)\nOn Wed, May 4, 2016 at 07:22 Sudarshan Wadkar <notifications@github.com>\nwrote:\n\n> Found the culprit: networkx dependency should be networkx==1.8\n>\n> It appears that networkx doesn't follow *semantic versioning*. So going\n> from 1.8 to 1.9 causes some API breaking changes\n> <http://networkx.readthedocs.io/en/networkx-1.11/reference/api_1.9.html#miscellaneous-changes>\n> such as this call\n> <https://github.com/nsaphra/AMRICA/blob/master/disagree.py#L190> to\n> json_graph.dumps(g) is invalid.\n>\n> When I did a pip uninstall networkx && pip install networkx==1.8\n> everything worked fine. Let me know if you're interested in PRs that work\n> with current version of networkx. In the meantime, could you please update\n> the README.md to show dependency on networkx version 1.8? I rather not\n> create a separate issue/PR for this.\n>\n> —\n> You are receiving this because you modified the open/close state.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/nsaphra/AMRICA/pull/1#issuecomment-216757030>\n>\n"}}