[cctbxbb] Boost Import Error

Luc Bourhis luc_j_bourhis at mac.com
Tue Jun 3 11:47:01 PDT 2014


Hi Magnus,

you need to use the wrappers cctbx.python instead of python as it sets PYTHONPATH correctly so as to add that cctbx_sources/boost.

Best wishes,

Luc

On 3 Jun 2014, at 20:33, Magnus Andersson <magnus.andersson at scilifelab.se> wrote:

> Hi,
> 
> I've installed the cctbx package from the selfextracting file found in http://cci.lbl.gov/cctbx_build/ 
> 
> but I run into problems when importing cctbx in my python script:
> 
>     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
> ImportError: No module named boost.optional
> 
> It is flex.py that wants to import boost.optional and does not find it. 
> 
> However, I find these three files:
> 
> optional.hpp		optional_fwd.hpp	optional_io.hpp
> 
> in the following directory:
> 
> /Users/magnus/Downloads/cctbx_sources/boost/boost/optional
> 
> which suggests that it's present. What am I missing here? I'm using Mac OS X Version 10.9.3 and Python2.7.
> 
> Cheers,
> 
> Magnus
> 
> _______________________________________________
> cctbxbb mailing list
> cctbxbb at phenix-online.org
> http://phenix-online.org/mailman/listinfo/cctbxbb

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://phenix-online.org/pipermail/cctbxbb/attachments/20140603/dab2eb5b/attachment.htm>


More information about the cctbxbb mailing list