<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><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;">Did you remove the installed SimpleITK from the setup.py script before running "const install --use-local simpleitk". I am guessing conda didn't install simpleitk correctly because of the old version manually installed. <div><br></div><div>Brad<br><div><div>On Sep 12, 2014, at 10:52 PM, 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_extra"><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">Hi Brad,</span><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">Thanks for all the help. I tried the conda install --use-local simpleitk from the conda-recipes folder. It didn't seem to matter..</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">Here is the thing that I noticed..</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">If I add the path of the lib (~/anaconda/lib) to DYLD_LIBRARY_PATH, then i can get it to work from the python that's invoked from the terminal. However, when I try the same thing from the notebook or from spyder, I get the following error.</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><span class="im"><div>>>import SimpleITK as sitk</div><div>Traceback (most recent call last):</div><div>  File "<stdin>", line 1, in <module></div><div>  File "/Users/dagarshali/anaconda/lib/python2.7/site-packages/SimpleITK-0.8.0.post29-py2.7-macosx-10.5-x86_64.egg/SimpleITK/__init__.py", line 1, in <module></div><div>    from .SimpleITK import *</div><div>  File "/Users/dagarshali/anaconda/lib/python2.7/site-packages/SimpleITK-0.8.0.post29-py2.7-macosx-10.5-x86_64.egg/SimpleITK/SimpleITK.py", line 28, in <module></div><div>    _SimpleITK = swig_import_helper()</div><div>  File "/Users/dagarshali/anaconda/lib/python2.7/site-packages/SimpleITK-0.8.0.post29-py2.7-macosx-10.5-x86_64.egg/SimpleITK/SimpleITK.py", line 24, in swig_import_helper</div><div>    _mod = imp.load_module('_SimpleITK', fp, pathname, description)</div></span><div>ImportError: dlopen(/Users/dagarshali/anaconda/lib/python2.7/site-packages/SimpleITK-0.8.0.post29-py2.7-macosx-10.5-x86_64.egg/SimpleITK/_SimpleITK.so, 2): Library not loaded: libpng15.15.dylib</div><span class="im"><div>  Referenced from: /Users/dagarshali/anaconda/lib/python2.7/site-packages/SimpleITK-0.8.0.post29-py2.7-macosx-10.5-x86_64.egg/SimpleITK/_SimpleITK.so</div><div>  Reason: image not found</div></span></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">Any suggestions?</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></div><div class="gmail_quote">On Fri, Sep 12, 2014 at 6:59 PM, Vishwa <span dir="ltr"><<a href="mailto:vishwanath.somashekar@gmail.com" target="_blank">vishwanath.somashekar@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">Hi Brad,<div>Thanks for all the help. I tried the conda install --use-local simpleitk from the conda-recipes folder. It didn't seem to matter..</div><div><br></div><div>Here is the thing that I noticed..</div><div><br></div><div>If I add the path of the lib (~/anaconda/lib) to DYLD_LIBRARY_PATH, then i can get it to work from the python that's invoked from the terminal. However, when I try the same thing from the notebook or from spyder, I get the following error.</div><div><br></div><div><span class=""><div>>>import SimpleITK as sitk</div><div>Traceback (most recent call last):</div><div>  File "<stdin>", line 1, in <module></div><div>  File "/Users/dagarshali/anaconda/lib/python2.7/site-packages/SimpleITK-0.8.0.post29-py2.7-macosx-10.5-x86_64.egg/SimpleITK/__init__.py", line 1, in <module></div><div>    from .SimpleITK import *</div><div>  File "/Users/dagarshali/anaconda/lib/python2.7/site-packages/SimpleITK-0.8.0.post29-py2.7-macosx-10.5-x86_64.egg/SimpleITK/SimpleITK.py", line 28, in <module></div><div>    _SimpleITK = swig_import_helper()</div><div>  File "/Users/dagarshali/anaconda/lib/python2.7/site-packages/SimpleITK-0.8.0.post29-py2.7-macosx-10.5-x86_64.egg/SimpleITK/SimpleITK.py", line 24, in swig_import_helper</div><div>    _mod = imp.load_module('_SimpleITK', fp, pathname, description)</div></span><div>ImportError: dlopen(/Users/dagarshali/anaconda/lib/python2.7/site-packages/SimpleITK-0.8.0.post29-py2.7-macosx-10.5-x86_64.egg/SimpleITK/_SimpleITK.so, 2): Library not loaded: libpng15.15.dylib</div><span class=""><div>  Referenced from: /Users/dagarshali/anaconda/lib/python2.7/site-packages/SimpleITK-0.8.0.post29-py2.7-macosx-10.5-x86_64.egg/SimpleITK/_SimpleITK.so</div><div>  Reason: image not found</div></span></div><div><br></div><div>Any suggestions?</div></div></blockquote></div><br><br></div></div>
</blockquote></div><br></div></body></html>