What steps will reproduce the problem?
1. save http://networkx.lanl.gov/svn/pygraphviz/trunk/examples/utf8_encoding.py
on your hd
2. run "python utf8_encoding.py"
Error message:
Traceback (most recent call last):
File "utf8_encoding.py", line 11, in <module>
A.add_node(2,label=u'unicode')
File "/usr/lib/pymodules/python2.6/pygraphviz/agraph.py", line 223, in add_node
node.attr.update(**attr)
File "/usr/lib/python2.6/UserDict.py", line 164, in update
self.update(kwargs)
File "/usr/lib/python2.6/UserDict.py", line 156, in update
self[k] = v
File "/usr/lib/pymodules/python2.6/pygraphviz/agraph.py", line 1586, in __setitem__
raise "Attribute value must be a string"
TypeError: exceptions must be old-style classes or derived from BaseException,
not str
Original issue reported on code.google.com by lud...@schmidt-hackenberg.net on 29 Sep 2011 at 6:16
Original issue reported on code.google.com by
lud...@schmidt-hackenberg.net
on 29 Sep 2011 at 6:16