pombreda / python-graph

Automatically exported from code.google.com/p/python-graph
Other
0 stars 0 forks source link

The examples/utf8_encoding.py does not work for me. #100

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
This example is for NetworkX, not for python-graph.

Original comment by pmatiello on 29 Sep 2011 at 10:35