In grakel/kernels/random_walk.py line 10: from numpy import ComplexWarning In NumPy stable version document, it should be: from numpy.exceptions import ComplexWarning