[vtkusers] vtk import fails from python
    Eric E. Monson 
    emonson at cs.duke.edu
       
    Thu May 29 08:39:53 EDT 2008
    
    
  
Hey Rahul,
The LD_LIBRARY_PATH and PYTHONPATH would need to be set before you use  
VTK in Python. The setup.py should be run automatically when you run  
'make install' for the VTK build if you are using something UNIXy.
Can you import vtk from within the vtkpython that is built along with  
VTK? What platform are you using (so someone with specific experience  
might be able to chime in).
-Eric
------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group
On May 28, 2008, at 10:12 PM, Rahul Nabar wrote:
> I have vtk working now but from python 'import vtk' still fails.
>
> Question: The README.txt within VTK/Wrappings/Python says I must set
> the LD_LIBRARY_PATH and PYTHONPATH. Is that before compilation or
> before using it?
>
> Will the setup.py in the Python directory automatically be run by make
> install or do I have to run it manually? Any other tips about getting
> python and vtk working together? Or perhaps a set of instructions
> somewhere?
>
> Thanks!
>
>
> -- 
> Rahul
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
    
    
More information about the vtkusers
mailing list