Guys, any one ran into an issue of running Graph model of web2py in
windows?
I get the following error:
....r\lib\site-packages\pygraphviz\agraph.py", line 481, in add_edge
eh = gv.agedge(self.handle, uh, vh, key, _Action.find)
KeyError: 'agedge: no key'
*Steps I have taken to install the packages are following (Thank you
Leonel):*
1. Install graphviz from here
http://www.graphviz.org/pub/graphviz/stable/windows/graphviz-2.38.msi
2. Downloaded wheel source from https://pypi.python.org/pypi/wheel
3. Unpacked the zip and got a folder C:\Usersl\Desktop\wheel-0.29.0
4. In a command line:
4.1 cd C:\Users\Desktop\wheel-0.29.0
4.2 python setup.py bdist_wininst
5. Step 4 made an installer for me that is now
in C:\Users\Desktop\wheel-0.24.0\dist
6. Having wheel installed download the right version wheel of pygraphviz
(pygraphviz-1.3.1-cp27-none-win_amd64.whl for me) from here
http://www.lfd.uci.edu/~gohlke/pythonlibs/
<http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygraphviz> (I was able to
install and when I do import pygraphviz it doesn't complain)
7. With a command line In the directory where the whl file is "pip install
pygraphviz-1.3rc2-cp27-none-win32.whl"
8. Add C:\Program Files (x86)\Graphviz2.38\bin to the PATH
9. Restart web2py, if you ran web2py from a command line, make sure to
start it in a new one which has PATH updated.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.