<div dir="ltr">Hi Ranveer,<div><br></div><div>The error "PyThreadState_Get: no current thread" almost always means that VTK was linked to the wrong version of Python. I know you said that you checked this, but I recommend that you load CMakeCache.txt into a text editor and do a thorough search to make sure that "python2" does not appear anywhere. My own OS X system builds VTK against Python 3.5.</div><div><br></div><div> - David<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 4, 2016 at 12:25 AM, Ranveer Aggarwal <span dir="ltr"><<a href="mailto:ranveeraggarwal@gmail.com" target="_blank">ranveeraggarwal@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hello all,<div><br></div><div>I have been struggling with this problem for quite some time now. Here's what I did.</div><div><br></div><div>1. Downloaded source tar.gz and untarred it.</div><div>2. Went to the downloaded folder and made a build folder and ran ccmake .. in it.</div><div>3. Set Python Wrapping to on and set Python version as 3.5. Went to advanced options and appropriately set all the Python 3.5 libraries.</div><div>4. Generated the cmake and ran it.</div><div>5. Ran make and then make install</div><div>6. Added "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/vtk/" to PYTHONPATH.</div><div><br></div><div>Now, when I run python3 and do an `import vtk`, I get </div><div><br></div><div><div>Fatal Python error: PyThreadState_Get: no current thread</div><div>Segmentation fault: 11</div></div><div><br></div><div>and Python crashes. Any idea why this could be happening? Any help would be highly appreciated.</div></div><span class=""><font color="#888888"><div dir="ltr">-- <br></div><div dir="ltr"><p dir="ltr">Sincerely,<br>
Ranveer Aggarwal<br>Indian Institute of Technology, Bombay<br>
<a href="http://ranveeraggarwal.com" target="_blank">http://ranveeraggarwal.com</a></p></div></font></span></blockquote></div></div></div></div>