[vtkusers] wx python scripts segfault

cjauvin cjauvin at gmail.com
Thu Nov 3 19:12:30 EDT 2011


I just set up VTK 5.6.1 on a brand new MacBook Air running Lion, using
MacPorts 2.0.3.

I had to perform the exact same fix, in the same file, for me now located:

/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/vtk/wx/wxVTKRenderWindowInteractor.py

And I'm very happy to report that my somewhat complex Python-VTK application
works like a charm on this new platform, which is *very* nice!

Some things possibly of interest to people wanting to go this
stress-inducing way:

* Although Python 2.7 was on my base system before I started the whole
process (I don't know if it comes included, or if it was included by
Xcode?), the VTK installation is performed (and only compatible with) for
Python 2.6; everything is taken care of very nicely by MacPorts, but you
have to be aware of this, because it is somewhat disheartening to wait for a
*long* time for everything to build, and then be rewarded by an ImportError
when trying to "import vtk"..

* It takes *ages*, because everything has to be built from scratch (that's
the way MacPorts seems to be working).. I had many additional Python
modules, adding to the total time (and triggering the build of no more than
TWO gcc versions!) but all in all, I can report that the wait was really
worth it.

Thank you VTK team for such a nice and truly cross-platform/language
product!


--
View this message in context: http://vtk.1045678.n5.nabble.com/wx-python-scripts-segfault-tp1234471p4962625.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list