Greetings,
I have the exact same issue. I am using a 64 bit version of python 2.7 and
have downloaded Graphviz 2.28. The error is the same with 'cgraph.lib' not
found under Graphviz/lib/release/lib (note the below post does have release
spelled as "realase" in the setup file under the library_path parameter).
The lib file cgraph.lib is in the release/lib folder so it is unclear why
the installer is not finding this. I am using Visual Studio 2008 and get
other errors when trying with MinGW. If someone can even point out the
python line to debug, that would be a good start (is setup.py looking in
the right folder?). The file is also in "debug/lib" but changing the
library_path to this doesn't fix it as the following person reported:
http://stackoverflow.com/questions/2798858/installing-pygraphviz-on-w...
I've got this to work on my 32 bit Windows machine and a Mac but not in 64
bit Windows.
Best,
Nathan
On Thursday, May 24, 2012 10:04:44 AM UTC-7, Karol Żeluk wrote:
> Hello!
> I try install pygraphviz on Windows 7 (x86). I already installed
> Graphviz 2.8, but i get an error :
> C:\pygraphviz\pygraphviz-1.1>python setup.py install
> library_path=c:\Program Files (x86)\Graphviz 2.28\lib\realase\lib
> include_path=c:\Program Files (x86)\Graphviz 2.28\include\graphviz
> running install
> running build
> running build_py
> copying pygraphviz\agraph.py -> build\lib.win32-2.6\pygraphviz
> running build_ext
> building 'pygraphviz._graphviz' extension
> C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL /
> nologo /INCRE
> MENTAL:NO /LIBPATH:C:\Python26\libs /LIBPATH:C:\Python26\PCbuild
> cgraph.lib cdt.
> lib /EXPORT:init_graphviz build\temp.win32-2.6\Release\pygraphviz/
> graphviz_wrap.
> obj /OUT:build\lib.win32-2.6\pygraphviz\_graphviz.pyd /IMPLIB:build
> \temp.win32-2
> .6\Release\pygraphviz\_graphviz.lib /MANIFESTFILE:build
> \temp.win32-2.6\Release\p
> ygraphviz\_graphviz.pyd.manifest "/LIBPATH:c:\Program Files
> (x86)\Graphviz 2.28\
> lib\realase\lib"
> LINK : fatal error LNK1181: cannot open input file 'cgraph.lib'
> error: command '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
> \link.exe"'
> failed with exit status 1181
> I try this: https://networkx.lanl.gov/trac/ticket/117, but it doesn't
> work.
> Thanks,
> Karol