Closed yzongy closed 2 years ago
Hi Bill,
looks like you don't have Graphviz installed. You are on Windows, right?
Hi,
Thanks for your quick reply. I am on Mac and have installed graphviz 2.50.0
The command /usr/bin/fdp
is missing. fdp
is the default layout engine. What happens when you call fdp
in the terminal? What happens when you call dot
in the terminal? What happens when you change the layout engine to dot?
igraph2image(igraph, "test_simpleModel.pdf", layout_engine="dot")
Hi Hannes,
I tried all engines one by one but still not working.
Are there any other approaches for visualisation?
Best,
Bill
What happens when you type dot
in the terminal?
Hi Hannes,
It did work when fdp or dot was called in the terminal, which printed XML file from a dot file: $ fdp -Tsvg irma.dot
Right. So you can use pyboolnet to create the dot file and then call fdp
or dot
yourself from the command line.
If you want to create the pdf from pyboolnet you need to find out the path for the layout engines e.g. fdp
and dot
and make changes to the settings.cfg
file.
Find out the path to your layout engines by calling $which fdp
or $whereis fdp
.
The settings.cfg
file is in the pyboolnet directory on your computer. You can find out where you have pyboolnet installed by importing pyboolnet and calling .__file__
on it:
$ python3
>>> import pyboolnet
>>> pyboolnet.__file__
~/lib/python3.8/site-packages/pyboolnet
The settings file will then be located in
~/lib/python3.8/site-packages/pyboolnet/binaries/settings.cfg
It works! Thanks for your time and step by step guidance!
Best,
Bill
Great. Let me know if anything else comes up.
Hi, I was running:
and got this error:
I would be very grateful if you could guide me through it.
Best,
Bill