Open GoogleCodeExporter opened 9 years ago
Hi Ero,
Looks like the problem was that I had specified an output format of jpg which
was not
supported. I changed to a format of PDF and it worked.
Keith
Original comment by kscho...@cisco.com
on 18 Dec 2007 at 9:57
Hi Ero,
Let me requalify my last comment. I ran the dot command from the command line
that
pydot attempted to execute to generate the desired jpg file. From this I saw
that
the jpg format was not supported. I replaced jpg with pdf and it ran correctly
from
the command line. However, I observed in the pydot code that pdf is not a
supported
version. So I was not able to generate a pdf file unless I modified the list of
formats to include 'pdf'.
It would be nice if you could check to make sure graphviz supports the user
specified
format and throw an exception if it is not supported. If graphviz provides a
means
to get the list of supported versions you may want to consider generating a
dynamic
list of supported formats based on what graphviz supports. This would
eliminate any
possible inconsistencies between various OS's and/or versions of pydot and
graphviz.
Thanks,
Keith
Original comment by kscho...@cisco.com
on 18 Dec 2007 at 10:17
Hi,
Thanks for taking the time to report this issue so informatively. The next
release of pydot (which is long due
and will soon be coming out) will provide with informative error messages when
a format is not supported.
It seems that dot/neato/twopi can report the supported formats when invoked
with the verbose flag yet I
prefer not to trust that as I can't test it in all platforms. I think I'll
stick with throwing an informative
exception.
--
Ero Carrera
Original comment by ero.carr...@gmail.com
on 19 Dec 2007 at 8:42
1.0.2 should address this issue.
Original comment by ero.carr...@gmail.com
on 14 Feb 2008 at 10:08
Original issue reported on code.google.com by
kscho...@cisco.com
on 18 Dec 2007 at 9:34