masfaraud / BMSpy

Python Block-Model Simulator. An alternative to simulink in python.
GNU Lesser General Public License v3.0
222 stars 36 forks source link

Networkx needs to be < 2.0 #10

Closed AlexisTM closed 5 years ago

AlexisTM commented 6 years ago

Networkx 2.0 removed the reverse argument to the topological sorting.

AlexisTM commented 6 years ago

Tested with networkx 1.11 on Python2

sudo pip install "networkx<2.0"
AdoHaha commented 6 years ago

I have similar bug, error when running the examples: TypeError: topological_sort() got an unexpected keyword argument 'reverse'

AlexisTM commented 6 years ago

@AdoHaha Simply run:

sudo pip install "networkx<2.0"

To install networkx less than 2.0

masfaraud commented 6 years ago

Hi, I have added Networkx dependency as >2.0 and removed the reverse=False argument. Can you guys tell if the problem is solved on your side? Thanks!

masfaraud commented 5 years ago

Should be fix in v0.1.2