[vtkusers] VTK Python Wrapping OSX 10.9

Michka Popoff michkapopoff at gmail.com
Tue Apr 29 17:49:18 EDT 2014


Hi

if you need an easy install way on OS X 10.9, you may try installing vtk through homebrew.
There are formulas for VTK 5 and VTK 6 which contain the right options to install on OS X.
(Installation goes with "brew install vtk --with python")

You can also try my binaries, which are installable through homebrew (https://github.com/iMichka/homebrew-MacVTKITKPythonBottles)
In this case you don't even have to compile VTK :)

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).
Do you have mutliple pythons installed ?
You can also check the python paths in cmake (especially the path of the PYTHON_LIBRARY).

Michka

Le 29 avr. 2014 à 23:36, Laurent Chauvin a écrit :

> Hello VTK Users,
> 
> I'm trying to run an example of VTK (the vtk Cube.py example) in python on Mac OSX 10.9.
> I have VTK 5.10.1 and python 2.7.5.
> 
> I read this page:
> http://www.vtk.org/Wiki/VTK/Tutorials/PythonEnvironmentSetup
> 
> which solved the 'no module named vtk' error, but now, I got another error:
> 
> Fatal Python error: PyThreadState_Get: no current thread
> Abort trap: 6
> 
> I heard the VTK 5.10 is not compatible with OSX 10.9, but it was a while ago (end of 2013).
> 
> 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.
> 
> Does anyone already ran vtk python examples in OSX 10.9 ?
> 
> Thank you very much.
> -Laurent
> 
> -- 
> Laurent Chauvin, MS
> Surgical Navigation and Robotics Laboratory, Radiology Department
> Brigham And Women's Hospital, Harvard Medical School
> http://wiki.ncigt.org/index.php/User:Lchauvin
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140429/1acd58fa/attachment.html>


More information about the vtkusers mailing list