VTK和VMTK运行时报错解决方案
运行vtk和vmtk结合的项目时报以下错误,在此做个记录,方便以后再出现问题的时候快速解决:
ImportError: libLLVM-3.3.so: cannot open shared object file:
No such file or directory
ModuleNotFoundError: No module named 'vtkRenderingOpenGL2Python'
解决方案:
conda install llvm=3.3
报错内容:
vtkOSOpenGLRenderWindow (0x184b9d0):
GL version 2.1 with the gpu_shader4 extension is not supported by your graphics
driver but is required for the new OpenGL rendering backend. Please update your
OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or
later and make sure your driver in Mesa supports OpenGL 3.2.
解决方案:
conda uninstall vmtk vtk
conda install -c anaconda vtk=8.1.0
conda install -c vmtk vmtk
报错内容:
ImportError: libtbb.so.2: cannot open shared object file: No such file or directory
ModuleNotFoundError: No module named 'vtkCommonCorePython'
解决方案:
conda install tbb=2020.2
报错内容:
ImportError: libjsoncpp.so.19: cannot open shared object file:
No such file or directory
ModuleNotFoundError: No module named 'vtkIOParallelPython'
解决方案:
conda install jsoncpp=1.8.3