ansible-roles-graph
ansible-roles-graph copied to clipboard
Unable to use ansible-roles-graph
When installing with pip and ten trying to run the ansible-roles-graph -help command it fails with import error, no module named gv. Can you please update your documentation to state what needs to be installed for this to work. There are a lot of people trying to use this and failing with no answers, please either add to the documentation, or update the setup.py file to install the gv as a dependency.
Thank you
FYI I've had to install the package libgv-python
via apt on Ubuntu. After that, I could call the program properly.
Thanks @HontoNoRoger for the tip! On openSUSE the equivalent package is called graphviz-python
.
@nicovanniekerk Maybe worth renaming this issue to ImportError: No module named 'gv'
to disambiguate from other usage issues.
Cannot seem to get it working on my Mac. It still complains about missing gv
. I tried to find a library using brew search gv
and also inside pip pip search gv
and nothing seems to work for me. Any ideas?
I can't help with this project but I can suggest that you might want to also try ansible-viz. I originally tried ansible-roles-graph before discovering ansible-viz which is quite a lot more sophisticated. Then I accidentally inherited the project and became the maintainer ;-)
In Ubuntu 20.04 with Python 3 you need to install the python3-gv
package and then run pip3 install ansible-roles-graph