Closed Becheler closed 2 years ago
Thanks for the heads up, this is using the VTK pre-release 9.2.0-rc1 which is not supported but it is good to know the issues in advance so we can fix them. For now please just install the latest stable release, 9.1.0 and then try. Your problem of course is that there are no 3.10 wheels on pypi for VTK, so one option is to use Python 3.9, alternatively the conda-forge version of VTK does work well too but if conda is not an option for you then this is a problem.
Thanks for your answer!
Ubuntu 22.04 LTS only features Python 3.10 (https://packages.ubuntu.com/jammy/python3.10), meaning that if running this version, we won't be able to use Python-VTK.
Until Kitware releases official VTK wheels for Python 3.10 on PyPI, you can use custom wheels PyVista hosted at https://github.com/pyvista/pyvista-wheels for Windows, Linux x64, and MacOS following this issue and this link.
So I had to use a non-official buid of vtk with:
pip install https://github.com/pyvista/pyvista-wheels/raw/main/vtk-9.1.0.dev0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
It is a bit ugly, but this get you vtk 9.1.0 on ubuntu 22.04, after what mayavi installs successfully.
I will have to find how to handle dependencies conditionally to the OS version for users of my package :'(
It seems there is a dependency conflict between:
I struggle identifying the exact cause of the build failing.