[vtkusers] Cant execute cone.py

tom fogal tfogal at apollo.sr.unh.edu
Mon Jul 12 11:06:31 EDT 2004


>I am using MSVC++ ( 6 ) and winXP.
>problem 1>
>Then i tried  to compile vtk with python and tcl wrapping on....then resulted 
>in error while building vtkHybridTCL.dll,vtkParllelTCL.dll,vtkRenderingTkwidge
>t.dlland,vtk.exe.But all the python libraries are properly build. The error wh
>ile building above libraris were.......
>"cant find XLib.h".....HOW CAN I SOLVE THIS??????

VTK probably configured to compile for the X windows system. Run
through cmake again and make sure you are compiling VTK for windows.

>Problem 2>
> 
>Then I tried to run cone.py from command prompt as
>     python_d cone.py
> 
>while PATH contains c:\ Python-2.3.4\PCbuild;c:\VTKbin\bin\debug
>and PYTHONPATH=c:\VTKbin\Wrapping\Python;c:\VTKbin\bin\debig ( i have tried wi
>th c:\VTK\Wrapping\Python [ source dir] ) 
> and PYTHONHOME=c:\ Python-2.3.4\PCbuild
> 
>but i got the error "ImportError: No module named vtkCommonPython"
>running with vtkpython resulted in the same error.

This is because VTK wasn't built with python support. You will need to
build in the appropriate support to be able to run python scripts.

-tom



More information about the vtkusers mailing list