When vtk is installed from pip, I see the following error:
And run:
import vtk
I see the following error:
Initialization failed for vtkWebCore, not compatible with vtkmodules.vtkCommonCore
I am not sure how can I debug this further.
Has anyone seen it before? Any debugging hints would be useful.
Can you provide more background information?
OS
Python version (+origin: system, conda, venv…)
VTK version
Anything that might be specific to your setup
Hi Sebastien!
OS: Ubuntu 22.04
vtk==9.3.0
Python 3.10 venv, pantsbuild
I currently believe that the issue is with another library that we install: cadquery.
opened 01:17PM - 01 Mar 24 UTC
Hi all
We are using the latest pip-installable cadquery and we also recently ad… ded a new dependency (vtk==9.3.0)
Just importing those two in the same file:
`import cadquery
import vkt
`
Results in the following error:
`ImportError: Initialization failed for vtkWebCore, not compatible with vtkmodules.vtkCommonCore`
Since that the vtk version, used by cadquery is incompatible with vtk==9.3.0.
I could not find any pointers how to resolve this so far. Any help would be appreciated!
Feel free to close if this seems unrelated to VTK installation itself.
Thanks for pointing out the origin of the issue. That is very helpful.