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

graphviz #9

Open
kobuworks opened this issue Dec 2, 2021 · 2 comments
Open

graphviz #9

kobuworks opened this issue Dec 2, 2021 · 2 comments

Comments

@kobuworks
Copy link

kobuworks commented Dec 2, 2021

Hi,
graphviz is available, however following error occurs, does anyone have BKM?

$ sudo python3 pigasus.py 
Traceback (most recent call last):
  File "pigasus.py", line 19, in <module>
    from fluid.visualizer import *
  File "/home/kobu/kobuworks/pigasus/fluid/visualizer.py", line 1, in <module>
    from graphviz import Graph, Digraph
ModuleNotFoundError: No module named 'graphviz'

thanks,
BR/Kobu

@hsadok
Copy link
Member

hsadok commented Dec 4, 2021

Have you tried running the following?

sudo python3 -m pip install graphviz

@sidsahay
Copy link
Collaborator

sidsahay commented Dec 5, 2021

Oh, I see the potential problem, if you have a modern version of PyGraphviz (around 1.3+)?. Turns out we were using an older version of PyGraphviz. In newer versions, PyGraphviz expects from pygraphviz import AGraph and has a slightly different API. I will update this, meanwhile you can comment out
from fluid.visualizer import * on line 19 of pigasus.py and
pass_manager.add_pass(generate_visualizer_pass(VisualizerType.DEFAULT)) on line 685 of pigasus.py
to disable the visualizer. It will still generate designs.

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

3 participants