From: DeLano, W. <wa...@su...> - 2002-05-06 16:44:24
|
Michael, A present, you can't simply "import" the PyMOL program as a module. = You need to use PyMOL as your Python interpreter. You can use "Run" from the File menu or the "run" command from within = PyMOL. PyMOL>cd c:\some_directory PyMOL>run myscript.py Since you are under windows, you can use the DOS/Win command shell: "C:\Program Files\DeLano Scientific\PyMOL\pymolwin.exe" myscript.py # command-line only scripts "C:\Program Files\DeLano Scientific\PyMOL\pymolwin.exe" -qc myscript.py - Warren --=20 mailto:wa...@su...=20 Warren L. DeLano, Ph.D.=20 Informatics Manager=20 Sunesis Pharmaceuticals, Inc.=20 341 Oyster Point Blvd.=20 S. San Francisco, CA 94080=20 (650)-266-3606 FAX:(650)-266-3501=20 -----Original Message----- From: Sorich, Michael Joseph - SORMJ001 = [mailto:Mic...@po...] Subject: [PyMOL] problem importing pymol.cmd module I have just started to use PyMol. I wish link some scripts I have = written in python with PyMol using PyMol=92s API. From what I = understand, all I need to do is import the module pymol.cmd and call the = functions contained within. =20 However, when I attempt to import this module, I get the following = error: =20 >>> from pymol import cmd Traceback (most recent call last): File "<pyshell#0>", line 1, in ? from pymol import cmd File "C:\Program Files\DeLano = Scientific\PyMOL/modules\pymol\__init__.py", line 137, in ? import _cmd ImportError: No module named _cmd =20 Where have I gone wrong? Any help would be appreciated. =20 |