Ubuntu Version - 18.04
Python Version - 2.7.17
Python3 Version - 3.6.9
VTK version -
I’m trying to use pvpython to run a python script to write out .pvd and .vtu files, however pvpython opens with the 2.7.17 version and this causes the “import vtk” in my script to segmentation fault (core dumped). I have the following strategies to mitigate my problem, but however would need some support to do them:
- Import vtk using “from paraview import vtk” command, However this leads to less classes inside vtk module of paraview. So I could update the vtk module inside the paraview directory to include the classes that I need (vtkXMLUnstructuredGridWriter etc.)
- Install a higher version of Paraview like 5.8 so that it natively uses python3 as the interpretor for pvpython.
- Change the native python interpreter of pvpython as python3.
Kindly guide
Regards
Kaushik