[Tutor] Query regarding file conversion - DOT files

Alan Gauld alan.gauld at yahoo.co.uk
Wed Jan 8 16:25:30 EST 2020


On 08/01/2020 17:38, Niharika Jakhar wrote:
> No, it doesn't work for me.
> Error:
> graph.write_png('hellow.png')
> 
> AttributeError: 'list' object has no attribute 'write_png'

Please post the full error trace, not just the last line.

Also note that Robert suggested changing the tuple on
the left side, not the function call:

>> graph = pydot.graph_from_dot_file('hello.dot’)


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