Try setting your LD_LIBRARY_PATH variable to contain the paths that have the vtk and paraview libs.  Setting the sys.path tells python where to find the python modules (libvtk*Python.so) but those have dependencies on the regular libs (libvtk*.so and libvtk*PythonD.so) that must be resolved with LD_LIBRARY_PATH.<br>
<br>Are you using python or pvpython?  Usually pvpython does some extra work so you don&#39;t have to set the environment variable yourself.  You can see this if you run pvpython and type-<br><br>import os<br>print os.environ[&quot;LD_LIBRARY_PATH&quot;]<br>
<br>Pat<br><br><div class="gmail_quote">On Tue, Aug 31, 2010 at 11:07 PM, Dave Partyka <span dir="ltr">&lt;<a href="mailto:dave.partyka@kitware.com">dave.partyka@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
If you do import sys<div>sys.path</div><div><br></div><div>Does that print the directory where <span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;">libvtkCommonPythonD is located? </span><div>
<div></div><div class="h5"><br>

<br><div class="gmail_quote">On Tue, Aug 31, 2010 at 10:07 PM, Kaben Nanlohy <span dir="ltr">&lt;<a href="mailto:kaben.nanlohy@gmail.com" target="_blank">kaben.nanlohy@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


I think this problem has been seen before on this list, but maybe not<br>
in enough detail to solve. Here are more details.<br>
<br>
On Ubuntu 10.04 64-bit server with paraview and all the associated<br>
python/vtk stuff installed, when I type:<br>
&gt;&gt;&gt; import sys<br>
&gt;&gt;&gt; sys.path.append(&#39;/usr/lib/paraview&#39;)<br>
&gt;&gt;&gt; sys.path.append(&#39;/usr/lib/pymodules/python2.6/vtk/&#39;)<br>
&gt;&gt;&gt; import paraview.servermanager<br>
<br>
I get: ImportError: libvtkCommonPythonD.so.pv3.4: cannot open shared<br>
object file: No such file or directory<br>
<br>
But if I do a stupid import in a specific order, I get a complaint,<br>
and then success:<br>
&gt;&gt;&gt; import sys<br>
&gt;&gt;&gt; sys.path.append(&#39;/usr/lib/paraview&#39;)<br>
&gt;&gt;&gt; sys.path.append(&#39;/usr/lib/pymodules/python2.6/vtk/&#39;)<br>
&gt;&gt;&gt; import libvtkPVServerCommonPythonD<br>
ImportError: dynamic module does not define init function<br>
(initlibvtkPVServerCommonPythonD)<br>
&gt;&gt;&gt; import paraview.servermanager<br>
&gt;&gt;&gt;<br>
<br>
This points to some inter-library dependencies and load-orders. Hope this helps.<br>
_______________________________________________<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>
</blockquote></div><br></div></div></div>
<br>_______________________________________________<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>