Open brianmay opened 5 years ago
I got the same error in these versions:
koala2=0.0.36 networkx=2.5.
The local fix I put in is to upgrade to the networkx 2.1 interface (made obsolete in networkx 2.4) -- that is, change the node to nodes.
That is, on line 45 of ast/astnodes.py
args = sorted(args,key=lambda x: ast.node[x]['pos'])
to
args = sorted(args,key=lambda x: ast.nodes[x]['pos'])
A pull request to fix this would be good :-)
If possible, a change that allows koala to continue working with networkx 2.4 preferred, as it means projects don't have to upgrade both packages at the same time.
I'm working on a pull request for this and the old openpyxl version issue.
After updating to networkx 2.4, I noticed koala2 0.0.30 is broken:
If this is fixed in a later version, of koala, then do worry about it, just close. However I suspect it may not be.