guillegiraldo guillegiraldo - 1 year ago 357
Python Question

Module vtkCommonCorePython not found in windows

I have installed python on Windows through Python (X,Y) v2.7.10. If I try to import the module, I get the following error:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\vtk\tk\", line 16, in <module>
from vtkLoadPythonTkWidgets import vtkLoadPythonTkWidgets
File "C:\Python27\lib\site-packages\vtk\tk\", line 2, in <module>
import vtkCommonCorePython
ImportError: No module named vtkCommonCorePython

The PATH variable is correctly set, and contains "C:\Python27\Lib\site-packages\vtk", wich contains the file vtkCommonCorePython.pyd.

Has anyone had this issue or has a solution?

Edit: Solved but won't work

VTK has decided to drop support for Tkinter widgets, so if You, like me, want it back, we can ask for it here:

Answer Source

Thanks to @GregNash, and his question How do I use Liclipse to write a ParaView script? I found the solution.

Python(x,y) didn't create the environment variable PYTHONPATH. Simply creating the variable solved the problem:

PYTHONPATH: C:\Python27\Lib\site-packages\vtk;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download