modifying the pymol startup script to source the cctbx setpaths.sh
Hi Luc,The problem is I have a macports python build that contains all the rest of the modules that I import in this script. Because cctbx is not included in macports I have a separate build for this. Hence I need to call my script as:/opt/local/bin/python2.7 script.pyI have set the PYTHONPATH in the bash shell:export PYTHONPATH=/Users/magnus/Downloads/cctbx_sources:/opt/localBut, it's not working. Any suggestions how to deal with this?Thanks,MagnusOn 03 Jun 2014, at 20:47, Luc Bourhis <[email protected]> wrote: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,LucOn 3 Jun 2014, at 20:33, Magnus Andersson <[email protected]> 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.pdbFile "/Users/magnus/Downloads/cctbx_sources/iotbx/pdb/__init__.py", line 2, in <module>from cctbx.array_family import flexFile "/Users/magnus/Downloads/cctbx_sources/cctbx/array_family/flex.py", line 2, in <module>import scitbx.array_family.flexFile "/Users/magnus/Downloads/cctbx_sources/scitbx/array_family/flex.py", line 2, in <module>import boost.optional # import dependencyImportError: No module named boost.optionalIt 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.hppin the following directory:/Users/magnus/Downloads/cctbx_sources/boost/boost/optionalwhich 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
[email protected]
http://phenix-online.org/mailman/listinfo/cctbxbb
cctbxbb mailing list
[email protected]
http://phenix-online.org/mailman/listinfo/cctbxbb