Skip to content

importing ansys.tools.visualization loads vtk libraries #291

Open
@koubaa

Description

@koubaa

simply importing the visualization library will load vtk, which is not the case for pyvista. I have a workaround in pymapdl here:
ansys/pymapdl#3887

This is problematic because in situations when pyvista is installed but is never used, the import of ansys.tools.visualization loads dozens of libraries into the process. I have a bug that when libvtkIOEnSight.so is loaded into the mapdl process on a linux machine that uses an AMD CPU, MAPDL crashes. I don't know why it crashes yet, but this is why I worked around the issue.

Ideally, a side effect of loading the visualization interface library, especially when other backends are supported, would not force-load all vtk libraries into the process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions