I have the following array:
X = np.array([image_array_to_vector1,image_array_to_vector2,image_array_to_vector3,image_array_to_vector4])
A p
I had the same error message, and it appeared that the problem was with arrays having different length. So you need to be sure to give the np.savetxt arrays of equal length.