Thanks Luc,
I have now updated by PYTHONPATH as you suggested:
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
, which indeed makes my /opt/local/bin/python2.7 find boost. However, now I get a new error message, which is a little harder to interpret:
import iotbx.pdb
File "/Users/magnus/Downloads/cctbx_sources/iotbx/pdb/__init__.py", line 2, in <module>
from cctbx.array_family import flex
File "/Users/magnus/Downloads/cctbx_sources/cctbx/array_family/flex.py", line 2, in <module>
import scitbx.array_family.flex
File "/Users/magnus/Downloads/cctbx_sources/scitbx/array_family/flex.py", line 2, in <module>
import boost.optional # import dependency
File "/Users/magnus/Downloads/cctbx_sources/boost_adaptbx/boost/optional.py", line 2, in <module>
import boost.python
File "/Users/magnus/Downloads/cctbx_sources/boost_adaptbx/boost/python.py", line 57, in <module>
ext = import_ext("boost_python_meta_ext")
File "/Users/magnus/Downloads/cctbx_sources/boost_adaptbx/boost/python.py", line 36, in import_ext
+ [" "+p for p in sys.path]))
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&, std::__1::pair
Suggestions?
If you want to do it by hand, you need to parrot what cctbx.python does. You need to set the following environment variables:
1. LIBTBX_BUILD that must be the path of cctbx_build next to cctbx_sources or cctbx_project
2. PYTHONPATH at the very least it shall contain $LIBTBX_BUILD/lib:$CCTBXSRC:$CCTBXSRC/boost_adaptbx:$CCTBXSRC/libtbx/pythonpath
where $CCTBXSRC is the full path of cctbx_sources or cctbx_project
3. DYLD_LIBRARY_PATH It shall contain $LIBTBX_BUILD/lib
Best wishes,
Luc
_______________________________________________ cctbxbb mailing list [email protected] http://phenix-online.org/mailman/listinfo/cctbxbb