[vtkusers] VTK Python Wrappers on Red Hat
Darren Weber
darren.weber.lists at gmail.com
Fri May 22 20:57:35 EDT 2009
Hi Brian,
I had similar problems in porting vtk 5.4.0 in macports. My solutions might
work for you on linux:
https://trac.macports.org/browser/trunk/dports/graphics/vtk-devel/Portfile
See variant py25 and py26, where the build bin path has to be replaced with
the install lib path for all the python shared libs (.dylib on OSX, .so on
linux). Do you also have 'install_name_tool' on linux?
Best, Darren
On Wed, May 20, 2009 at 9:54 AM, Chapman, Brian <chapbe at pitt.edu> wrote:
> We are trying to compile VTK with Python (2.5) wrappers on a machine
> running
> Red Hat Enterprise Linux 5.2. VTK compiles and installs fine, but when
> within within Python I try to import vtk I get the following error:
>
> In [1]: import vtk
> ---------------------------------------------------------------------------
> <type 'exceptions.ImportError'> Traceback (most recent call last)
>
> /home/brian/<ipython console> in <module>()
>
> /usr/local/lib/python2.5/site-packages/vtk/__init__.py in <module>()
> 27
> 28 # Load all required kits.
> ---> 29 from common import *
> 30 from filtering import *
> 31 from io import *
>
> /usr/local/lib/python2.5/site-packages/vtk/common.py in <module>()
> 5
> 6 if os.name == 'posix':
> ----> 7 from libvtkCommonPython import *
> 8 else:
> 9 from vtkCommonPython import *
>
> <type 'exceptions.ImportError'>: libvtkCommonPythonD.so.5.0: cannot open
> shared object file: No such file or directory
>
> This library is in fact installed in /usr/local/lib
>
> -rwxr-xr-x 1 root root 5208962 May 20 11:23 libvtkCommonPythonD.so.5.0.4
> lrwxrwxrwx 1 root root 28 May 20 11:23 libvtkCommonPythonD.so.5.0 ->
> libvtkCommonPythonD.so.5.0.4
> lrwxrwxrwx 1 root root 26 May 20 11:23 libvtkCommonPythonD.so ->
> libvtkCommonPythonD.so.5.0
>
> The vtk directory under site-packages also contains a libvtkCommonPython
> library:
>
> -rwxr-xr-x 1 root root 86742 May 20 11:11 libvtkCommonPython.so
>
> Is there something obvious we are missing in the installation process?
> Confused.
>
> Brian
>
>
>
> _______________________________________________
> 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 --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090522/803c2adc/attachment.htm>
More information about the vtkusers
mailing list