PythonAlgorithmExamples.py fails to load
The PythonAlgorithmExamples.py examples fail to load in Paraview 5.10 and Paraview 5.11 which are the version I have tested it.
Failed to call `paraview.detail.pythonalgorithm.load_plugin`.
Traceback (most recent call last):
File "/opt/paraview/lib/python3.10/site-packages/paraview/detail/pythonalgorithm.py", line 509, in load_plugin
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/jjcasmar/Downloads/PythonAlgorithmExamples.py", line 16, in <module>
class PythonSuperquadricSource(VTKPythonAlgorithmBase):
File "/home/jjcasmar/Downloads/PythonAlgorithmExamples.py", line 57, in PythonSuperquadricSource
def SetThetaResolution(self, x):
File "/opt/paraview/lib/python3.10/site-packages/paraview/detail/pythonalgorithm.py", line 76, in decorator
updated_attrs = update_func(original_func, attrs)
File "/opt/paraview/lib/python3.10/site-packages/paraview/detail/pythonalgorithm.py", line 144, in _update_vectorproperty_defaults
assert attrs["number_of_elements"] == _count(attrs["default_values"])
AssertionError
( 9.646s) [paraview ] vtkPVPluginLoader.cxx:532 ERR| vtkPVPluginLoader (0x56122d209ba0): /home/jjcasmar/Downloads/PythonAlgorithmExamples.py: /home/jjcasmar/Downloads/PythonAlgorithmExamples.py: invalid ELF header