ansible-roles-graph icon indicating copy to clipboard operation
ansible-roles-graph copied to clipboard

Unable to use ansible-roles-graph

Open nicovanniekerk opened this issue 7 years ago • 6 comments

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

nicovanniekerk avatar Jul 31 '17 13:07 nicovanniekerk

FYI I've had to install the package libgv-python via apt on Ubuntu. After that, I could call the program properly.

HontoNoRoger avatar Dec 06 '17 10:12 HontoNoRoger

Thanks @HontoNoRoger for the tip! On openSUSE the equivalent package is called graphviz-python.

aspiers avatar Dec 06 '17 11:12 aspiers

@nicovanniekerk Maybe worth renaming this issue to ImportError: No module named 'gv' to disambiguate from other usage issues.

aspiers avatar Dec 06 '17 11:12 aspiers

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?

ansiblejunky avatar Aug 10 '18 16:08 ansiblejunky

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 ;-)

aspiers avatar Aug 11 '18 13:08 aspiers

In Ubuntu 20.04 with Python 3 you need to install the python3-gv package and then run pip3 install ansible-roles-graph

xanni avatar Jul 28 '20 10:07 xanni