[vtkusers] Troubles building VTK

Andrea Gavana andrea.gavana at gmail.com
Sun Dec 17 16:16:24 EST 2006


Hi all,

    I have downloaded VTK from CVS, and followed the instructions here:

http://www.kwwidgets.org/Wiki/VTK_Building_VTK

I will be using the Python wrapper for VTK. After building with VS
2003, I tried the following:

Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import vtk

And I got (surprise!):

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python25\Lib\site-packages\vtk\__init__.py", line 36, in <module>
    from common import *
  File "C:\Python25\Lib\site-packages\vtk\common.py", line 9, in <module>
    from vtkCommonPython import *
ImportError: No module named vtkCommonPython

Uhm, well, vtkCommonPython *is* there, I see the dll. I have tried
re-building 3 times (and it is a *very* long process), always with the
same result.

My configuration:

- Windows XP;
- Python 2.5;
- VTK CVS (2 days ago);
- CMake 2.4 (Patch 5)

Am I missing something?

Thank you for every suggestion and pointer...

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/



More information about the vtkusers mailing list