vtk does not run on Ubuntu on fresh install
Hi folks,
I am trying to run the basic Python hello world example in a fresh conda environment as follows:
$ conda create -n vtk_env python=3.9 vtk
$ conda activate vtk_env
$ python -m hello_world
Where the code in the hello_world
module is copy-pasted from the linked example above.
The error I get is as follows:
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
2022-12-05 22:06:36.244 ( 0.041s) [ 11C06740]vtkXOpenGLRenderWindow.:635 ERR| vtkXOpenGLRenderWindow (0x175fae0): Cannot create GLX context. Aborting.
Any advice on how to fix?
Thank you in advance for any cycles anyone is able to spend on this.