Draft: Apply try/except to importing most python modules
In order to make it easier for package managers to build VTK with everything and then split it into smaller binary packages, use a try/except for importing all but the StandAlone and Rendering modules. This allows "import vtk" to work even if not all of the built modules are installed.
Case in point: installing VTK as an Arch package does not automatically install dependencies that are marked "optional".
https://archlinux.org/packages/extra/x86_64/vtk/
So, on Arch, import vtk and import vtkmodules.all as vtk fail if any of the optional dependencies are not installed.
Closes: #18365
Edited by David Gobbi