<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello,<div><br></div><div>This error message frequently happens when SimpleITK is compiled against a different version of  Python than the runtime. This generally indicate there is something conflicting funny in your runtime environment.</div><div><br></div><div>I was easily able to use the build script from the conda-recipes repository. I would strongly recommend this approach when building for the anaconda enviroment as it does simplify some of there issue. Your CMake configuration does look correct.</div><div><br></div><div>You should look at you environment variables, such as PATH, DYLD_LIBRARY_PATH, and PYTHONPATH. Additionally look in you user install path [1]. You are looking for multiple copies of the SimpleITK module or library and or python runtime libraries which could confuse the linker.</div><div><br></div><div>Also you can inspect the runtime libraries:</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"> otool -L /Users/blowekamp/anaconda//lib/python2.7/site-packages/SimpleITK/_SimpleITK.so</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">/Users/blowekamp/anaconda//lib/python2.7/site-packages/SimpleITK/_SimpleITK.so:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span class="Apple-tab-span" style="white-space:pre">        </span>@loader_path/../../../libpython2.7.dylib (compatibility version 2.7.0, current version 2.7.0)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span class="Apple-tab-span" style="white-space:pre">    </span>/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 855.17.0)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span class="Apple-tab-span" style="white-space:pre">  </span>/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span class="Apple-tab-span" style="white-space:pre">       </span>/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 60.0.0)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span class="Apple-tab-span" style="white-space:pre"> </span>/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 2577.0.0)</div></div><div><br></div><div>[1] <a href="https://docs.python.org/2/install/#alternate-installation-the-user-scheme">https://docs.python.org/2/install/#alternate-installation-the-user-scheme</a></div><div><br></div><div>Hope this helps,</div><div>Brad</div><div><br></div><div><div><div>On Sep 9, 2014, at 10:55 PM, Vishwa <<a href="mailto:vishwanath.somashekar@gmail.com">vishwanath.somashekar@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">import SimpleITK as sitk</p><p class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Fatal Python error: PyThreadState_Get: no current thread</p><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class="webkit-block-placeholder"></div><p class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Abort trap: 6</p></blockquote></div><br></div></body></html>