[Paraview] Loading a Plugin from a Python-Script in 3.6.1
Bernhard Gschaider
bgschaid_lists at ice-sf.at
Mon Aug 31 05:26:16 EDT 2009
Hi!
I'm trying to update a pvpython-script from 3.4 to 3.6.1
Amongst other things it should load a Plugin. The plugin loads
perfectly over the GUI, but when I try to do it from the script it
fails with this message:
File "/home/bgschaid/Development/OpenFOAM/Python/PyFoam/PyFoam/Paraview/ServermanagerWrapper.py", line 41, in __init__
servermanager.LoadPlugin(path.join(p,plug1))
File "/home/openfoam/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc/Utilities/VTKPythonWrapping/paraview/servermanager.py", line 2094, in LoadPlugin
if not parser.Parse(f.read()):
TypeError: function takes exactly 2 arguments (1 given)
I tried replacing the call to servermanager.LoadPlugin with the
equivalent call in simple, but obviously this goes through the
servermanager and fails with the same message.
As far as I could tell from the servermanager.py the actual loading of
the Plugin fails before that and in that line it tries to interpret
the given file as an XML-File as a fallback.
The script fails on Linux and MacOS X. Calling LoadPlugin from the
Python-Shell in paraview also fails.
I noticed that the part about loading plugins is missing from
http://www.vtk.org/Wiki/ParaView/Python_Scripting
Does this mean that it is currently not supported?
Bernhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090831/8e927001/attachment.pgp>
More information about the ParaView
mailing list