[vtk-developers] Segfault importing vtk on master

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Nov 26 09:42:37 EST 2018


It's getting added to all.py through the CMake code that simply adds
all wrapped modules to it. I can't think of reason why the
vtkPythonInterpreter module should be Python wrapped at all, however.
Can you try the attached patch, please? Does it work?

Thanks
Utkarsh
On Sun, Nov 25, 2018 at 8:30 PM Prabhu Ramachandran
<prabhu at aero.iitb.ac.in> wrote:
>
> Hi all,
>
> With VTK 8.2.x (master), I run into a segfault when I "import vtk" on Python 3.7 (I doubt it is specific to a particular Python version).  By simply commenting out
>
> from .vtkPythonInterpreter import *
>
> in the all.py module, the segfault is fixed.  I am not sure why this module should be put into all.py? If someone desires it they can manually import it.  Or is there something I am missing?
>
> Thanks!
>
> cheers,
>
> Prabhu
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtk-developers
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dont-wrap-pythoninterpreter.patch
Type: text/x-patch
Size: 372 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/vtk-developers/attachments/20181126/40fe6c7f/attachment.bin>


More information about the vtk-developers mailing list