uwescience / raco

Compilation and rule-based optimization framework for relational algebra. Raco is the language, optimization, and query translation layer for the Myria project.
Other
72 stars 19 forks source link

NetworkX regression from version 1.11 to 2.0b1 causes notebook queries to not work #572

Closed orzikhd closed 6 years ago

orzikhd commented 6 years ago

Starting a new cluster right now and running a MyriaL query in a jupyter notebook gives the error AttributeError: 'DiGraph' object has no attribute 'node'. This is because in version 2.0b1 of NetworkX the attribute is nodes, not node. Queries still work in the myria-web editor though. This issue can be fixed on individual clusters by running the following and then sudo restart myria from the coordinator:

myria-cluster exec [cluster-name] --command 'sudo pip uninstall networkx -y'
myria-cluster exec [cluster-name] --command 'sudo pip install networkx'

Pip installs version 1.11, which is what was previously used, and works fine.

Either RACO needs to be updated to use the 2.0b1 nodes call or myria-cluster create needs to give clusters the correct version of NetworkX

senderista commented 6 years ago

fixed in aaa68b40, please confirm