# No module named 'vtkCommonCorePython'

**URL:** https://discourse.vtk.org/t/no-module-named-vtkcommoncorepython/1767
**Category:** Support
**Created:** [September 14, 2019, 11:21am UTC](https://discourse.vtk.org/t/no-module-named-vtkcommoncorepython/1767 "2019-09-14T11:21:16Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![gregthom992](https://discourse.vtk.org/user_avatar/discourse.vtk.org/gregthom992/32/7988_2.png) [@gregthom992](https://discourse.vtk.org/u/gregthom992)
#### Post date: [September 14, 2019, 11:21am UTC](https://discourse.vtk.org/t/no-module-named-vtkcommoncorepython/1767/1 "2019-09-14T11:21:16Z")

</div>

Hi I am using Python 3.7.2 in WinPython. I did python.exe -m pip install vtk to get vtk ‘8.1.2’.  
When I try to build a test example with Tk, I get the error:

> File “C:/Users/GregThom/Development/PycharmProjects/CollisionCheck/vtkcollision.py”, line 11, in   
> from vtk.tk.vtkTkRenderWindowInteractor import vtkTkRenderWindowInteractor  
> File “C:\Users\GregThom\Development\install\WPy64-3720\python-3.7.2.amd64\lib\site-packages\vtk\tk\vtkTkRenderWindowInteractor.py”, line 23, in   
> from .vtkLoadPythonTkWidgets import vtkLoadPythonTkWidgets  
> File “C:\Users\GregThom\Development\install\WPy64-3720\python-3.7.2.amd64\lib\site-packages\vtk\tk\vtkLoadPythonTkWidgets.py”, line 2, in   
> import vtkCommonCorePython  
> ModuleNotFoundError: No module named ‘vtkCommonCorePython’

The error happens at the import line :

> from vtk.tk.vtkTkRenderWindowInteractor import vtkTkRenderWindowInteractor

Is there something I am missing ?

Thanks

GT

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [September 16, 2019, 3:37pm UTC](https://discourse.vtk.org/t/no-module-named-vtkcommoncorepython/1767/2 "2019-09-16T15:37:12Z")

</div>

The pip wheel for VTK does not include the vtkRenderingPythonTkWidgets extension module, so using vtkTkRenderWindowInteractor with a pip-installed vtk is not possible. Unfortunately Tkinter isn’t as popular with the VTK crowd as it used to be.

---

<div class="post-metadata">

### Author: ![pieper](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pieper/32/17_2.png) [@pieper](https://discourse.vtk.org/u/pieper)
#### Post date: [September 16, 2019, 4:37pm UTC](https://discourse.vtk.org/t/no-module-named-vtkcommoncorepython/1767/3 "2019-09-16T16:37:02Z")

</div>

> [@dgobbi](#):
>
> Unfortunately Tkinter isn’t as popular with the VTK crowd as it used to be.

I agree it’s unfortunate. Tkinter is still part of the standard library in python3. It’s robust and much lighter weight than Qt. I don’t use it myself, but distributing vtk with tk enabled would make a lot of sense.

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [September 16, 2019, 5:17pm UTC](https://discourse.vtk.org/t/no-module-named-vtkcommoncorepython/1767/4 "2019-09-16T17:17:47Z")

</div>

The fact that Python packages include the Tk libraries, but not the Tk header files, is part of the problem. Building the vtkRenderingPythonTkWidgets requires finding and building a set of Tcl/Tk libs that are binary-compatible with the Tcl/Tk that the Python package uses.

---

<div class="post-metadata">

### Author: ![pieper](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pieper/32/17_2.png) [@pieper](https://discourse.vtk.org/u/pieper)
#### Post date: [September 17, 2019, 3:35am UTC](https://discourse.vtk.org/t/no-module-named-vtkcommoncorepython/1767/5 "2019-09-17T03:35:48Z")

</div>

Oh, that’s a shame. I wonder if anybody else cares about this or if Tk is just going to fade away.

---

<div class="post-metadata">

### Author: ![gregthom992](https://discourse.vtk.org/user_avatar/discourse.vtk.org/gregthom992/32/7988_2.png) [@gregthom992](https://discourse.vtk.org/u/gregthom992)
#### Post date: [September 20, 2019, 2:01pm UTC](https://discourse.vtk.org/t/no-module-named-vtkcommoncorepython/1767/6 "2019-09-20T14:01:34Z")

</div>

Well thats a bummer …Thanks guys. I really love Tk for my quick and dirty physics projects.

---

<div class="post-metadata">

### Author: ![pieper](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pieper/32/17_2.png) [@pieper](https://discourse.vtk.org/u/pieper)
#### Post date: [September 21, 2019, 6:13pm UTC](https://discourse.vtk.org/t/no-module-named-vtkcommoncorepython/1767/7 "2019-09-21T18:13:11Z")

</div>

FWIW, javascript and html5 are very nice environments with webgl / vtkjs for gui and graphics. Not a one-to-one replacement for Tk/VTK but simplified deployment makes up for it in many cases.
