trame ImportError(IMPROPER_VTK_MSG)

when running the vtk tutorial of trame, I now get this error:
python ./01_vtk/ --port 1234

Traceback (most recent call last):
File “/home/user/Codes/trame-tutorial/./01_vtk/”, line 58, in
view = vtk.VtkLocalView(renderWindow)
File “/usr/local/lib/python3.10/dist-packages/trame_vtk/widgets/vtk/”, line 637, in init
File “/usr/local/lib/python3.10/dist-packages/trame_vtk/modules/vtk/”, line 32, in has_capabilities
raise ImportError(IMPROPER_VTK_MSG)
ImportError: Your build of VTK does not have the proper web modules enabled.
These modules are typically enabled by default with the

Conda users: This is a known issue with the conda-forge VTK feedstock.
See Build web modules for trame by banesullivan · Pull Request #258 · conda-forge/vtk-feedstock · GitHub

I guess I need to update something, but I don’t know what and where. vtk? conda? Is there a pip command that I can simply run from within the virtual environment to get the correct VTK?

How is your Python environment setup? How did you install VTK? Did you run pip install vtk from within a virtual environment on which platform and Python version?

I followed the steps from the tutorial:

But it looks like installing all vtk related packages from the package manager solves this issue (libvtk9, libvtk9-dev, python3-vtk9)

Hum ok, the tutorial way should have worked as well. Glad you got it working.