I don't think that empty_like takes an "order" keyword argument on old versions of numpy. You should use "empty", and set the shape.