in trame_vtk\modules\vtk\serializers\mesh.py
vtk_module_name = os.environ.get("VTK_MODULE_NAME", "vtkmodules")
sys.modules["vtk_module"] = importlib.import_module(vtk_module_name)
from vtk_module.util.numpy_support import vtk_to_numpy
from vtk_module.vtkFiltersGeometry import vtkDataSetSurfaceFilter
After updating to trame_vtk 2.9.0, the program runs normally without issues. However, when packaged with Nuitka, it throws an error:
ModuleNotFoundError: No module named 'vtk_module.util'
I've tried adding:
--include-package=vtkmodules
And also attempted:
--include-package=vtkmodules
--include-package=vtkmodules.util
--include-package=vtkmodules.vtkFiltersGeometry
But none of these worked. The packaged program only works correctly after reverting back to version 2.8.17.
What should I do to resolve this issue?