pvpython of ParaView 6.1 build from source code on Rocky Linux 8 doesn’t work import paraview.simple with following message.
>>> import paraview.simple
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/path/to/paraview/6.1.0/lib64/python3.6/site-packages/paraview/__init__.py", line 38
def __call__(self, arg, /):
^
SyntaxError: invalid syntax
>>>
I know those the error occurs because to default Python version of RockyLinux 8 is 3.6 and “Positional-Only Parameters” is available since Python 3.8.
However, cmake enabling python had been succeeded and FindPython had said “minimum required is 3.4” in cmake was running.
Note that the policy for VTK is (as of master): 3.10 minimum tested, but patches welcome to support back to 3.4. Not dissimilar to our MinGW support policy FWIW.
Right now, the minimum is lifted if VTK_REMOVE_LEGACY is set. This is the last usage of the variable in VTK, so if you want to introduce a variable to replace it that defaults to “raise the minimum” so that supporting pre-3.10 is an explicit opt-in, that sounds good to me.