<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 David,<div><br></div><div>I am going to guess that you compiled ITK with shared libraries?</div><div><br></div><div>Most likely python couldn't resolve the ITK library dependencies when it tried to load _SimpleITK.so.</div><div><br></div><div>Try adding the ITK library directory to you LD_LIBRARY_PATH environment variable.</div><div><br></div><div>I am also going to guess that you are relying on CMake setting the RPATH for the libraries based on the build directory for you other projects. SimpleITK explicitly disables this [1], to enable language based packaging from the build tree without using CMake to modify the RPATH. Your case may be a reasonable option to allow the user to configure a default for SKIP_BUILD_RPATH for SimpleITK, but I am not completely sure of the expected and reasonable behavior for this. Nor if anyone else would know how to do it.</div><div><br></div><div>HTH,</div><div>Brad</div><div><br></div><div>[1] <a href="https://github.com/SimpleITK/SimpleITK/blob/master/Code/BasicFilters/src/CMakeLists.txt#L109">https://github.com/SimpleITK/SimpleITK/blob/master/Code/BasicFilters/src/CMakeLists.txt#L109</a></div><div><br><div><div>On Jul 13, 2015, at 2:55 PM, David Welch <<a href="mailto:david.m.welch@gmail.com">david.m.welch@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">Hi Brad, <div><br></div><div>I've built a virtualenv using virtualenvwrapper to use SimpleITK (built using NAMICExternalProjects). <span style="font-family:arial,helvetica,sans-serif">For reproducibility, we'd like to use only dependencies within the </span><span style="font-family:monospace,monospace">${NAMICExtBuild}</span><font face="arial, helvetica, sans-serif"> directory, which makes most of the online installation instructions invalid, AFAIK. </font></div><div><br></div><div>I've prepend the sys.path like so:</div><div><br></div><div><font face="monospace, monospace">add2virtualenv ${NAMICExtBuild}/SimpleITK-build/bin</font></div><div><span style="font-family:monospace,monospace">add2virtualenv</span><span style="font-family:monospace,monospace"> </span><font face="monospace, monospace">${NAMICExtBuild}/SimpleITK-build/lib</font></div><div><span style="font-family:monospace,monospace">add2virtualenv</span><span style="font-family:monospace,monospace"> </span><font face="monospace, monospace">${NAMICExtBuild}/SimpleITK-build/Wrapping</font></div><div><br></div><div>This writes to the <font face="monospace, monospace">$VIRTUAL_ENV/lib/site_packages/_virtualenv_path_extensions.pth</font> file (used by virtualenvwrapper to manage package/module paths). </div><div><br></div><div>I have also tried: </div><div><br></div><div><font face="monospace, monospace">python $</font><span style="font-family:monospace,monospace">{NAMICExtBuild}/SimpleITK-build/Wrapping/PythonPackage/setupegg.py install</span></div><div><font face="monospace, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">within my virtualenv, but no such luck. Any suggestions? </font></div><div><font face="arial, helvetica, sans-serif"><br></font><div><div class="gmail_signature"><div dir="ltr">Cheers,<div>Dave<br></div></div></div></div>
</div></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>_______________________________________________<br>Community mailing list<br>Community@itk.org<br>http://public.kitware.com/mailman/listinfo/community<br></blockquote></div><br></div></body></html>