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

Berk Geveci berk.geveci at kitware.com
Thu May 21 20:31:28 EDT 2009


I started updating http://paraview.org/Wiki/ParaView/Python_Scripting
to reflect the changes to the Python API coming in 3.6. We hope that
this will make it much easier for everyone to use ParaView from
Python. We are also working on the ability to save trace and state as
Python scripts.

-berk

On Tue, May 19, 2009 at 9:41 AM, Jean Favre <jfavre at cscs.ch> wrote:
> 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
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>


More information about the ParaView mailing list