cbpinheiro at ufmg.br
Wed Sep 23 18:50:50 CEST 2015
I am a not experienced user o Python, but in order to run an application that requires Python,
I am trying to install some modules in my OS X Yosimite 10.10.5.
The application requires the following modules
utidylib , matplotlib, levenshtein, pygraphviz , numpy, tidy , scipy, imaging , mechanize
Everything but pygraphviz were installed smoothly.
Indeed to install pygraphviz I first installed graphviz using homebrew (library was placed in /usr/local/lib)
>> brew install graphviz
>> Warning: graphviz-2.38.0 already installed
To install pygraphviz i used
>> python setup.py install --prefix=/usr/local/lib/graphviz/
And I got the following error message,
sh-3.2# python setup.py install --prefix=/usr/local/lib/graphviz/
writing top-level names to pygraphviz.egg-info/top_level.txt
writing dependency_links to pygraphviz.egg-info/dependency_links.txt
reading manifest file 'pygraphviz.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
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'
writing manifest file 'pygraphviz.egg-info/SOURCES.txt'
building 'pygraphviz._graphviz' extension
cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -I/usr/local/Cellar/graphviz/2.38.0/include/graphviz -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pygraphviz/graphviz_wrap.c -o build/temp.macosx-10.10-intel-2.7/pygraphviz/graphviz_wrap.o
pygraphviz/graphviz_wrap.c:2954:10: fatal error: 'graphviz/cgraph.h' file not found
1 error generated.
error: command 'cc' failed with exit status 1
Can you help me to overcome this error?
More information about the docs