[cctbxbb] Boost Import Error

Magnus Andersson magnus.andersson at scilifelab.se
Wed Jun 4 07:47:34 PDT 2014


I get:

@@@@@@ '' @@@@@@
Traceback (most recent call last):
  File "PyWAXS.py", line 11, in <module>
    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 129, in <module>
    floating_point_exceptions = floating_point_exceptions()
  File "/Users/magnus/Downloads/cctbx_sources/boost_adaptbx/boost/python.py", line 122, in floating_point_exceptions
    import libtbx.load_env
  File "/Users/magnus/Downloads/cctbx_sources/libtbx/load_env.py", line 5, in <module>
    libtbx.env = libtbx.env_config.unpickle()
  File "/Users/magnus/Downloads/cctbx_sources/libtbx/env_config.py", line 2195, in unpickle
    set_preferred_sys_prefix_and_sys_executable(build_path=build_path)
  File "/Users/magnus/Downloads/cctbx_sources/libtbx/env_config.py", line 2111, in set_preferred_sys_prefix_and_sys_executable
    if (op.samefile(build_path, dirname)):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py", line 162, in samefile
    s1 = os.stat(f1)
OSError: [Errno 2] No such file or directory: ''

i.e. looks empty, or?

Magnus

On 04 Jun 2014, at 16:38, Luc Bourhis <luc_j_bourhis at mac.com> wrote:

>> I'm afraid I'm not sure what you mean? The directory /Users/magnus/Downloads/cctbx_build does exist. 
> 
> I am at a loss here, and I worked on some of that code! Could you add the following line
> 
> print "@@@@@@ %r @@@@@@" % build_path
> 
> as the first line of the function set_preferred_sys_prefix_and_sys_executable in libtbx/env_config.py, please?
> 
> Luc
> 
> 
> _______________________________________________
> 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/20140604/ba047f56/attachment-0001.htm>


More information about the cctbxbb mailing list