Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to install pygraphviz under Ubuntu 10.04 in order to use it 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 ?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Your script seems to be unable to find pygraphviz module. To fix that, you should make sure that pygraphviz is in your Python's sys.path.

In case you find out the module is not installed, you have alternative ways of installing it:

  • sudo apt-get install python-pygraphviz (as suggested by the error message),
  • sudo pip install pygraphviz (using pip - Python package installer, I really recommend it),
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.