[vtkusers] Mac os x: succcess, but ... More...

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Fri Apr 26 00:41:39 EDT 2002


>>>>> "MR" == Mike Robertson <fermion at mac.com> writes:

    MR> Anyone have any idea what could be confusing MayaVi here?
    MR> These modules exist. The one it's referring to is in
    MR> /usr/local/bin... Perhaps the .so is bothering it?

    MR> Thanks

    MR> [sull-10-114:documents/temp/mayavi-1.0] root# setenv
    MR> PYTHONPATH=/usr/local/bin/:/usr/local/vtk/VTK/Wrapping/Python/
    MR> ?  exec "from "+kit_name+" import *" File "<string>", line 1,
    MR> in ?  ImportError: No module named libvtkCommonPython
    MR> [sull-10-114:documents/temp/mayavi-1.0] root#

Are you sure that /usr/local/bin has the file libvtkCommonPython.so?
You could also try to cd to /usr/local/bin and then run the python
interpreter there and try an

>>> import libvtkCommonPython

and see what you get

Do you also need to set your linker to load the libaries in
/usr/local/bin by setting the appropriate LD_LIBRARY_PATH

LD_LIBRARY_PATH=/usr/local/bin

prabhu



More information about the vtkusers mailing list