You should be using scipy.linalg, not np.linalg.