Code Monkey home page Code Monkey logo

Comments (3)

ChiuYuen-HSUI avatar ChiuYuen-HSUI commented on May 20, 2024

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.

from pomdp-py.

zkytony avatar zkytony commented on May 20, 2024

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.

from pomdp-py.

zkytony avatar zkytony commented on May 20, 2024

Feel free to reopen when there's any update.

from pomdp-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.