export_to_dot fails with networkx >= 1.11

Bug #1561656 reported by Michael Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
taskflow
Fix Released
High
Michael Johnson

Bug Description

networkx has changed the way they handle pydot libraries, including moving to pydotplus.

With networkx >= 1.11 TaskFlow will error out with:

Traceback (most recent call last):
  File "tools/dump_taskflow_flows.py", line 82, in <module>
    main()
  File "tools/dump_taskflow_flows.py", line 79, in main
    current_engine.compilation.execution_graph.export_to_dot())
  File "/Data/projects/documentflows/octavia/.tox/docs/local/lib/python2.7/site-packages/taskflow/types/graph.py", line 117, in export_to_dot
    return nx.to_pydot(self).to_string()
AttributeError: 'module' object has no attribute 'to_pydot'

Changed in taskflow:
assignee: nobody → Michael Johnson (johnsom)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to taskflow (master)

Fix proposed to branch: master
Review: https://review.openstack.org/297275

Changed in taskflow:
status: New → In Progress
Joshua Harlow (harlowja)
Changed in taskflow:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to taskflow (master)

Reviewed: https://review.openstack.org/297275
Committed: https://git.openstack.org/cgit/openstack/taskflow/commit/?id=720ee3792dc45f514d82108f217bb99e538ef98b
Submitter: Jenkins
Branch: master

commit 720ee3792dc45f514d82108f217bb99e538ef98b
Author: Michael Johnson <email address hidden>
Date: Thu Mar 24 17:45:38 2016 +0000

    Fix export_to_dot for networkx package changes

    The networkx package changed the way they to_pydot works [1].
    This patch updates TaskFlow to work with the newer version.

    [1] https://github.com/networkx/networkx/commit/f5031dd9c6c1f4b63082c192e1887ea044109aaa

    Change-Id: I99f87af0b2bed959fcb43ef611b3186e23bd9549
    Closes-Bug: #1561656

Changed in taskflow:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/taskflow 1.31.0

This issue was fixed in the openstack/taskflow 1.31.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to taskflow (master)

Fix proposed to branch: master
Review: https://review.openstack.org/318996

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on taskflow (master)

Change abandoned by Michael Johnson (<email address hidden>) on branch: master
Review: https://review.openstack.org/318996
Reason: Another patch already includes this fix: https://review.openstack.org/#/c/297784

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to taskflow (master)

Reviewed: https://review.openstack.org/297784
Committed: https://git.openstack.org/cgit/openstack/taskflow/commit/?id=8c2d73bc23fb377f6640494770efa115907d228e
Submitter: Jenkins
Branch: master

commit 8c2d73bc23fb377f6640494770efa115907d228e
Author: Joshua Harlow <email address hidden>
Date: Fri Mar 25 10:36:01 2016 -0700

    Add a simple sanity test for pydot outputting

    Depends-On: Ia633ccd1dca94f70b05ae4376a1c3a3f252a9923

    Related-Bug: #1561656

    Change-Id: I930a1ee9c1d17a12328d920bbe02ea0b77947295

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.