pvpython

Hi,

I am having trouble using pvpython with a python script recorded from within ParaView. The script works perfectly if I run it using ParaView’s python script window. However, the same script returns errors if I run it using the pvpython command.

For instance, one of the error messages returned was:

"TypeError: Show() takes from 0 to 2 positional arguments but 3 were given"

The appears to be referring to the second line below.

# show data in view
current_VTK_P00_00Display = Show(current_VTK_P00_00, renderView1, 'UniformGridRepresentation')

However, that line has 3 arguments as recorded by Paraview.

Is there a known problem with these programs working together, or am I missing something?

I think my actual python version is python3. Also, I am not very experienced with python or Paraview yet.

Thanks very much.

Ian

Are you using the same version of ParaView here ?