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
pgpm1tzqeytpb.pgp
Description: PGP signature
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview