Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pydot missing write, write_png, etc #75860

Closed
jbrearley mannequin opened this issue Oct 3, 2017 · 2 comments
Closed

pydot missing write, write_png, etc #75860

jbrearley mannequin opened this issue Oct 3, 2017 · 2 comments
Labels
extension-modules C modules in the Modules dir type-bug An unexpected behavior, bug, or error

Comments

@jbrearley
Copy link
Mannequin

jbrearley mannequin commented Oct 3, 2017

BPO 31679
Nosy @zware
Files
  • ML_ex2.py
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2017-10-03.17:13:31.921>
    created_at = <Date 2017-10-03.17:04:18.229>
    labels = ['extension-modules', 'type-bug']
    title = 'pydot missing write, write_png, etc'
    updated_at = <Date 2017-10-03.17:13:31.919>
    user = 'https://bugs.python.org/jbrearley'

    bugs.python.org fields:

    activity = <Date 2017-10-03.17:13:31.919>
    actor = 'zach.ware'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-10-03.17:13:31.921>
    closer = 'zach.ware'
    components = ['Extension Modules']
    creation = <Date 2017-10-03.17:04:18.229>
    creator = 'jbrearley'
    dependencies = []
    files = ['47186']
    hgrepos = []
    issue_num = 31679
    keywords = []
    message_count = 2.0
    messages = ['303632', '303633']
    nosy_count = 2.0
    nosy_names = ['zach.ware', 'jbrearley']
    pr_nums = []
    priority = 'normal'
    resolution = 'third party'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue31679'
    versions = ['Python 3.6']

    @jbrearley
    Copy link
    Mannequin Author

    jbrearley mannequin commented Oct 3, 2017

    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'

    @jbrearley jbrearley mannequin added extension-modules C modules in the Modules dir type-bug An unexpected behavior, bug, or error labels Oct 3, 2017
    @zware
    Copy link
    Member

    zware commented Oct 3, 2017

    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.

    @zware zware closed this as completed Oct 3, 2017
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    extension-modules C modules in the Modules dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant