[vtkusers] problems with python and cvs vtk

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Thu Aug 1 22:59:23 EDT 2002


>>>>> "MH" == Magnus Hagdorn <Magnus.Hagdorn at glg.ed.ac.uk> writes:

    >>  Could you do the make install and then run python setup.py
    >> from inside Wrapping/Python and tell us how it goes?  We can
    >> try to iron out any bugs in the script.

    MH> yup, this is what i did:i run setup.py after make install. i
    MH> had to change permissions vtk.pth. it created the sym links,

Ok.  Why did you have to change the permissions of vtk.pth?  site.py
should not be sensitive to permission (except ofcourse everyone has to
have read perms).  The CVS version has read permissions for everyone.

    MH> etc. i double checked there is only one set of
    MH> libvtk*Python.so in my library path. the odd thing is that
    MH> some of the example programs work, i.e. the ones with the
    MH> graphic primitives like cone, etc. it also loads the vtk
    MH> module just fine. i am quite puzzled since it does work when i
    MH> change the python path. maybe not all required files are
    MH> copied. i shall investigate that and let you know what's going
    MH> on.

Yes, this is wierd.  As I understand, after running make install
followed by setup.py, you have the following:

  libvtk*.so in /usr/local/lib/vtk 

  libvtk*Python.so also in /usr/local/lib/vtk there.

  all the *.py files in /usr/lib/python2.2/site-packages/vtk_python
  
  a correct vtk.pth in /usr/lib/python2.2/site-packages/

  correct symlinks in /usr/lib/python2.2/site-packages/vtk_python that
  point to /usr/local/lib/vtk/lib*Python.so

  LD_LIBRARY_PATH set to /usr/local/lib/vtk

  Anything else?

If this is the case I thought everything should work?  Is
/usr/local/VTK/bin also in the linkers path?

thanks,
prabhu


    



More information about the vtkusers mailing list