You could also try to add sys.path.append(dllpath) to your python script,
where dllpath is the full path to the location of the pymol dll's.
Of course, this approach might run into problems with different python
versions; but depending on what you're trying to do it might be worth a
shot (if there's a python.exe that ships with the precompiled pymol
windows builds, then running your python script with that would be
probably be the easiest way).
Pete
Yun,
Precompiled PyMOL builds for Windows run inside their own Python
interpreter. Thus, to access PyMOL from Python, you need to run your
script
from within PyMOL. An easy way to do this is to give your script a .pym
extension.
Cheers,
DeLano Scientific LLC
Subscriber Support Services
mailto:del...@delsci.info BLOCKED::mailto:del...@delsci.info
Not yet a PyMOL Subscriber, but want to support the project? Email
sa...@delsci.com to quote your lab, school, or employer. Thank you for
sponsoring this open-source endeavor! -WLD
_
From: pymol-users-boun...@lists.sourceforge.net
[mailto:pymol-users-boun...@lists.sourceforge.net] On Behalf Of Li, Yun
Sent: Tuesday, January 30, 2007 11:09 AM
To: pymol-users@lists.sourceforge.net
Subject: [PyMOL] ImportError: No module named _cmd
Hi,
I just installed the latest windows binary of PyMol on a PC. I tried to
run
PyMol from a Python script and run into the following error message:
ImportError: No module named _cmd
I remember running into the problem before. From somewhere I was able to
find a _cmd.dll and solved the problem. But this time I could find a
solution.
Hope somebody could help me.
Yun Li
Assistant Professor of Chemistry
Delaware Valley College
700 E. Butler Ave.,
Doylestown, PA 18901
(215) 489-2482
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
PyMOL-users mailing list
PyMOL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pymol-users
Pete Meyer
Fu Lab
BMCB grad student
Cornell University