python-bonobo / bonobo

Extract Transform Load for Python 3.5+
https://www.bonobo-project.org/
Apache License 2.0
1.58k stars 143 forks source link

AttributeError: Graph and get_cursor() #392

Closed kasteph closed 3 years ago

kasteph commented 3 years ago

Following this code sample here about divergences and forks and I am getting an AttributeError: 'Graph' object has no attribute 'get_cursor'.

Versions

kasteph commented 3 years ago

Just checked the attributes of the class with dir and it is indeed missing:

['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_repr_dot_', '_repr_html_', '_resolve_index', 'add_chain', 'add_node', 'copy', 'edges', 'graphviz', 'name', 'named', 'nodes', 'outputs_of', 'topologically_sorted_indexes']

which seems like a mismatch with the class here.

edit: get_cursor is only available for 0.7.0