This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: pydot missing write, write_png, etc
Type: behavior Stage: resolved
Components: Extension Modules Versions: Python 3.6
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: jbrearley, zach.ware
Priority: normal Keywords:

Created on 2017-10-03 17:04 by jbrearley, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
ML_ex2.py jbrearley, 2017-10-03 17:04
Messages (2)
msg303632 - (view) Author: John Brearley (jbrearley) Date: 2017-10-03 17:04
I have successfully installed Graphviz tool from http://graphviz.org, updated my PATH variable appropriately and can generate .PNG files using Python module Graphviz with WinPython 3.6.1. However, I cannot get anywhere using the pydot V1.2.3 module in the same environment. 

The online help suggests that there there are write & write_png members but I can find no trace of them. My sample script is attached. The error I get is:

Traceback (most recent call last):
  File "ML_ex2.py", line 109, in <module>
    graph.write(path=out_fn, format="png")
AttributeError: 'list' object has no attribute 'write'
msg303633 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2017-10-03 17:13
pydot is not part of the standard library; you'll need to find their issue tracker (looks like maybe https://github.com/erocarrera/pydot/issues?) and open a ticket there.
History
Date User Action Args
2022-04-11 14:58:53adminsetgithub: 75860
2017-10-03 17:13:31zach.waresetstatus: open -> closed

nosy: + zach.ware
messages: + msg303633

resolution: third party
stage: resolved
2017-10-03 17:04:18jbrearleycreate