[vtk-developers] problems with VTK python module installation on OSX (after a custom build)

Prabhu Ramachandran prabhu at aero.iitb.ac.in
Wed Sep 3 13:16:06 EDT 2008


Darren Weber wrote:
> 
> I've discovered a minor problem with the VTK python installation (from 
> build) on OSX.  I'm basically having library path issues and I don't 
> know how to bend VTK build-install to fit OSX python or how to bend OSX 
> python to use the default VTK install paths.
[...]
> However, despite my attempt to get the module installed in the "right" 
> place, I get this traceback during the import:
> 
>  dweber at weber-mbp ~/src/kitware/VTK_build ]$ which python
[...]
> ImportError: 
> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/vtk/libvtkCommonPython.so, 
> 10): Library not loaded: libvtkCommonPythonD.5.2.dylib
>   Referenced from: 
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/vtk/libvtkCommonPython.so
>   Reason: image not found
>  >>>
> 
> 
> This is where the libvtkCommon* libs are at:
> 
> /usr/local/lib/python2.5/site-packages/vtk/libvtkCommonPython.so
> /usr/local/lib/vtk-5.2/libvtkCommonPythonD.5.2.0.dylib
> /usr/local/lib/vtk-5.2/libvtkCommonPythonD.5.2.dylib
> /usr/local/lib/vtk-5.2/libvtkCommonPythonD.dylib

Try this:

export DYLD_LIBRARY_PATH=/usr/local/lib/vtk-5.2

Then rerun Python and see if import vtk works at all.

cheers,
prabhu



More information about the vtk-developers mailing list