On Fri, Oct 26, 2012 at 10:37 AM, joseph Lyons <josephalyons@...> wrote:
> I currently source cctbx from /usr/local/xtal/cctbx/cctbx_build/setpath.sh
> with pymol in /usr/local/xtal/pymol_1.41/pymol
> I have tried the getting pymol to recognise the cctbx.python however I have
> run into difficulties.
> I tried modifying the pymol script to
> export PYMOL_PATH
> #exec /usr/bin/python $PYMOL_PATH/modules/launch_pymol.py "$@"
> exec python $PYMOL_PATH/modules/launch_pymol.py "$@"
> where python is /usr/local/xtal/cctbx/cctbx_build/bin/python
> However I get this error:
> Traceback (most recent call last):
> File "/usr/local/xtal/pymol_1.41/modules/launch_pymol.py", line 32, in
> import pymol
> File "/usr/local/xtal/pymol_1.41/modules/pymol/__init__.py", line 472, in
> import _cmd
> ImportError: No module named _cmd
Which python interpreter did you use to build PyMOL? You need to use
the same interpreter for both PyMOL and CCTBX, otherwise it's probably
never going to work. You basically have two options:
1) Download the CCTBX binary distribution, use cctbx.python to
setup/build/install open-source PyMOL, then modify the pymol start
script to execute "cctbx.python" in place of "python" (but everything
2) If you want to use a pre-installed/binary distribution of PyMOL,
you need to download the source bundle for CCTBX, and use the same
python interpreter that PyMOL is using to build CCTBX.
Since building open-source PyMOL is significantly easier and faster
than building CCTBX, and CCTBX has free binaries, I would recommend