Abhishek,
You may need to build VTK master to fix this problem and you’ll have to patch VTK master like this:
diff --git a/Utilities/Python/CMakeLists.txt b/Utilities/Python/CMakeLists.txt
index 632069bc0d..44e4371b1a 100644
--- a/Utilities/Python/CMakeLists.txt
+++ b/Utilities/Python/CMakeLists.txt
@@ -147,7 +147,7 @@ cmake_dependent_option(VTK_PYTHON_OPTIONAL_LINK
# `target_link_options`.
# XXX(Linux): Currently, this causes missing symbols on Linux in ParaView.
# More investigation is necessary.
- "FALSE;BUILD_SHARED_LIBS;COMMAND target_link_options" OFF)
+ "BUILD_SHARED_LIBS;COMMAND target_link_options" OFF)
add_library(PythonUsed INTERFACE)
add_library(VTK::PythonUsed ALIAS PythonUsed)
See the following thread for context:
https://discourse.vtk.org/t/segfault-for-python-importing-vtk-but-not-for-vtkpython/126