NaN was changed to nan in recent Numpy versions. Need to modify tutorial or set specific version to older ones in requiremenets.txt