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.

Are you using python or pvpython?  Usually pvpython does some extra work so
you don't have to set the environment variable yourself.  You can see this
if you run pvpython and type-

import os
print os.environ["LD_LIBRARY_PATH"]

Pat

On Tue, Aug 31, 2010 at 11:07 PM, Dave Partyka <[email protected]>wrote:

> If you do import sys
> sys.path
>
> Does that print the directory where libvtkCommonPythonD is located?
>
>
> On Tue, Aug 31, 2010 at 10:07 PM, Kaben Nanlohy 
> <[email protected]>wrote:
>
>> I think this problem has been seen before on this list, but maybe not
>> in enough detail to solve. Here are more details.
>>
>> On Ubuntu 10.04 64-bit server with paraview and all the associated
>> python/vtk stuff installed, when I type:
>> >>> import sys
>> >>> sys.path.append('/usr/lib/paraview')
>> >>> sys.path.append('/usr/lib/pymodules/python2.6/vtk/')
>> >>> import paraview.servermanager
>>
>> I get: ImportError: libvtkCommonPythonD.so.pv3.4: cannot open shared
>> object file: No such file or directory
>>
>> But if I do a stupid import in a specific order, I get a complaint,
>> and then success:
>> >>> import sys
>> >>> sys.path.append('/usr/lib/paraview')
>> >>> sys.path.append('/usr/lib/pymodules/python2.6/vtk/')
>> >>> import libvtkPVServerCommonPythonD
>> ImportError: dynamic module does not define init function
>> (initlibvtkPVServerCommonPythonD)
>> >>> import paraview.servermanager
>> >>>
>>
>> This points to some inter-library dependencies and load-orders. Hope this
>> helps.
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to