vinci1it2000/schedula

Schedula broke with latest networx 2.4 due to dropped graph.node attribute

Closed this issue · 1 comments

Recently released networkx-2.4 (16 Oct 2019) broke schedula due to removal of deprecated methods: https://networkx.github.io/documentation/stable/release/release_2.4.html#deprecations:

  File "/home/user/Work/co2mpas.git/co2mpas/cli/__init__.py", line 133, in plot
    ['plot', 'done']
  File "/usr/lib/python3.7/site-packages/schedula/utils/blue.py", line 127, in __call__
    return self.register(memo={})(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/schedula/dispatcher.py", line 1682, in __call__
    return self.dispatch(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/schedula/dispatcher.py", line 1673, in dispatch
    sol._run(stopper=stopper, executor=executor)
  File "/usr/lib/python3.7/site-packages/schedula/utils/sol.py", line 291, in _run
    if not sol._visit_nodes(v, d, fringe, check_cutoff, **ctx):
  File "/usr/lib/python3.7/site-packages/schedula/utils/sol.py", line 950, in _visit_nodes
    if not self._set_node_output(node_id, no_call, **kw):  # Set output.
  File "/usr/lib/python3.7/site-packages/schedula/utils/sol.py", line 577, in _set_node_output
    next_nds, **kw)
  File "/usr/lib/python3.7/site-packages/schedula/utils/sol.py", line 678, in _set_data_node_output
    value = async_thread(self, args, node_attr, node_id, sf, **kw)
  File "/usr/lib/python3.7/site-packages/schedula/utils/asy.py", line 240, in async_thread
    return sol._evaluate_node(args, node_attr, node_id, *a, **kw)
  File "/usr/lib/python3.7/site-packages/schedula/utils/sol.py", line 613, in _evaluate_node
    attr = self.workflow.node[node_id]
AttributeError: 'DiGraph' object has no attribute 'node'

figurati