<div dir="ltr">Ah, I was wrong in my earlier response. The problem is that the single quotation marks are copied from the ParaView Guide as apostrophes (or "smart" single quotes). Change these to single quotes ( ' ) in your script and it will run fine.<div><br></div><div>HTH,</div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 22, 2018 at 5:36 PM, Mohammed Babiker <span dir="ltr"><<a href="mailto:en.mhdbabiker@gmail.com" target="_blank">en.mhdbabiker@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="#954F72"><div class="m_-410633223724701083WordSection1"><p class="MsoNormal">Dear Cory,</p><div style="border:none;border-bottom:double windowtext 6.75pt;padding:0in 0in 1.0pt 0in"><p class="MsoNormal" style="border:none;padding:0in">Thanks for your quick respond, I did what you said but a gain I got error massage  as shown below </p></div><div><p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:Courier;color:maroon">ERROR: In C:\bbd\7cc78367\source-<wbr>paraview\VTK\Common\<wbr>ExecutionModel\<wbr>vtkDemandDrivenPipeline.cxx, line 809</span><u></u><u></u></p><p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:Courier;color:maroon">vtkPVDataRepresentationPipelin<wbr>e (0000024B59BAEEC0): Input for connection index 0 on input port index 0 for algorithm vtkGeometryRepresentationWithF<wbr>aces(0000024B5AC08230) is of type vtkTable, but a vtkDataSet is required.</span><u></u><u></u></p><p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:Courier;color:maroon"><u></u> <u></u></span></p><p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:Courier;color:maroon">ERROR: In C:\bbd\7cc78367\source-<wbr>paraview\VTK\Common\<wbr>ExecutionModel\<wbr>vtkDemandDrivenPipeline.cxx, line 809</span><u></u><u></u></p><p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:Courier;color:maroon">vtkPVDataRepresentationPipelin<wbr>e (0000024B59BB4AA0): Input for connection index 0 on input port index 0 for algorithm vtkGeometryRepresentation(<wbr>0000024B534FA090) is of type vtkTable, but a vtkDataSet is required.</span><u></u><u></u></p><p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:Courier;color:maroon"><u></u> <u></u></span></p><p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:Courier;color:maroon">ERROR: In C:\bbd\7cc78367\source-<wbr>paraview\VTK\Common\<wbr>ExecutionModel\<wbr>vtkDemandDrivenPipeline.cxx, line 809</span><u></u><u></u></p><div style="border:none;border-bottom:double windowtext 6.75pt;padding:0in 0in 1.0pt 0in"><p style="margin:0in;margin-bottom:.0001pt;border:none;padding:0in"><span style="font-size:8.5pt;font-family:Courier;color:maroon">vtkPVDataRepresentationPipelin<wbr>e (0000024B51452420): Input for connection index 0 on input port index 0 for algorithm vtkPVGridAxes3DRepresentation(<wbr>0000024B593C64B0) is of type vtkTable, but a vtkCompositeDataSet is required.</span><u></u><u></u></p></div></div><p class="MsoNormal"> Regards.  </p><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:cory.quammen@kitware.com" target="_blank">Cory Quammen</a><br><b>Sent: </b>Thursday, February 22, 2018 11:30 PM<br><b>To: </b><a href="mailto:en.mhdbabiker@gmail.com" target="_blank">Mohammed Babiker</a><br><b>Cc: </b><a href="mailto:paraview@public.kitware.com" target="_blank">paraview@public.kitware.com</a><br><b>Subject: </b>Re: [Paraview] Teaser (Programmable filter) Not working</p></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Mohammed,</p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">There is a bug in this filter that requires you to set the output data type to the desired type to vtkTable before the first time you click Apply. Changing it after clicking Apply currently doesn't work.</p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">See if that works around the problem.</p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Thanks,</p></div><div><p class="MsoNormal">Cory</p></div></div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On Thu, Feb 22, 2018 at 5:17 PM, Mohammed Babiker <<a href="mailto:en.mhdbabiker@gmail.com" target="_blank">en.mhdbabiker@gmail.com</a>> wrote:</p><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><div><p class="MsoNormal">Good evening Paraview-Help</p><p class="MsoNormal">I tried to run the script in Paraview guide chapter fourteen (Teaser) page 175 I used first source sphere then the filter elevation and then programmable filter and then I paste the script bellow in script part:</p><pre style="margin-top:9.0pt"><b><span style="color:green">from</span></b> <b><span style="color:blue">vtk.</span></b> <b><span style="color:blue">numpy_interface</span></b> <b><span style="color:green">import</span></b> dataset_adapter <b><span style="color:green">as</span></b> dsa</pre><pre><b><span style="color:green">from</span></b> <b><span style="color:blue">vtk.</span></b> <b><span style="color:blue">numpy_interface</span></b> <b><span style="color:green">import</span></b> algorithms <b><span style="color:green">as</span></b> algs</pre><pre>data <span style="color:#666666">=</span> inputs [<span style="color:#666666">0</span>]</pre><pre><b><span style="color:green">print</span></b> data<span style="color:#666666">.</span>PointData<span style="color:#666666">.</span>keys ()</pre><pre><b><span style="color:green">print</span></b> data<span style="color:#666666">.</span>PointData[’Elevation ’]</pre><div style="border:none;border-bottom:double windowtext 6.75pt;padding:0in 0in 1.0pt 0in"><p class="MsoNormal">and the rest left default as it was .after hitting run it suppose to get a table as was said in the guide but I got the below error :</p></div><p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:Courier;color:maroon">File "<string>", line 6</span></p><p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:Courier;color:maroon">print data.PointData[’Elevation ’]</span></p><p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:Courier;color:maroon">^</span></p><p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:Courier;color:maroon">SyntaxError: invalid syntax</span></p><p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:Courier;color:maroon">Traceback (most recent call last):</span></p><p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:Courier;color:maroon">File "<string>", line 22, in <module></span></p><div style="border:none;border-bottom:double windowtext 6.75pt;padding:0in 0in 1.0pt 0in"><p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:Courier;color:maroon">NameError: name 'RequestData' is not defined</span></p></div><p class="MsoNormal">Then I tried to change the output type to different types (vtktable,vtkpolydata,…etc) and I got different errors.</p><p class="MsoNormal">Below attached images contain info. About the version of ParaView and the pipeline scheme (format png).</p><p class="MsoNormal">Any help or advice  will be greatly appreciated .</p><p class="MsoNormal"> </p><p class="MsoNormal">Kind Regards.</p><p class="MsoNormal"> </p><p class="MsoNormal">Mohammed B. A. Hassan </p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>______________________________<wbr>_________________<br>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br><br>Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br><br>Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="https://public.kitware.com/mailman/listinfo/paraview" target="_blank">https://public.kitware.com/<wbr>mailman/listinfo/paraview</a></p></blockquote></div><p class="MsoNormal"><br><br clear="all"></p><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- </p></div><p class="MsoNormal">Cory Quammen<br>Staff R&D Engineer<br>Kitware, Inc.</p><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Cory Quammen<br>Staff R&D Engineer<br>Kitware, Inc.</div>
</div>