[Paraview] using with python to use filter NO work only on 3.5 (I think a bug)

Jean Favre jfavre at cscs.ch
Tue May 19 09:41:57 EDT 2009


On 19, May 2009 12:13 PM, BOUSSOIR Jonathan 167706
<Jonathan.BOUSSOIR at cea.fr> wrote:

>Hi all,
>
>I am using Linux and Paraview 3.4 or 3.5. I have one question when I
>use a filter on Paraview 3.5 I have a error.
>I laught python script with pvpython (or ipython) and paraview 3.4 my
>script is running but with paraview 3.5 I have been a Attribut Error
>with :reprShrink.ColorArrayName = "Normals"
>
>I don't know why it don't understand a attribut "Normals" on paraview
>3.5

The error you are seeing with version 3.5 is due to the fact that you
loaded the python modules using the old syntax:

from paraview import servermanager

try changing it by typing:

from paraview.simple import *

and your error disappears.

Jean --
Swiss National Supercomputing Center



More information about the ParaView mailing list