Public bug reported:

The pydot package seems broken on Ubuntu 9.10.
Affects both python2.5 and 2.6.

Two major bugs:

1)
import pydot
edges=[('1','2'), ('1','3')]
print pydot.graph_from_edges(edges).get_node_list()
[]

(empty list instead of a list with 3 nodes)

2) 
import pydot
edges=[(1,2), (1,3)]
g = pydot.graph_from_edges(edges)

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/pydot.py", line 237, in graph_from_edges
    e = Edge( node_prefix + edge[0], node_prefix + edge[1] )
TypeError: cannot concatenate 'str' and 'int' objects

(the documentation in http://dkbza.org/pydot/pydot.html states that this 
function accepts a list of tuples
and the values can be anything: bool, int, float, str).

** Affects: pydot (Ubuntu)
     Importance: Undecided
         Status: New

-- 
python-pydot is broken
https://bugs.launchpad.net/bugs/490015
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to