<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi</div><div><br></div><div>if you need an easy install way on OS X 10.9, you may try installing vtk through homebrew.</div><div>There are formulas for VTK 5 and VTK 6 which contain the right options to install on OS X.</div><div>(Installation goes with "brew install vtk --with python")</div><div><br></div><div>You can also try my binaries, which are installable through homebrew (<a href="https://github.com/iMichka/homebrew-MacVTKITKPythonBottles">https://github.com/iMichka/homebrew-MacVTKITKPythonBottles</a>)</div><div>In this case you don't even have to compile VTK :)</div><div><br></div><div>The error you get is often due to a python library mismatch. Cmake is picking up the wrong libraries (the python lib does not correspond to the python executable).</div><div>Do you have mutliple pythons installed ?</div><div>You can also check the python paths in cmake (especially the path of the <span style="color: rgb(221, 17, 68); font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;">PYTHON_LIBRARY</span>).</div><div><br></div><div>Michka</div><br><div><div>Le 29 avr. 2014 à 23:36, Laurent Chauvin a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hello VTK Users,<div><br></div><div>I'm trying to run an example of VTK (the vtk Cube.py example) in python on Mac OSX 10.9.</div><div>I have VTK 5.10.1 and python 2.7.5.</div><div><br></div><div>I read this page:</div>
<div><a href="http://www.vtk.org/Wiki/VTK/Tutorials/PythonEnvironmentSetup">http://www.vtk.org/Wiki/VTK/Tutorials/PythonEnvironmentSetup</a><br></div><div><br></div><div>which solved the 'no module named vtk' error, but now, I got another error:</div>
<div><br></div><div>Fatal Python error: PyThreadState_Get: no current thread</div><div>Abort trap: 6</div><div><br></div><div>I heard the VTK 5.10 is not compatible with OSX 10.9, but it was a while ago (end of 2013).</div>
<div><br></div><div>The example is working when I use the python interpreter in Slicer, so my guess is this is an issue with the environment path, but I cannot figure it out.</div><div><br></div><div>Does anyone already ran vtk python examples in OSX 10.9 ?</div>
<div><br></div><div>Thank you very much.</div><div>-Laurent</div><div><div><div><br></div>-- <br><div dir="ltr"><div>Laurent Chauvin, MS</div><div>Surgical Navigation and Robotics Laboratory, Radiology Department</div><div>
Brigham And Women's Hospital, Harvard Medical School<br></div><div><a href="http://wiki.ncigt.org/index.php/User:Lchauvin" target="_blank">http://wiki.ncigt.org/index.php/User:Lchauvin</a></div></div>
</div></div></div>
_______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br></body></html>