Ah ok,<div><br></div><div>I was referring to that line inside the <span style="white-space:pre-wrap">${PV_SRC}/Wrapping/Python/</span><span style="white-space:pre-wrap">paraview/vtk/__init__.py</span></div><div><span style="white-space:pre-wrap"><br>
</span></div><div><span style="white-space:pre-wrap">Sorry for the confusion,</span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">Seb</span></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Nov 16, 2012 at 9:20 AM, edd cmaugo <span dir="ltr"><<a href="mailto:edcpwk@gmail.com" target="_blank">edcpwk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>Hi Seb,<br><br>The line :<br><span style="font-family:'Courier';font-size:8.25pt;color:rgb(128,0,0)"><br>from vtkFiltersCorePython import * <br></span><br>leads to this warning on the output messages window :<br>
<br><span style="font-family:'Courier';font-size:8.25pt;color:rgb(128,0,0)"><string>:1: SyntaxWarning: import * only allowed at module level<br><br><br></span><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">
2012/11/16 Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Eddy,<div><br></div><div>what do you mean by "<span style="font-family:arial,sans-serif;font-size:13px" lang="en">There's just a python warning in the output messages window but </span><span style="font-family:arial,sans-serif;font-size:13px" lang="en"><span style="font-family:Courier;font-size:8.25pt;color:rgb(128,0,0)"></span>it works perfectly."</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px" lang="en"><br></span></div><div><font face="arial, sans-serif">What have you done ?</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Thanks,</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Seb</font></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 16, 2012 at 4:36 AM, edd cmaugo <span dir="ltr"><<a href="mailto:edcpwk@gmail.com" target="_blank">edcpwk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks you,<br><br><span lang="en"><span>There's just a python warning in the output messages window but </span></span><span lang="en"><span><span style="font-family:'Courier';font-size:8.25pt;color:rgb(128,0,0)"></span>it works perfectly.</span></span><br>
<br>Eddy<div><div><br>
<div class="gmail_extra"><br><br><div class="gmail_quote">2012/11/15 Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<pre style="margin-top:0px;margin-bottom:0px">Hi Eddy,</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">the reason for that is we are missing a bunch of import in ${PV_SRC}/Wrapping/Python/paraview/vtk/__init__.py</pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">But if you add that line, that will solve your <span style="font-family:arial,sans-serif;font-size:13px">vtk.vtkStripper() call.</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">from<span style="color:rgb(192,192,192)"> </span>vtkFiltersCorePython<span style="color:rgb(192,192,192)"> </span>import<span style="color:rgb(192,192,192)"> </span>*</pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">I'll push more vtk module into __init__.py so that should be fixed for the release.</pre><pre style="margin-top:0px;margin-bottom:0px">
<br></pre><pre style="margin-top:0px;margin-bottom:0px">Thanks,</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">Seb </pre><pre style="margin-top:0px;margin-bottom:0px">
<br></pre><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Thu, Nov 15, 2012 at 4:11 AM, edd cmaugo <span dir="ltr"><<a href="mailto:edcpwk@gmail.com" target="_blank">edcpwk@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hi,<br><div class="gmail_quote">
<br>
Is it possible to use a vtkStripper with the 3.98.0-RC1 on a programmable filter ?<br>
<br>
If I do :<br>
<br>
from paraview import vtk<br>
<p style="margin:0px;text-indent:0px">stripper = vtk.vtkStripper()</p>
<p style="margin:0px;text-indent:0px"><br></p>
I've got :<br>
<br>
<span style="font-family:'Courier';font-size:8.25pt;color:rgb(128,0,0)">AttributeError: 'module' object has no attribute 'vtkStripper'</span><br>
<br>
With the 3.14, there's no error.<br>
<span lang="en"><span>Also, there is</span> <span>much more</span></span> things when you print an "inspect.getmembers(vtk)" with the 3.14 release.<br>
<br>
Thanks,<br>
--<br>
Eddy
</div><br>
<br></div></div>_______________________________________________<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/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/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>