Package: python-pydot Version: 1.0.2-1 Severity: normal
With a graph created with these options: self.dot_graph = pydot.Graph(graph_name="MC", graph_type="digraph", simplify=True, rankdir="LR") When I save by using the to_string() method, I get the following crash: Traceback (most recent call last): File "main.py", line 37, in <module> mc.graph.saveToFile("graph.dot") File "/opt/venza/openflow/model_checker_cmc/lib/model_checker.py", line 45, in saveToFile print >>f, self.dot_graph.to_string() File "/usr/lib/pymodules/python2.6/pydot.py", line 1458, in to_string if self.obj_dict.get('simplify', False) and elm in edges_done: NameError: global name 'elm' is not defined If I change "elm" to "edge" in line 1458 of pydot.py, the crash goes away. -- System Information: Debian Release: 6.0.2 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/48 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages python-pydot depends on: ii graphviz 2.26.3-5 rich set of graph drawing tools ii python 2.6.6-3+squeeze6 interactive high-level object-orie ii python-pyparsing 1.5.2-2 Python parsing module ii python-support 1.0.10 automated rebuilding support for P python-pydot recommends no packages. python-pydot suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org