<div dir="ltr">Thanks, David.<div><br></div><div>I now get this error - "No module named vtkCommonCorePython". Below is the complete error message</div><div><br></div>Traceback (most recent call last):<br><br> File "<stdin>", line 1, in <module><br> File "/MyPrograms/VTK-6.2.0-Build/Wrapping/Python/vtk/__init__.py", line 39, in <module> <div> from vtkCommonCore import *</div><div> File "/Users/prashanthdumpuri/MyPrograms/VTK-6.2.0-Build/Wrapping/Python/vtk/vtkCommonCore.py", line 1, in <module></div><div> from vtkCommonCorePython import *</div><div> ImportError: No module named vtkCommonCorePython</div><div><br></div><div>And, for the record here's a list of my .bash_profile variables</div><div><br></div><div>PYTHONPATH </div><div>/MyPrograms/VTK-6.2.0-Build/Wrapping/Python:/MyPrograms/VTK-6.2.0-Build/bin/Debug:/MyPrograms/VTK-6.2.0-Build/bin/Release</div><div><br></div><div>DYLD_LIBRARY_PATH</div><div>/MyPrograms/VTK-6.2.0-Build/lib/Debug:/MyPrograms/VTK-6.2.0-Build/lib/Release</div><div><br></div><div>PATH (relevant to VTK)</div><div>/MyPrograms/VTK-6.2.0-Build/lib/Debug:/MyPrograms/VTK-6.2.0-Build/lib/Release:/MyPrograms/VTK-6.2.0-Build/lib/Debug:/MyPrograms/VTK-6.2.0-Build/bin/Release:/MyPrograms/VTK-6.2.0-Build/lib/Debug:/MyPrograms/VTK-6.2.0-Build/bin/Debug<br></div><div><br></div><div><br></div><div>Prashanth</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 6, 2015 at 7:20 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Follow up: I had an obvious error in my DYLD_LIBRARY_PATH, it should be the "lib" directory in VTK 6 (it used to be "bin" in VTK 5). I must rely on the rpath too much these days...<div><br></div><div><span style="font-size:12.8000001907349px">export DYLD_LIBRARY_PATH=/Volumes/</span><span style="font-size:12.8000001907349px">Work/Kitware/vtk-build/lib</span><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px"> - David</span></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 6, 2015 at 7:56 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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/<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div><br></div><div> - David</div></font></span><div><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><font color="#888888"><br></font></span></p><span><font color="#888888"><p>Prashanth</p></font></span></div></div></blockquote></div></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>