AttributeError: type object 'GeometryRepresentation' has no attribute 'InputVectors'

I generated a trace to get Q-criterion. When I run this script in python shell within the Paraview, it works fine. But when I run in terminal either using pvpython or pvbatch, I get the following error

AttributeError: type object 'GeometryRepresentation' has no attribute 'InputVectors'

Here is the script

q_criterion.py (8.3 KB)

Do you have a plugin loaded ? In any case, InputVectors does not exist on the SurfaceRepresentation, just remove the lines.

Thanks for the reply. If I delete that line, it works! Thanks.

Which Plugin I should load in case if I want to make it work that line.?

Hard to say, you would need to take a look into Tools → Manage Plugin