<div dir="ltr"><div>Hi Prashanth,</div><div><br></div><div>The LD_LIBRARY_PATH variable is ignored on OS X, use DYLD_LIBRARY_PATH instead. This is how the variables are set on my system:</div><div><br></div><div>export PATH=/Volumes/Work/Kitware/vtk-build/bin:$PATH<br></div><div>export DYLD_LIBRARY_PATH=/Volumes/Work/Kitware/vtk-build/bin</div><div>export PYTHONPATH=/Volumes/Work/Kitware/vtk-build/Wrapping/Python:/Volumes/Work/Kitware/vtk-build/lib</div><div>export TCLLIBPATH=/Volumes/Work/Kitware/vtk-build/Wrapping/Tcl/<br></div><div><br></div><div> - David</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 6, 2015 at 7:07 AM, Prashanth <span dir="ltr"><<a href="mailto:prashanth.dumpuri@gmail.com" target="_blank">prashanth.dumpuri@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">All,<div><br></div><div>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). </div><div><br></div><div>Everything built fine but I get '<i>No module named vtk</i>' error when I try to 'import vtk' in a python shell. Below are my .bash_profile variables</div><div><span><br></span></div><div><span>-------------------</span>--------------------------------------</div><div><span>export PATH=</span>~/MyPrograms/VTK-6.2.0-Build/lib/:~/MyPrograms/VTK-6.2.0-Build/bin:$PATH</div><div><p><span>export PYTHONPATH=~/MyPrograms/VTK-6.2.0/Wrapping/Python:~/MyPrograms/VTK-6.2.0-Build/bin</span></p>
<p>export LD_LIBRARY_PATH=~/MyPrograms/VTK-6.2.0-Build/lib/<br><span></span></p>
<p>export DYLD_FALLBACK_LIBRARY_PATH=~/MyPrograms/VTK-6.2.0-Build/bin/<br><span></span></p><p>---------------------------------------------------------<br></p><p>Can someone please help me fix this error?<span class=""><font color="#888888"><br></font></span></p><span class=""><font color="#888888"><p>Prashanth</p></font></span></div></div></blockquote></div></div></div>