InvocationException / syntax error

101 views
Skip to first unread message

Rabe

unread,
Jul 4, 2008, 4:40:13 AM7/4/08
to pydot
I've found this *very* promising pydot yesterday and tried to
visualize data structures.
Unfortunately, both versions available exit with different error
messages :-(
With the current version 1.0.2, even my most simple example does not
work:

from pydot import *
g = Dot("Pydot1-Graph")
g.add_edge(Edge("Dog","Snoopy"))
g.write_jpeg("/home/rr/dev/uebung/pydottest1.jpg",prog="dot")

The above example does work well with v0.9.10 but 1.0.2 writes this
stack trace:

Traceback (most recent call last):
File "/home/rr/dev/uebung/pydot/pydot_test1.py", line 6, in ?
g.write_jpeg("/home/rr/dev/uebung/pydottest1.jpg",prog="dot")
File "/home/rr/dev/fremd/pydot-1.0.2/pydot.py", line 1602, in
<lambda>
lambda path, f=frmt, prog=self.prog : self.write(path, format=f,
prog=prog))
File "/home/rr/dev/fremd/pydot-1.0.2/pydot.py", line 1696, in write
dot_fd.write(self.create(prog, format))
File "/home/rr/dev/fremd/pydot-1.0.2/pydot.py", line 1794, in create
raise InvocationException(
pydot.InvocationException: Program terminated with status: 1. stderr
follows: Error: /tmp/tmpgYKc6K:1: syntax error near line 1
context: digraph >>> Pydot1- <<< Graph {

Some solution? Some API change since 0.9.10 so that I have to modify
the example ?
Thank you -
Rabe

-------------------------------------
dot version is 2.8, Python is 2.4, it's all on Debian/AMD64.
Reply all
Reply to author
Forward
0 new messages