I'm sorry you are having so much trouble. Here is some info that
I think will help you get it working.
Starting with pygraphviz-0.99.1 we switched from using the Graphviz
libagraph to libcgraph. Apparently libagraph is being phased out.
So get a recent version of PyGraphviz that uses libcgraph.
If you can, grab the latest source from
http://networkx.lanl.gov/download/pygraphviz/
or from the subversion repository. There have been a few small
fixes since the 0.99.1 release so use the dev tarball if you want those.
I have tested the following two OSX graphviz packages and they both
work with the latest development version of PyGraphviz
1) The OSX dmg from http://graphviz.org/Download_macos.php
Unfortunately libcgraph seems to be missing in the "stable" version
at that URL.
So get the latest version (which today is):
http://graphviz.org/pub/graphviz/development/macos/leopard/graphviz-2.21.20090217.0545.pkg
2) The fink unstable repository with graphviz-2.18-2
http://pdb.finkproject.org/pdb/package.php/graphviz
Make sure you install the -dev and -shlibs packages too:
$ fink list graphviz
Information about 7751 packages read in 2 seconds.
i graphviz 2.18-2 Graph visualization software
i graphviz-dev 2.18-2 development files for graphviz
i graphviz-shlibs 2.18-2 Graph visualization software
After you get those installed unpack the pygraphviz source tar file
and run "python setup.py install".
In both cases the PyGraphviz setup.py autodetected the correct library
and include file paths for me.
Aric
Is this the Darwin ports install location?
For the packages I mentioned,
fink puts the files in
/sw/lib
/sw/include/graphviz
and the dmg puts files in
/usr/local/lib
/usr/local/include/graphviz
You might try to removing the (potentially broken?) version in
/opt or editing the search path by hand (see setup.py).
Aric
That should be a FAQ - I'll add it.
I'm not completely sure how the eggs work for C extension code.
It must have to check for matching compiler Graphviz and Python setup?
Aric