Skip to content

Nuitka-packaged app fails with 'No module named vtk_module.util' in trame_vtk 2.9.0 (works in 2.8.17) #91

@Brandon-Xu

Description

@Brandon-Xu

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions