[vtkusers] Fatal Python error: PyThreadState_Get: no current thread

Isaiah Norton isaiah.norton at gmail.com
Fri Apr 7 22:45:16 EDT 2017


You could debug with vmmap, to see which shared libraries are loaded in the
process.
Or start under lldb and look at output of `image list` when it aborts.

Isaiah

On Fri, Apr 7, 2017 at 4:26 PM, Jayson Kempinger <jkempinger at decisionvis.com
> wrote:

> Hi, I’m trying to install VTK on an iMac running 10.12.  I’m using python
> 3.5.2, compiled from source, and am compiling VTK-7.1.1 from source.
>
> When I run python3 (with -v and -d) and try to import vtk python crashes
> with the following error:
>
> >>> import vtk
> # /Users/username/build/lib/python3.5/site-packages/vtk/__
> pycache__/__init__.cpython-35.pyc matches /Users/username/build/lib/
> python3.5/site-packages/vtk/__init__.py
> # code object from '/Users/username/build/lib/
> python3.5/site-packages/vtk/__pycache__/__init__.cpython-35.pyc'
> # /Users/username/build/lib/python3.5/__pycache__/__future__.cpython-35.pyc
> matches /Users/username/build/lib/python3.5/__future__.py
> # code object from '/Users/username/build/lib/python3.5/__pycache__/__
> future__.cpython-35.pyc'
> import '__future__' # <_frozen_importlib_external.SourceFileLoader object
> at 0x1073032e8>
> # /Users/username/build/lib/python3.5/site-packages/vtk/__
> pycache__/vtkCommonCore.cpython-35.pyc matches /Users/username/build/lib/
> python3.5/site-packages/vtk/vtkCommonCore.py
> # code object from '/Users/username/build/lib/
> python3.5/site-packages/vtk/__pycache__/vtkCommonCore.cpython-35.pyc'
> Fatal Python error: PyThreadState_Get: no current thread
> zsh: abort      python3 -v -d
>
> From what I’ve read online it sounds like this is due to a python
> mismatch, i.e. building VTK against a different python version than the
> version it is run under.  I’ve searched through the advanced cmake
> configuration and can’t find any reference to the system built-in python2
> interpreter.
>
> Any suggestions on what might be going wrong?
>
> Thanks!
> Jayson
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170407/663cddb4/attachment.html>


More information about the vtkusers mailing list