Creating a filter in python does not support labeled input if input name is "Input"
If a filter input is named input and labeled anything than input, then creating it with python become impossible.
How to reproduce :
- Open ParaView
- Load test2.xml as a xml plugin
- Create a box source
- Open Python shell
- b=GetActiveSource()
- ExtractEdges2(TestInput=b) fails with
Traceback (most recent call last): File "", line 1, in File "/home/glow/work/kitware/paraview/paraview_build/lib/site-packages/paraview/simple.py", line 1687, in CreateObject px.Input = active_objects.source File "/home/glow/work/kitware/paraview/paraview_build/lib/site-packages/paraview/servermanager.py", line 308, in setattr "to add this attribute.") AttributeError: Attribute Input does not exist. This class does not allow addition of new attributes to avoid mistakes due to typos. Use add_attribute() if you really want to add this attribut
Changing the label to "Input" fix the bug, Changing the name to anything than "Input" fix the bug, removing the label fix the bug.