<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-15">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
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).<br>
<br>
Now i use this script to run the stuff in batch (means pyton) mode:<br>
<br>
<br>
<font size="-1">
</font><font face="Courier New, Courier, monospace">from
paraview.servermanager import *<br>
<br>
</font><font face="Courier New, Courier, monospace">Connect()<br>
LoadPlugin("/opt/PARAVIEW_3_8/ParaView-3.8.0-RC2-Linux-x86_64/lib/paraview-3.8/libSurfaceLIC.so",
False)<br>
LoadState("alvlic.pvsm")<br>
view = GetRenderView()<br>
view.WriteImage("test.png", "vtkPNGWriter", 1) <br>
</font><br>
<br>
In this case i get the error:<br>
<br>
<br>
<font face="Courier New, Courier, monospace">AUSW_AUTOMATIC_NEW/SURFACE_P_LIC>
/opt/PARAVIEW_3_8_build/ParaView-3.8.0_bin/bin/pvbatch
make_pv_pic.py<br>
Traceback (most recent call last):<br>
File "make_pv_pic.py", line 4, in <module><br>
LoadPlugin("/opt/PARAVIEW_3_8/ParaView-3.8.0-RC2-Linux-x86_64/lib/paraview-3.8/libSurfaceLIC.so",
False)<br>
File
"/opt/PARAVIEW_3_8_build/ParaView-3.8.0_bin/Utilities/VTKPythonWrapping/paraview/servermanager.py",
line 2116, in LoadPlugin<br>
LoadXML(f.read())<br>
File
"/opt/PARAVIEW_3_8_build/ParaView-3.8.0_bin/Utilities/VTKPythonWrapping/paraview/servermanager.py",
line 2085, in LoadXML<br>
if not parser.Parse(xmlstring):<br>
TypeError: function takes exactly 2 arguments (1 given)<br>
<br>
</font><br>
I tried to modify the LoadPlugin line giving two arguments - but
does not help. What is wrong here?<br>
<br>
Best regards and thanks in advance...<br>
<br>
<br>
Stefan<br>
</body>
</html>