# Initialization failed for vtkWebCore, not compatible with vtkmodules.vtkCommonCore

**URL:** <https://discourse.vtk.org/t/initialization-failed-for-vtkwebcore-not-compatible-with-vtkmodules-vtkcommoncore/13423>\
**Category:** Support\
**Created:** [March 1, 2024, 10:51am UTC](https://discourse.vtk.org/t/initialization-failed-for-vtkwebcore-not-compatible-with-vtkmodules-vtkcommoncore/13423 "2024-03-01T10:51:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marija\_Savtchouk](https://discourse.vtk.org/user_avatar/discourse.vtk.org/marija_savtchouk/32/8541_2.png) [@Marija\_Savtchouk](https://discourse.vtk.org/u/Marija_Savtchouk)\
**Post date:** [March 1, 2024, 10:51am UTC](https://discourse.vtk.org/t/initialization-failed-for-vtkwebcore-not-compatible-with-vtkmodules-vtkcommoncore/13423/1 "2024-03-01T10:51:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)\
**Post date:** [March 1, 2024, 4:58pm UTC](https://discourse.vtk.org/t/initialization-failed-for-vtkwebcore-not-compatible-with-vtkmodules-vtkcommoncore/13423/2 "2024-03-01T16:58:29Z")

</div>

Can you provide more background information?

- OS
- Python version (+origin: system, conda, venv…)
- VTK version
- Anything that might be specific to your setup

---

<div class="post-metadata">

**Author:** ![Marija\_Savtchouk](https://discourse.vtk.org/user_avatar/discourse.vtk.org/marija_savtchouk/32/8541_2.png) [@Marija\_Savtchouk](https://discourse.vtk.org/u/Marija_Savtchouk)\
**Post date:** [March 1, 2024, 5:08pm UTC](https://discourse.vtk.org/t/initialization-failed-for-vtkwebcore-not-compatible-with-vtkmodules-vtkcommoncore/13423/3 "2024-03-01T17:08:45Z")

</div>

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.

> <https://github.com/CadQuery/cadquery/issues/1527#issuecomment-1973326799>
>
> 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.

---

<div class="post-metadata">

**Author:** ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)\
**Post date:** [March 1, 2024, 5:15pm UTC](https://discourse.vtk.org/t/initialization-failed-for-vtkwebcore-not-compatible-with-vtkmodules-vtkcommoncore/13423/4 "2024-03-01T17:15:21Z")

</div>

Thanks for pointing out the origin of the issue. That is very helpful.
