pombreda / pydot

Automatically exported from code.google.com/p/pydot
MIT License
0 stars 0 forks source link

Empty Output File #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Ero,

I am running pydot on Mac OS X 10.5.1 and am experiencing the empty output
file problem as described in
http://code.google.com/p/pydot/wiki/EmptyOutputFiles.

I added the path to graphviz to my path and the executables are being
found.  This was verified via a debugger by stepping through the pydot
source code.

The source of my problem is the statement "data = stdout.read()" in
Dot.create() is not returning anything and thus "data" has no value.

I examined the temporary file referenced by stdout and verified that it
contains data.

I am running with the following versioned software:

  * pydot - 0.9.10
  * graphviz - 2.14
  * python - 2.5

Keith

Original issue reported on code.google.com by kscho...@cisco.com on 18 Dec 2007 at 9:34

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
1.0.2 should address this issue.

Original comment by ero.carr...@gmail.com on 14 Feb 2008 at 10:08