From: Warren D. <wa...@de...> - 2006-04-20 19:34:53
|
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. =20 Principal Scientist . DeLano Scientific LLC =20 . 400 Oyster Point Blvd., Suite 213 =20 . South San Francisco, CA 94080 USA =20 . Biz:(650)-872-0942 Tech:(650)-872-0834 =20 . Fax:(650)-872-0273 Cell:(650)-346-1154 . mailto:wa...@de... =20 =20 > -----Original Message----- > From: pym...@li...=20 > [mailto:pym...@li...] On Behalf Of Alan > Sent: Thursday, April 20, 2006 5:37 AM > To: Pymol > Subject: [PyMOL] importing pymol modules in a python script >=20 > Hello List! >=20 > I want a python script likewise: >=20 > #!/usr/bin/python -O > import sys, tempfile > from pymol import editor > from pymol import cmd > .... > .... >=20 > However, even defining 'export PYTHONPATH=3D/usr/local/pymol/modules' >=20 > 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 >=20 > Is there a way to run the python script with pymol stuff=20 > imported or only via 'pymol -c'? >=20 > Many thanks in advance. > Alan > -- > Alan Wilter S. da Silva, D.Sc. - Research Associate=20 > Department of Biochemistry, University of Cambridge. > 80 Tennis Court Road, Cambridge CB2 1GA, UK. >=20 >=20 > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web=20 > services, security? > Get stuff done quickly with pre-integrated technology to make=20 > your job easier Download IBM WebSphere Application Server=20 > v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > PyMOL-users mailing list > PyM...@li... > https://lists.sourceforge.net/lists/listinfo/pymol-users >=20 >=20 >=20 >=20 |