[Paraview] python import error servermanager

Burlen Loring burlen.loring at kitware.com
Tue Aug 5 14:07:39 EDT 2008


Hi, looks like a path issue. Here is how mine are set:

prepend-path PATH             $pv3_home/bin
prepend-path PYTHONPATH       
$pv3_home/bin:$pv3_home/Utilities/VTKPythonWrapping
prepend-path LD_LIBRARY_PATH  $pv3_home/bin

N O wrote:
> Hi.  I'm trying to writing a python script that loads a saved state, 
> but I'm having trouble with the server manager:
>
> from paraview import servermanager as sm
> c = sm.Connect()
> sm.LoadState("test.pvsm")
> view = sm.GetRenderView()
> view.StillRender()
>
> I set my LD_LIBRARY_PATH and PYTHONPATH to include 
> $HOME/paraview-3.2.1-Linux-x86/lib/paraview-3.2/
>
> But I get the following message for the import line above:
>
> In [1]: from paraview import servermanager
> ---------------------------------------------------------------------------
> <type 'exceptions.ImportError'>           Traceback (most recent call 
> last)
>
> <ipython console> in <module>()
>
> /home/myname/paraview-3.2.1-Linux-x86/lib/paraview-3.2/paraview/__init__.py 
> in <module>()
>      38 import os
>      39 if os.name == "posix":
> ---> 40     from libvtkPVServerCommonPython import *
>      41     from libvtkPVServerManagerPython import *
>      42     from libvtkCommonPython import *
>
> <type 'exceptions.ImportError'>: 
> /home/myname/paraview-3.2.1-Linux-x86/lib/paraview-3.2/libvtkPVServerCommonPythonD.so: 
> undefined symbol: PyVTKClass_vtkXMLParserNew
>
>
>
>
>
> Any advice?  Thanks.
>
> Nate
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>   


-- 
Burlen Loring
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x137



More information about the ParaView mailing list