Skip to content
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

Visualization errors of dot #6

Closed
ChiuYuen-HSUI opened this issue Aug 16, 2020 · 3 comments
Closed

Visualization errors of dot #6

ChiuYuen-HSUI opened this issue Aug 16, 2020 · 3 comments

Comments

@ChiuYuen-HSUI
Copy link

No description provided.

@ChiuYuen-HSUI
Copy link
Author

I can't visualize tiger problem results encountering errors as follows:

`OSError Traceback (most recent call last)
in
7 test_planner(tiger_problem, pouct, nsteps=10)
8
----> 9 pomdp_py.visual.visualize_pouct_search_tree(tiger_problem.agent.tree,
10 max_depth=5, anonymize=False)
11

d:\documents\studying\literature\decision\pomdp-py-1.2\pomdp_py\algorithms\visual\visual.py in visualize_pouct_search_tree(root, max_depth, visit_threshold, anonymize, anonymize_actions, anonymize_observations, output_file, use_dot, ax)
121 edge_widths = [edge[2]["weight"] for edge in G.edges(data=True)]
122
--> 123 pos = graphviz_layout(G, prog='dot')
124 nx.draw_networkx(G, pos,
125 node_color=color_map, labels=node_labels,

E:\Software\Anaconda\lib\site-packages\networkx\drawing\nx_agraph.py in graphviz_layout(G, prog, root, args)
241 This is a wrapper for pygraphviz_layout.
242 """
--> 243 return pygraphviz_layout(G, prog=prog, root=root, args=args)
244
245

E:\Software\Anaconda\lib\site-packages\networkx\drawing\nx_agraph.py in pygraphviz_layout(G, prog, root, args)
288 args += "-Groot=%s" % root
289 A = to_agraph(G)
--> 290 A.layout(prog=prog, args=args)
291 node_pos = {}
292 for n in G:

E:\Software\Anaconda\lib\site-packages\pygraphviz\agraph.py in layout(self, prog, args)
1397 """
1398 fmt = 'dot'
-> 1399 data = self._run_prog(prog, ' '.join([args, "-T", fmt]))
1400 self.from_string(data)
1401 self.has_layout = True

E:\Software\Anaconda\lib\site-packages\pygraphviz\agraph.py in _run_prog(self, prog, args)
1362
1363 if not data:
-> 1364 raise IOError(b"".join(errors).decode(self.encoding))
1365
1366 if len(errors) > 0:

OSError: Format: "dot" not recognized. Use one of:`

It seems like my situation is similar to https://stackoverflow.com/questions/57143087/pygraphviz-oserror-format-dot-not-recognized-use-one-of. Do you have any suggestions for this?

Thanks for your kindly considering.

@ChiuYuen-HSUI ChiuYuen-HSUI changed the title Visualization errors of Visualization errors of dot Aug 16, 2020
@zkytony
Copy link
Collaborator

zkytony commented Aug 16, 2020

I'm not sure why this happens. What's your OS? I am on Ubuntu 16.04, using networkx 2.4.3 and pygraphviz 1.5.

@zkytony
Copy link
Collaborator

zkytony commented Sep 19, 2020

Feel free to reopen when there's any update.

@zkytony zkytony closed this as completed Sep 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants