I simplified the code and tried it on Paraview3.8.0. It reads in a vtu file, fetch the data and then write it back to a new file. But still got errors as follow.<br><br>Script:<br><br clear="all">from paraview.simple import *<br>

from paraview.simple import servermanager as sm<br>from paraview import vtk<br><br># connect internally<br>connection=sm.Connect()<br><br># Set the pvpython path<br>INPUTFILE=&quot;test.vtu&quot;<br>OUTPUTFILE=&quot;tested.vtu&quot;<br>

<br># create a reader<br>reader=sm.sources.XMLUnstructuredGridReader(FileName=INPUTFILE)<br><br># get the data i.e moves data from the server to the client<br>data=sm.Fetch(reader)<br><br>tp=sm.sources.TrivialProducer()<br>

obj=tp.GetClientSideObject()<br>obj.SetOutput(data)<br><br>writer=sm.writers.XMLUnstructuredGridWriter(DataMode=2,FileName=OUTPUTFILE,Input=obj)<br><br>writer.UpdatePipeline()<br><br>
<br>Errors:<br><br>getting appended<br>vtkReductionFilter : [ ...........]<br>Traceback (most recent call last):<br>  File &quot;convert.py&quot;, line 88, in &lt;module&gt;<br>    writer=sm.writers.XMLUnstructuredGridWriter(DataMode=2,FileName=OUTPUTFILE,Input=obj)<br>

  File &quot;/home/kitware/ParaView-3-8/ParaView-3.8/ParaView3Bin/Utilities/VTKPythonWrapping/paraview/servermanager.py&quot;, line 186, in __init__<br>  File &quot;/home/kitware/ParaView-3-8/ParaView-3.8/ParaView3Bin/Utilities/VTKPythonWrapping/paraview/servermanager.py&quot;, line 204, in __setattr__<br>

  File &quot;/home/kitware/ParaView-3-8/ParaView-3.8/ParaView3Bin/Utilities/VTKPythonWrapping/paraview/servermanager.py&quot;, line 2361, in setProperty<br>  File &quot;/home/kitware/ParaView-3-8/ParaView-3.8/ParaView3Bin/Utilities/VTKPythonWrapping/paraview/servermanager.py&quot;, line 253, in SetPropertyWithName<br>

  File &quot;/home/kitware/ParaView-3-8/ParaView-3.8/ParaView3Bin/Utilities/VTKPythonWrapping/paraview/servermanager.py&quot;, line 1162, in SetData<br>AttributeError: SMProxy<br><br><br><br>Any clues?<br><br><br><div class="gmail_quote">

On Sat, Apr 24, 2010 at 9:41 AM, Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Here are my results from 3.7 (consequently 3.8 or git master should<br>
work as well).<br>
<br>
&gt;&gt;&gt; from paraview.simple import *<br>
paraview version 3.7.0, Date: 2010-03-27<br>
&gt;&gt;&gt; TrivialProducer()<br>
&lt;paraview.servermanager.TrivialProducer object at 0x121587e90&gt;<br>
&gt;&gt;&gt; servermanager.sources.TrivialProducer()<br>
&lt;paraview.servermanager.TrivialProducer object at 0x121587d50&gt;<br>
<font color="#888888"><br>
Utkarsh<br>
</font><div class="im"><br>
On Fri, Apr 23, 2010 at 5:44 PM, Utkarsh Ayachit<br>
&lt;<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt; wrote:<br>
</div><div><div></div><div class="h5">&gt; You no longer need the initial part for loading the XML. You can directly use:<br>
&gt;<br>
&gt;  tp = sm.sources.TrivialProducer()<br>
&gt;<br>
&gt; and that should work.<br>
&gt;<br>
&gt; Utkarsh<br>
&gt;<br>
&gt; On Fri, Apr 23, 2010 at 5:09 PM,  &lt;<a href="mailto:wastrel@gmail.com">wastrel@gmail.com</a>&gt; wrote:<br>
&gt;&gt; I used the the following snippet to generate data on the client side but<br>
&gt;&gt; ended up with errors:<br>
&gt;&gt;<br>
&gt;&gt; Code:<br>
&gt;&gt; sm = servermanager<br>
&gt;&gt; f = open(&#39;trivialproducer.xml&#39;, &#39;r&#39;)<br>
&gt;&gt; parser = sm.vtkSMXMLParser()<br>
&gt;&gt; parser.Parse(f.read())<br>
&gt;&gt; parser.ProcessConfiguration(sm.vtkSMObject.GetProxyManager())<br>
&gt;&gt; # Update the modules<br>
&gt;&gt; sm._updateModules()<br>
&gt;&gt;<br>
&gt;&gt; tp = sm.sources.TrivialProducer()<br>
&gt;&gt; obj = tp.GetClientSideObject()<br>
&gt;&gt; obj.SetOutput(pd)<br>
&gt;&gt;<br>
&gt;&gt; # use tp as any other source proxy<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; trivialproducer.xml:<br>
&gt;&gt;<br>
&gt;&gt; &lt;ServerManagerConfiguration&gt;<br>
&gt;&gt; &lt;ProxyGroup name=&quot;sources&quot;&gt;<br>
&gt;&gt;<br>
&gt;&gt; &lt;SourceProxy name=&quot;TrivialProducer&quot;<br>
&gt;&gt; class=&quot;vtkPVTrivialProducer&quot;&gt;<br>
&gt;&gt; &lt;/SourceProxy&gt;<br>
&gt;&gt; &lt;/ProxyGroup&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Errors:<br>
&gt;&gt; ERROR: In<br>
&gt;&gt; /home/berk/Work/ReleaseBuilds/ParaView3/Servers/Common/vtkProcessModule.cxx,<br>
&gt;&gt; line 1001<br>
&gt;&gt; vtkProcessModule (0x807b790): Cannot create object of type<br>
&gt;&gt; &quot;vtkPVTrivialProducer&quot;.<br>
&gt;&gt; while processing<br>
&gt;&gt; Message 0 = New<br>
&gt;&gt;   Argument 0 = string_value {vtkPVTrivialProducer}<br>
&gt;&gt;   Argument 1 = id_value {40}<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ERROR: In<br>
&gt;&gt; /home/berk/Work/ReleaseBuilds/ParaView3/Servers/Common/vtkProcessModule.cxx,<br>
&gt;&gt; line 1002<br>
&gt;&gt; vtkProcessModule (0x807b790): Aborting execution for debugging purposes.<br>
&gt;&gt;<br>
&gt;&gt; Abort<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>