On Fri, Oct 26, 2012 at 10:37 AM, joseph Lyons <josephaly...@gmail.com> 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
> #!/bin/sh
> PYMOL_PATH=/usr/local/xtal/pymol_1.41
> 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
> <module>
>     import pymol
>   File "/usr/local/xtal/pymol_1.41/modules/pymol/__init__.py", line 472, in
> <module>
>     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
else unchanged).

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
(1).

-Nat

------------------------------------------------------------------------------
The Windows 8 Center 
In partnership with Sourceforge
Your idea - your app - 30 days. Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to