Very cool! Thanks Pat<br><br><br><div class="gmail_quote">On Thu, Jul 9, 2009 at 12:19 PM, pat marion <span dir="ltr">&lt;<a href="mailto:pat.marion@kitware.com">pat.marion@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;">
Hi,<br>
<br>
This is because paraview does not import all the vtk libraries, I<br>
suppose to save time, but maybe there are other reasons.<br>
<br>
Try this from paraview:<br>
<br>
print paraview.vtk.__file__<br>
<br>
And you&#39;ll get /pat/to/Utilities/VTKPythonWrapping/paraview/vtk/__init__.pyc<br>
<br>
Now open this file in an editor (replace .pyc with .py) and you&#39;ll see<br>
which vtk libraries are being imported from paraview.  Now compare<br>
these to the vtk/__init__.py file when you import vtk from the vtk<br>
install.<br>
<br>
To get to the vtkDistributedStreamTracer, you can do this:<br>
<br>
from libvtkParallelPython import *<br>
<br>
or on windows: from vtkParallelPython import *<br>
<br>
<br>
Pat<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Thu, Jul 9, 2009 at 2:47 PM, Bam Ting&lt;<a href="mailto:bampingting@gmail.com">bampingting@gmail.com</a>&gt; wrote:<br>
&gt; in a python shell when I do a<br>
&gt;<br>
&gt; from paraview import vtk<br>
&gt;<br>
&gt; using my paraview install, the resulting imported VTK object is not the same<br>
&gt; as when I do a<br>
&gt;<br>
&gt; import vtk<br>
&gt;<br>
&gt; from my vtk install, built from the same ParaView source tree.<br>
&gt;<br>
&gt; For example vtkDistributedStreamTracer is missing  from the vtk object<br>
&gt; imported from the paraview install. Actually comparing a &#39;&#39;dir(vtk)&#39;&#39; on<br>
&gt; both show the ParaView vtk module is way small compared to the VTK vtk<br>
&gt; object. ^The obvious thing to do is to build a serparate VTK build from my<br>
&gt; ParaView sources, but I wonder why is the paraview vtk python module so<br>
&gt; slim? Are the missing classes in there somewhere else?<br>
&gt;<br>
&gt; Bam<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br>