<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;">Thanks Luc,<div><br></div><div>I have now updated by PYTHONPATH as you suggested:</div><div><br></div><div><div style="margin: 0px; font-family: Courier; color: rgb(255, 240, 165); background-color: rgb(19, 119, 62); position: static; z-index: auto;">export PYTHONPATH=/Users/magnus/Downloads/cctbx_sources:/opt/local/bin:/Users/magnus/Downloads/cctbx_build/lib:/Users/magnus/Downloads/cctbx_sources:/Users/magnus/Downloads/cctbx_sources/boost_adaptbx:/Users/magnus/Downloads/cctbx_sources/libtbx/pythonpath:/usr/local/lib</div><div><div><br></div><div>, which indeed makes my /opt/local/bin/python2.7 find boost. However, now I get a new &nbsp;error message, which is a little harder to interpret:</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp;&nbsp;import iotbx.pdb</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; File "/Users/magnus/Downloads/cctbx_sources/iotbx/pdb/__init__.py", line 2, in &lt;module&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; from cctbx.array_family import flex</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; File "/Users/magnus/Downloads/cctbx_sources/cctbx/array_family/flex.py", line 2, in &lt;module&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; import scitbx.array_family.flex</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; File "/Users/magnus/Downloads/cctbx_sources/scitbx/array_family/flex.py", line 2, in &lt;module&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; import boost.optional # import dependency</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; File "/Users/magnus/Downloads/cctbx_sources/boost_adaptbx/boost/optional.py", line 2, in &lt;module&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; import boost.python</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; File "/Users/magnus/Downloads/cctbx_sources/boost_adaptbx/boost/python.py", line 57, in &lt;module&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; ext = import_ext("boost_python_meta_ext")</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; File "/Users/magnus/Downloads/cctbx_sources/boost_adaptbx/boost/python.py", line 36, in import_ext</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; + ["&nbsp; "+p for p in sys.path]))</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">ImportError: __import__("boost_python_meta_ext"): dlopen(/Users/magnus/Downloads/cctbx_build/lib/boost_python_meta_ext.so, 2): Symbol not found: boost::python::objects::function_object(boost::python::objects::py_function const&amp;, std::__1::pair&lt;boost::python::detail::keyword const*, boost::python::detail::keyword const*&gt; const&amp;)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; Referenced from: /Users/magnus/Downloads/cctbx_build/lib/boost_python_meta_ext.so</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; Expected in: /usr/local/lib/libboost_python.dylib</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp;in /Users/magnus/Downloads/cctbx_build/lib/boost_python_meta_ext.so</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; sys.path:</div><p style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200); min-height: 13px;">&nbsp;&nbsp; &nbsp;<br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /Users/magnus/Documents/TR-WAXS/magnus_testing/PyWAXS</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /Users/magnus/.venvburrito/lib/python/distribute-0.6.32-py2.7.egg</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /Users/magnus/.venvburrito/lib/python/virtualenv-1.8.4-py2.7.egg</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /Users/magnus/.venvburrito/lib/python/virtualenvwrapper-3.6-py2.7.egg</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /Users/magnus/.venvburrito/lib/python/stevedore-0.8-py2.7.egg</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /Users/magnus/.venvburrito/lib/python/virtualenv_clone-0.2.4-py2.7.egg</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /Users/magnus/.venvburrito/lib/python</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /Users/magnus/Downloads/cctbx_sources</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /opt/local/bin</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /Users/magnus/Downloads/cctbx_build/lib</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /Users/magnus/Downloads/cctbx_sources/boost_adaptbx</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /Users/magnus/Downloads/cctbx_sources/libtbx/pythonpath</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /usr/local/lib</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/readline</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyObjC</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(44, 103, 200);">&nbsp; &nbsp; /Library/Python/2.7/site-packages</div></div><div><br></div><div>I don't know how to deal with this - any suggestions?</div><div><br></div><div>Thanks,</div><div><br></div><div>Magnus</div><div><br></div><div>On 03 Jun 2014, at 23:44, Luc Bourhis &lt;<a href="mailto:luc_j_bourhis@mac.com">luc_j_bourhis@mac.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><blockquote type="cite">Suggestions?<br></blockquote><br>If you want to do it by hand, you need to parrot what cctbx.python does. You need to set the following environment variables:<br><br>1. LIBTBX_BUILD<br>that must be the path of cctbx_build next to cctbx_sources or cctbx_project<br><br>2. PYTHONPATH<br>at the very least it shall contain $LIBTBX_BUILD/lib:$CCTBXSRC:$CCTBXSRC/boost_adaptbx:$CCTBXSRC/libtbx/pythonpath<br><br>where $CCTBXSRC is the full path of cctbx_sources or cctbx_project<br><br>3. DYLD_LIBRARY_PATH <br>It shall contain $LIBTBX_BUILD/lib<br><br>Best wishes,<br><br>Luc<br><br>_______________________________________________<br>cctbxbb mailing list<br><a href="mailto:cctbxbb@phenix-online.org">cctbxbb@phenix-online.org</a><br>http://phenix-online.org/mailman/listinfo/cctbxbb<br></blockquote></div><br></div></body></html>