[Tutor] Query regarding file conversion - DOT files

Alan Gauld alan.gauld at yahoo.co.uk
Wed Jan 8 12:42:15 EST 2020


On 08/01/2020 12:56, Niharika Jakhar wrote:

> I came across pydot for this and tried following:
> #####code####
> import os
> import pydot
> (graph,) = pydot.graph_from_dot_file('hello.dot')
> graph.write_png('hellow.png')
> 
> Error:
>  assert process.returncode == 0, process.returncode
> 
> AssertionError: 1

Please, always post the full error trace, do not summarize
or shorten it. They contain a lot of useful detail and
without it we are only making guesses.

Also, for specialist libraries that are not part of
the python core, it is always worth contacting the
package maintainer or support forum. They will have
more experience than us.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos



More information about the Tutor mailing list