[vtkusers] VTK+Python on Mac OS X - no module named vtk error in Python

Prashanth prashanth.dumpuri at gmail.com
Sat Jun 6 09:07:39 EDT 2015


All,

I'm trying to use Python Wrapping for VTK on Mac OS. I'm running Mac OS X
10.10.3 and used cmake 3.2.2, XCode 6.3.2, Python 2.7, VTK-6.2 to build
VTK. (I made sure Shared libraries and Python wrapping were turned on
during cmake process).

Everything built fine but I get '*No module named vtk*' error when I try to
'import vtk' in a python shell. Below are my .bash_profile variables

---------------------------------------------------------
export PATH=
~/MyPrograms/VTK-6.2.0-Build/lib/:~/MyPrograms/VTK-6.2.0-Build/bin:$PATH

export
PYTHONPATH=~/MyPrograms/VTK-6.2.0/Wrapping/Python:~/MyPrograms/VTK-6.2.0-Build/bin

export LD_LIBRARY_PATH=~/MyPrograms/VTK-6.2.0-Build/lib/

export DYLD_FALLBACK_LIBRARY_PATH=~/MyPrograms/VTK-6.2.0-Build/bin/

---------------------------------------------------------

Can someone please help me fix this error?

Prashanth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150606/da3ffc31/attachment.html>


More information about the vtkusers mailing list