Miguel Ortiz Lombardia wrote: > Hi all, > > I want to use the python wrappers for vtk. > I installed vtk54, vtk54-shlibs and vtk54-dev, but they don't include the > wrappers. So I went on and installed pyvtk-py25. > > But then I face this problem: > > (A)> /sw64/bin/python2.5 > Python 2.5.5 (r255:77872, May 15 2010, 03:23:49) > [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin > Type "help", "copyright", "credits" or "license" for more information. >>>> import vtk > Fatal Python error: Interpreter not initialized (version mismatch?) > Abort trap > > This is on: > > OSX 10.6.3 (64bit)
The only vtk version in Fink with which you can run "import vtk" from python is vtk54-cocoa on OSX 10.6. This package uses the system /usr/bin/python2.6 and installs its vtk python bindings into /sw/Library/Python/2.6/site-packages That "import vtk" does not work with python versions 2.4 and 2.5 is an annoying "feature" of python. I have not found a way to link the vtk python plugins in such a way that this would work. Note that the "version mismatch" message is nonsense. The version is the right one, python2.5 just does not like that the modules are linked with libpython2.5.dylib. The python stuff in vtk does work, however, if one runs the "vtkpython" binary instead of the python2.5 interpreter. I guess what all this means is that I (or someone else?) should make a pyvtk version that runs with vtk54-cocoa (or rather some vtk56 variant). But there are just too many versions of python, vtk, and MacOSX around right now. I think I will have time and energy to clean up this and others of my fink packages only after we definitely ditch OSX 10.4 and get rid of python <=2.5 and anything that depends on it. -- Martin -- Martin ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Fink-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-users
