[vtkusers] Installation of VTK for Python on Ubuntu 11.10

lindeval at dmat.ufrr.br lindeval at dmat.ufrr.br
Tue Feb 28 18:18:04 EST 2012


You scored those last options (figure in annex) in cmake config?

----- Mensagem original -----
De: "François Louis LAILLIER" <fanloulaillier at msn.com>
Para: vtkusers at vtk.org
Enviadas: Terça-feira, 28 de Fevereiro de 2012 19:55:22 (GMT-0300) Auto-Detected
Assunto: [vtkusers] Installation of VTK for Python on Ubuntu 11.10


     Hi Vtkusers,

I have a problem during the installation of Vtk lib for python.

I compile a cmake installation files. When I run, the installation, no 
errors.

But when I tryed to import vtk in python i get this error.

 >>> import vtk
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/local/lib/python2.7/dist-packages/vtk/__init__.py", line 
41, in <module>
     from vtkCommonPython import *
ImportError: libvtkCommonPythonD.so.5.8: cannot open shared object file: 
No such file or directory
 >>>

I tryed to "locate" this file on my workstation.

Return of locate function :

fanlou at Bureau:~/Binaries/Linux_build_VTK$ locate libvtkCommonPythonD.so.5.8
/home/fanlou/Binaries/Linux_build_VTK/bin/libvtkCommonPythonD.so.5.8
/usr/lib/libvtkCommonPythonD.so.5.8
/usr/lib/python2.7/vtk-5.8/libvtkCommonPythonD.so.5.8
/usr/lib/python2.7/vtk-5.8/libvtkCommonPythonD.so.5.8.0
/usr/lib/vtk-5.8/libvtkCommonPythonD.so.5.8
/usr/lib/vtk-5.8/libvtkCommonPythonD.so.5.8.0
/usr/local/lib/vtk-5.8/libvtkCommonPythonD.so.5.8
/usr/local/lib/vtk-5.8/libvtkCommonPythonD.so.5.8.0

If the file is located, "everywhere" on my WS, it's because I copy and 
paste the files, to make some try.

Do you have an idea where the .so file must be to be found by python ?

Thank you in advance and take care about you.

François Louis.


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake_vtkpython.png
Type: image/png
Size: 93802 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120228/e35afbcd/attachment.png>


More information about the vtkusers mailing list