[Paraview] python import error servermanager

N O twentypoundtrout at yahoo.com
Tue Aug 5 11:06:00 EDT 2008


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


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20080805/53c8c4dd/attachment.htm>


More information about the ParaView mailing list