Alan,

The only sure way to get this to work is to build into a local Python 
interpreter from PyMOL source code using distutils.  Otherwise, you're likely 
better off with "pymol -qc"

Cheers,
Warren

--
Warren L. DeLano, Ph.D.                     
Principal Scientist

. DeLano Scientific LLC  
. 400 Oyster Point Blvd., Suite 213           
. South San Francisco, CA 94080 USA   
. Biz:(650)-872-0942  Tech:(650)-872-0834     
. Fax:(650)-872-0273  Cell:(650)-346-1154
. mailto:war...@delsci.com      
 

> -----Original Message-----
> From: pymol-users-ad...@lists.sourceforge.net 
> [mailto:pymol-users-ad...@lists.sourceforge.net] On Behalf Of Alan
> Sent: Thursday, April 20, 2006 5:37 AM
> To: Pymol
> Subject: [PyMOL] importing pymol modules in a python script
> 
> Hello List!
> 
> I want a python script likewise:
> 
> #!/usr/bin/python -O
> import sys, tempfile
> from pymol import editor
> from pymol import cmd
> ....
> ....
> 
> However, even defining 'export PYTHONPATH=/usr/local/pymol/modules'
> 
> I got this error:
>     from pymol import editor
>   File "/usr/local/pymol/modules/pymol/__init__.py", line 353, in ?
>     import _cmd
> ImportError: No module named _cmd
> 
> Is there a way to run the python script with pymol stuff 
> imported or only via 'pymol -c'?
> 
> Many thanks in advance.
> Alan
> --
> Alan Wilter S. da Silva, D.Sc. - Research Associate 
> Department of Biochemistry, University of Cambridge.
> 80 Tennis Court Road, Cambridge CB2 1GA, UK.
> 
> 
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web 
> services, security?
> Get stuff done quickly with pre-integrated technology to make 
> your job easier Download IBM WebSphere Application Server 
> v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642
> _______________________________________________
> PyMOL-users mailing list
> PyMOL-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pymol-users
> 
> 
> 
> 

Reply via email to