<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>First I would look at the output of the conda build. What that OK? Did it give a successful output? Next I would look into the site packages directory in your anaconda installation ( e.g. ~/<span style="font-family: Menlo; font-size: 11px;">anaconda//lib/python2.7/site-packages) </span>for the SimpleITK directory.</div><div><br></div><div>Brad</div><div><div><div>On Sep 11, 2014, at 12:43 AM, Vishwa <<a href="mailto:vishwanath.somashekar@gmail.com">vishwanath.somashekar@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div class="gmail_quote"><br><br><div dir="ltr">I did install anaconda again and ran the conda build like you suggest. It ran without and problem. However, when I import simpleitk, it gives a error saying no module found. <div><br></div><div>Any ideas?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Vishwa</div></font></span></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Wed, Sep 10, 2014 at 10:10 AM, Bradley Lowekamp [via ITK Insight Users] <span dir="ltr"><<a href="mailto:ml-node+s2283740n7586186h92@n2.nabble.com" target="_blank">ml-node+s2283740n7586186h92@n2.nabble.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><span>

        Hello,<div><br></div><div>You need to use the conda build environment. Look at the readme in this repo[1].</div><div><br></div><div>Basically you'll need to do the following:</div><div><br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo">$ conda install conda-build</div></div><div>$ cd src</div><div>$ git clone <a href="https://github.com/thewtex/conda-recipes.git" rel="nofollow" link="external" target="_blank">https://github.com/thewtex/conda-recipes.git</a></div><div>$ git checkout simpleitk-clone-url</div><div>$ <span style="font-family:Menlo;font-size:11px">conda build simpleitk</span></div><div><br></div><div><br></div><div><br></div><div>[1] <a href="https://github.com/conda/conda-recipes" rel="nofollow" link="external" target="_blank">https://github.com/conda/conda-recipes</a></div></span></span><div><br><div><span class=""><div>On Sep 10, 2014, at 11:01 AM, Vishwa <<a href="http://user/SendEmail.jtp?type=node&node=7586186&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:</div><br></span><blockquote style="border-left:2px solid #cccccc;padding:0 1em" type="cite"><span class=""><span><div dir="ltr">Thanks very much for the information. I looked at the conda recipe. There are three files. <div>One is .sh file, the second is yaml file, and the third is just a test code. How am i to use that recipe to compile..</div><div><br></div><div>There are variables like Source_Dir in the .sh file. How do i get those. I am not familiar using it. </div><div><br></div><div>Am I to just copy the file build.sh into the SimpleITK source code directly and run sh ./build.sh? I tried that, and it ran for a while and gave an error. </div><div><br></div><div>Best regards,</div><div>Vishwa</div><div><br></div><div><br></div></div></span></span><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Wed, Sep 10, 2014 at 9:13 AM, Bradley Lowekamp <span dir="ltr"><<a href="http://user/SendEmail.jtp?type=node&node=7586186&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>></span> wrote:<br></span><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><div style="word-wrap:break-word"><span class=""><span>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 style="white-space:pre-wrap">        </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 style="white-space:pre-wrap">      </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 style="white-space:pre-wrap">    </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 style="white-space:pre-wrap"> </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 style="white-space:pre-wrap">   </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" rel="nofollow" link="external" target="_blank">https://docs.python.org/2/install/#alternate-installation-the-user-scheme</a></div><div><br></div><div>Hope this helps,</div><div>Brad</div></span></span><span class=""><span><span><div><br></div><div><div><div>On Sep 9, 2014, at 10:55 PM, Vishwa <<a href="http://user/SendEmail.jtp?type=node&node=7586186&i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:</div><br><blockquote style="border-left:2px solid #cccccc;padding:0 1em" type="cite"><p style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">import SimpleITK as sitk</p><p style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing: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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></div><p style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Abort trap: 6</p></blockquote></div><br></div></span></span></span></div><span class=""><br>_____________________________________<br>
Powered by <a href="http://www.kitware.com/" rel="nofollow" link="external" 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" rel="nofollow" link="external" 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" rel="nofollow" link="external" 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" rel="nofollow" link="external" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="nofollow" link="external" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div><span class=""><br>_____________________________________
<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" rel="nofollow" link="external" 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" rel="nofollow" link="external" 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" rel="nofollow" link="external" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:
<br><a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="nofollow" link="external" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>

        
        
        
        <br>
        <br>
        </span><span class=""><hr noshade="" size="1">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><span>
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </span><a href="http://itk-insight-users.2283740.n2.nabble.com/using-simpleITK-with-anaconda-python-distribution-tp7586179p7586186.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/using-simpleITK-with-anaconda-python-distribution-tp7586179p7586186.html</a>
        </div><div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from using simpleITK with anaconda python distribution, <a href="http://itk-insight-users.2283740.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7586179&code=ZGFnYXJzaGFsaUBnbWFpbC5jb218NzU4NjE3OXwtMTU3ODY3ODY5MQ==" target="_blank">click here</a>.<br>
                <a href="http://itk-insight-users.2283740.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank">NAML</a>
        </div></div></span></blockquote></div><br></div>
</div><br></div>
_____________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://www.kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://public.kitware.com/mailman/listinfo/insight-users<br></blockquote></div><br></div></body></html>