[vtkusers] VTK Problem Upon Python 2.5 Upgrade

Dominik Szczerba domi at vision.ee.ethz.ch
Mon Aug 20 07:52:47 EDT 2007



Shari Rolnick wrote:
>> Hmm, what shell do you use ??
>> If you use (t)csh shell, you have to set your environment variable in
>> csh file,
>> not a (ba)sh one.
>> If you use (ba)sh shell, you do not have to source it (source is not a
>> bash builtin shell, but tcsh).
> 
> I'm using bash here.  (I generally use t/csh at work, so that would probably
> explain my confusion there.  It seemed to work, though . . .)
> 
>>>> BTW, your python seems to looking for in /usr/local/src, looks
>>>> weird to me...
>>>>
>>> I think that was just my inept installation.  I put the source code for
>> VTK
>>> there, but when I built it, I think I just built it in place rather than
>>> giving it a different directory.  Will that hurt anything?
>>>
>> So what should be the meaning of the LD_LIBRARY_PATH ??
>> python has to look for libs in /usr/local/lib, not in /usr/local/src !
>>
>> Where are your VTK libs installed ?
> /usr/local/lib contains all the libvtk*.so files.  It also contains a
> python2.4 directory, a python2.5 directory, and a vtk-5.0 directory.  Will
> it hurt anything to have both python directories there?  I'm also not sure
> what the vtk-5.0 directory is - here is what it contains:
> 
> [shari at localhost vtk-5.0]$ ll
> total 180
> drwxr-xr-x  2 root root  4096 2007-08-18 19:34 CMake drwxr-xr-x  2 root root
> 4096 2007-05-09 15:42 doxygen
> -rw-r--r--  1 root root 10207 2007-05-09 15:42 hints
> -rw-r--r--  1 root root  1862 2007-05-09 15:42 pkgIndex.tcl drwxr-xr-x 15
> root root  4096 2007-05-09 15:42 tcl drwxr-xr-x  2 root root  4096
> 2007-05-09 15:42 testing
> -rw-r--r--  1 root root  1469 2007-05-09 15:42 UseVTK.cmake
> -rw-r--r--  1 root root  1301 2007-05-09 15:42 VTKBuildSettings.cmake
> -rw-r--r--  1 root root  4964 2007-05-09 15:42 vtkCommonKit.cmake
> -rw-r--r--  1 root root  6458 2007-08-18 19:34 VTKConfig.cmake
> -rw-r--r--  1 root root  7675 2007-05-09 15:42 vtkFilteringKit.cmake
> -rw-r--r--  1 root root   990 2007-05-09 15:42 vtkGenericFilteringKit.cmake
> -rw-r--r--  1 root root  5500 2007-05-09 15:42 vtkGraphicsKit.cmake
> -rw-r--r--  1 root root  1511 2007-05-09 15:42 vtkHybridKit.cmake
> -rw-r--r--  1 root root  3483 2007-05-09 15:42 vtkImagingKit.cmake
> -rw-r--r--  1 root root  4069 2007-05-09 15:42 vtkIOKit.cmake
> -rw-r--r--  1 root root  3498 2007-05-09 15:42 VTKLibraryDepends.cmake
> -rw-r--r--  1 root root  3717 2007-05-09 15:42 vtkRenderingKit.cmake
> -rw-r--r--  1 root root  2662 2007-05-09 15:42 vtkVolumeRenderingKit.cmake
> -rw-r--r--  1 root root  1005 2007-05-09 15:42 vtkWidgetsKit.cmake
> [shari at localhost vtk-5.0]$

I dont see a single *.so file in that folder.


> 
> When I try to run vtkpython, here is what I get:
> 
> [shari at localhost testing]$ vtkpython
> vtkpython: error while loading shared libraries: libvtksys.so.5.0: cannot
> open shared object file: No such file or directory
> [shari at localhost testing]$

you dont have the right settings in either PYTHONPATH or
LD_LIBRARY_PATH. Post both of them in your env.

- Dominik


> 
> 
> Thank you again for all your help!
> 
> Shari
> 
> ____________________________________________________________________________
> This email has been scanned at loralee.net and is believed to be virus free.
> _______________________________________________
> 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

-- 
Dominik Szczerba, Ph.D.
Computer Vision Lab CH-8092 Zurich
http://www.vision.ee.ethz.ch/~domi



More information about the vtkusers mailing list