[Paraview] Problem loading plugin in Python ...
Stefan Melber
Stefan.Melber at DLR.de
Tue Jul 27 08:36:55 EDT 2010
Hi,
i try to use the SurfaceLIC in combination with python. Running the
SurfaceLIC from the GUI it works fine (only when use the 185.18.31
Nvidia-driver, with newer drivers it crashes).
Now i use this script to run the stuff in batch (means pyton) mode:
from paraview.servermanager import *
Connect()
LoadPlugin("/opt/PARAVIEW_3_8/ParaView-3.8.0-RC2-Linux-x86_64/lib/paraview-3.8/libSurfaceLIC.so",
False)
LoadState("alvlic.pvsm")
view = GetRenderView()
view.WriteImage("test.png", "vtkPNGWriter", 1)
In this case i get the error:
AUSW_AUTOMATIC_NEW/SURFACE_P_LIC>
/opt/PARAVIEW_3_8_build/ParaView-3.8.0_bin/bin/pvbatch make_pv_pic.py
Traceback (most recent call last):
File "make_pv_pic.py", line 4, in <module>
LoadPlugin("/opt/PARAVIEW_3_8/ParaView-3.8.0-RC2-Linux-x86_64/lib/paraview-3.8/libSurfaceLIC.so",
False)
File
"/opt/PARAVIEW_3_8_build/ParaView-3.8.0_bin/Utilities/VTKPythonWrapping/paraview/servermanager.py",
line 2116, in LoadPlugin
LoadXML(f.read())
File
"/opt/PARAVIEW_3_8_build/ParaView-3.8.0_bin/Utilities/VTKPythonWrapping/paraview/servermanager.py",
line 2085, in LoadXML
if not parser.Parse(xmlstring):
TypeError: function takes exactly 2 arguments (1 given)
I tried to modify the LoadPlugin line giving two arguments - but does
not help. What is wrong here?
Best regards and thanks in advance...
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100727/70256ab8/attachment.htm>
More information about the ParaView
mailing list