<div dir="ltr">Hi Chao, <div><br></div><div>I can't solve your issue - you will need to Google the error and identify which search hits pertain to your system. Once you've identified the culprit (or culprits), we can start looking at a solution.</div>
<div><br></div><div>Good luck!</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Cheers,<div>Dave<br></div></div></div>
<br><br><div class="gmail_quote">On Wed, Apr 16, 2014 at 4:43 PM, Chao Wang <span dir="ltr"><<a href="mailto:dynastywang1010@gmail.com" target="_blank">dynastywang1010@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi, Dave,<div><br></div><div>I gave up building it by myself. For the binary installation on Mac, I did 'sudo easy_install SimplyITK'. </div><div><br></div><div>I believe it is successfully installed. But when I entered python, it gave me an error like the above. </div>
<div><br></div><div>Please direct me to where it can be solved. </div><div><br></div><div>Thanks,</div><div><br></div><div>Chao</div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Wed, Apr 16, 2014 at 2:28 PM, David Welch <span dir="ltr"><<a href="mailto:david.m.welch@gmail.com" target="_blank">david.m.welch@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font face="arial, helvetica, sans-serif" color="#000000">Hi Chao,</font><div><font face="arial, helvetica, sans-serif" color="#000000"><br>
</font></div><div><font face="arial, helvetica, sans-serif" color="#000000">Let's keep this on the mailing list. </font><span style="font-family:arial,helvetica,sans-serif">I assumed from your original message you were trying to build with R wrapping, not Python. That was probably your original problem - just turn off R_WRAPPING (or whatever it is in the CMake GUI).</span></div>
<div><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#000000">For your first error: if you Google "<span style="font-size:13px">Fatal Python error: PyThreadState_Get: no current thread" there are a TON of hits. What have you tried?</span></font></div>
<div><br></div><div>Ubuntu is a different issue, so let's take it one OS at a time.</div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Cheers,<div>Dave<br></div></div></div><div><div>
<br><br><div class="gmail_quote">On Wed, Apr 16, 2014 at 2:47 PM, Chao Wang <span dir="ltr"><<a href="mailto:dynastywang1010@gmail.com" target="_blank">dynastywang1010@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I also tried in ubuntu, after sudo easy_install SimpleITK, and <span style="background-color:rgb(148,33,147);color:rgb(255,251,0);font-family:Menlo;font-size:13px">import SimpleITK as sitk,</span><div><span style="background-color:rgb(148,33,147);color:rgb(255,251,0);font-family:Menlo;font-size:13px"><br>
</span></div><div><br></div><div class="gmail_extra">Python still cannot find the package. </div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks,</div><div class="gmail_extra"><br></div><div class="gmail_extra">
Chao<div><div><br><br><div class="gmail_quote">On Wed, Apr 16, 2014 at 11:52 AM, Chao Wang <span dir="ltr"><<a href="mailto:dynastywang1010@gmail.com" target="_blank">dynastywang1010@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><br></div>Hi, David, <div><br></div><div>I switched to binary install and it was successful, I hope. </div><div><br></div><div>But, when I open python and tried to import SimpleITK as <span style="background-color:rgb(148,33,147);color:rgb(255,251,0);font-family:Menlo;font-size:13px">import SimpleITK as sitk</span></div>
<p style="margin:0px;font-size:13px;font-family:Menlo;color:rgb(255,251,0);background-color:rgb(148,33,147)">sitk</p>
<p style="margin:0px;font-size:13px;font-family:Menlo;color:rgb(255,251,0);background-color:rgb(148,33,147)">Fatal Python error: PyThreadState_Get: no current thread</p>
<p style="margin:0px;font-size:13px;font-family:Menlo;color:rgb(255,251,0);background-color:rgb(148,33,147)">Abort trap: 6</p><p style="margin:0px;font-size:13px;font-family:Menlo;color:rgb(255,251,0);background-color:rgb(148,33,147)">
<br></p><p style="margin:0px;font-size:13px;font-family:Menlo;color:rgb(255,251,0);background-color:rgb(148,33,147)"><br></p><div class="gmail_extra"><br><div class="gmail_extra">Process: Python [90787]</div><div class="gmail_extra">
Path: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python</div><div class="gmail_extra">Identifier: Python</div><div class="gmail_extra">Version: 2.7.3 (2.7.3)</div>
<div class="gmail_extra">Code Type: X86-64 (Native)</div><div class="gmail_extra">Parent Process: bash [90730]</div><div class="gmail_extra">Responsible: Terminal [200]</div><div class="gmail_extra">User ID: 501</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Date/Time: 2014-04-16 11:51:19.463 -0700</div><div class="gmail_extra">OS Version: Mac OS X 10.9.2 (13C64)</div><div class="gmail_extra">Report Version: 11</div>
<div class="gmail_extra">Anonymous UUID: D20752B2-FC7D-334A-7483-EAC1C469DF11</div><div class="gmail_extra"><br></div><div class="gmail_extra">Sleep/Wake UUID: 619C0566-6D47-4938-8E49-BD544C13CF52</div><div class="gmail_extra">
<br></div><div class="gmail_extra">Crashed Thread: 0 Dispatch queue: com.apple.main-thread</div><div class="gmail_extra"><br></div><div class="gmail_extra">Exception Type: EXC_CRASH (SIGABRT)</div><div class="gmail_extra">
Exception Codes: 0x0000000000000000, 0x0000000000000000</div><div class="gmail_extra"><br></div><div class="gmail_extra">Application Specific Information:</div><div class="gmail_extra">abort() called</div><div><br></div>
<div>
I wonder if the path is wrong or something else happened? </div><div><br></div><div><br></div><div>Thanks,</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div>Chao<br><br><div class="gmail_quote"><div>
<div>On Wed, Apr 16, 2014 at 9:37 AM, David Welch <span dir="ltr"><<a href="mailto:david.m.welch@gmail.com" target="_blank">david.m.welch@gmail.com</a>></span> wrote:<br>
</div></div><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><div><div dir="ltr">Hi Chao,<div>
<br></div><div>It looks like your path to the R framework is incorrect in your CMake build. Can you email the values for R in your CMakeCache file?</div>
<div> <br clear="all"><div><div dir="ltr">
Cheers,<div>Dave<br></div></div></div>
</div></div>
<br></div></div>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Chao Wang
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br>Chao Wang
</font></span></div></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>Chao Wang
</font></span></div>
</blockquote></div><br></div>