Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imported VTK version does not match the one used to build the TVTK classes #1334

Open
harrandt opened this issue Feb 21, 2025 · 0 comments
Open

Comments

@harrandt
Copy link

When building mayavi in a Docker environment (clean venv) I get a notification

WARNING: Imported VTK version (9.2) does not match the one used
         to build the TVTK classes (9.4). This may cause problems.
         Please rebuild TVTK.

In the end the import fails with some of the VTK objects not present.

As far as I understand it, the pyproject.toml installs the newest vtk on pip:

[build-system]
requires = [
    "oldest-supported-numpy",
    "setuptools",
    "vtk", # <-----
    "wheel"
]

But that newest vtk may not be supported in tvtk/vtk_module.py yet

if vtk_version == '9.2.0': ...
if vtk_version.startswith('9.3'): ...
if vtk_version in ['9.4.0', '9.4.1']:...

One solution to this might be to add the highest supported vtk version to pyproject.toml like

"vtk~=9.4.0",
"vtk>=7.4.0,<9.4.0"

Will there be a new release on pip in the near future that supports the latest fixes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant