python-pydot is broken

Bug #490015 reported by Emmanuel
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pydot (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

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).

Revision history for this message
Raffaele Recalcati (lamiaposta71) wrote :

Sorry, but, if I remember well, I have installed python-pydot from a not official .deb package.
Now I'm trying to recover the apt-get manager.

After Update Manager update I obtain this messages.
E: python-pydot: subprocess post-installation script returned error exit status 1

purge, remove, .. don't help me.

Any idea?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pydot (Ubuntu):
status: New → Confirmed
Revision history for this message
Maarten Bezemer (veger) wrote :

The updated version of the package (to version 1.0.28) solves the second (major) bug, the first bug is still present though.

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

it should be probably fixed since a lot of time

Changed in pydot (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

the first bug is still there

Changed in pydot (Ubuntu):
status: Invalid → New
status: New → Confirmed
Revision history for this message
Peter Nowee (peter-nowee) wrote :

Upstream issue for the first bug: https://github.com/pydot/pydot/issues/214 (should get_nodes() return also "implicit" nodes?)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.