[vtk-developers] VTK + Python + AMD64 = broken

David Cole david.cole at kitware.com
Fri May 2 12:13:40 EDT 2008


If you commit the changes to CVS HEAD, (and nobody objects to the
changes...) I will merge them to the VTK-5-2 branch...


On Fri, May 2, 2008 at 12:08 PM, Mathieu Malaterre <
mathieu.malaterre at gmail.com> wrote:

> I have just spent yet-another hour trying to figure out why the exact
> same code would seg fault when called from the python-wrapped layer
> and not the C++ layer. This is yet again the famous dlopen +
> RTLD_GLOBAL that still need to be loaded (well at least on my debian
> linux system).
>
> For some obscure reason the 'dl' python module has been removed on
> AMD64, but the API can be found in the equivalent 'DLFCN' module.
> Therefore I use the following approach in python: try first to load dl
> then DLFCN:
>
>
> http://gdcm.svn.sourceforge.net/viewvc/gdcm/trunk/Utilities/VTK/vtkgdcm.py?view=markup
>
> ...
>
>  try:
>    import dl
>  except ImportError:
>    # are we on AMD64 ?
>    try:
>      import DLFCN as dl
>    except ImportError:
>      dl = None
> ...
>
> Could this be fixed in VTK 5.2 ?
>
> Thanks,
> --
> Mathieu
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20080502/6c3d86f0/attachment.html>


More information about the vtk-developers mailing list