Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable to use django-extensions with pygraphviz

I'm trying to use pygraphviz under Ubuntu 10.04 within my Django projects.

I used synaptic and it was installed without any problem.

I also installed django-extensions with synaptic (django-extensions has a tool that uses pygraphviz and this is the one that I need)

Now when I try to use django-extensions with pygraphviz

$ python manage.py graph_models -a -g -o model.png

I'm getting an

Error: need pygraphviz python module ( apt-get install python-pygraphviz )

How can I fix this ?

like image 703
Pierre de LESPINAY Avatar asked Dec 04 '22 21:12

Pierre de LESPINAY


2 Answers

I was facing the same problem on an Ubuntu 14.04 machine and I solved it installing the missing packages as follows:

sudo apt-get install graphviz-dev
sudo pip install pygraphviz
like image 105
Caumons Avatar answered Dec 07 '22 09:12

Caumons


Just install python-pygraphviz with synaptic the same way you did pygraphvis and django-extensions.

like image 40
agf Avatar answered Dec 07 '22 09:12

agf