can't install pygraphviz on ubuntu

7,342 views
Skip to first unread message

darshan

unread,
May 28, 2009, 11:26:21 AM5/28/09
to pygraphviz-discuss
Hi,

I am a newbie on ubuntu as well as pygraphviz

When I try to install pygraphviz it says it can't find graphviz
I already installed graphviz through
sudo apt-get install graphviz

Please help

Darshan


$ sudo easy_install pygraphviz
Searching for pygraphviz
Reading http://pypi.python.org/simple/pygraphviz/
Reading http://networkx.lanl.gov/pygraphviz
Reading http://networkx.lanl.gov/wiki/download
Reading http://sourceforge.net/project/showfiles.php?group_id=122233&package_id=161979
Reading http://networkx.lanl.gov/download
Best match: pygraphviz 0.99.1
Downloading http://pypi.python.org/packages/source/p/pygraphviz/pygraphviz-0.99.1.zip#md5=33a9d11592a10dd0e9de6d587db5b101
Processing pygraphviz-0.99.1.zip
Running pygraphviz-0.99.1/setup.py -q bdist_egg --dist-dir /tmp/
easy_install-JdTYf0/pygraphviz-0.99.1/egg-dist-tmp-DxQ32i
Trying pkg-config
Package libcgraph was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcgraph.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcgraph' found
Package libcgraph was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcgraph.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcgraph' found
Trying dotneato-config
Failed to find dotneato-config

Your graphviz installation could not be found.

Either the graphviz package is missing on incomplete
(binary packages graphviz-dev or graphviz-devel missing?).

If you think your installation is correct you will need to manually
change the include_path and library_path variables in setup.py to
point to the correct locations of your graphviz installation.

The current setting of library_path and include_path is:
library_path=None
include_path=None

error: None

Aric Hagberg

unread,
May 28, 2009, 11:58:47 AM5/28/09
to pygraphvi...@googlegroups.com
On Thu, May 28, 2009 at 9:26 AM, darshan <singh....@gmail.com> wrote:
>
> Hi,
>
> I am a newbie on ubuntu as well as pygraphviz
>
> When I try to install pygraphviz it says it can't find graphviz
> I already installed graphviz through
> sudo apt-get install graphviz

It looks like in the latest Ubuntu releases the graphviz package is
now split between
graphviz
libgraphviz-dev
libgraphviz4

You will need to install all of those.

Aric

darshan

unread,
May 28, 2009, 12:24:40 PM5/28/09
to pygraphviz-discuss
Thanks.

I got past earlier error. But got new ones.

.....
Trying pkg-config
library_path=
include_path=/usr/include/graphviz
warning: no files found matching '*.edgelist' under directory
'examples'
warning: no files found matching '*.mbox' under directory 'examples'
warning: no files found matching '*.bz2' under directory 'examples'
warning: no files found matching '*.png' under directory 'doc'
warning: no previously-included files matching '*~' found anywhere in
distribution
warning: no previously-included files matching '*.pyc' found anywhere
in distribution
warning: no previously-included files matching '.svn' found anywhere
in distribution
no previously-included directories found matching 'doc/build'
pygraphviz/graphviz_wrap.c:118:20: error: Python.h: No such file or
directory
pygraphviz/graphviz_wrap.c:723: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘*’ token
pygraphviz/graphviz_wrap.c:778: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘*’ token
pygraphviz/graphviz_wrap.c:799: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘*’ token
pygraphviz/graphviz_wrap.c: In function ‘SWIG_Python_AddErrorMsg’:

....

On May 28, 11:58 am, Aric Hagberg <aric.hagb...@gmail.com> wrote:

Aric Hagberg

unread,
May 28, 2009, 1:52:33 PM5/28/09
to pygraphvi...@googlegroups.com
On Thu, May 28, 2009 at 10:24 AM, darshan <singh....@gmail.com> wrote:
>
> Thanks.
>
> I got past earlier error. But got new ones.
>

Looks like you need the python2.x-dev package too
where 2.x is your python version.

Aric

Reply all
Reply to author
Forward
0 new messages