David,

Not sure, but you may need a vanilla "import pymol" before "from pymol
import cmd".  

--
DeLano Scientific LLC
Subscriber Support Services
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
 

> -----Original Message-----
> From: pymol-users-boun...@lists.sourceforge.net 
> [mailto:pymol-users-boun...@lists.sourceforge.net] On Behalf 
> Of David McGiven
> Sent: Thursday, October 04, 2007 3:29 AM
> To: pymol-users@lists.sourceforge.net
> Subject: [PyMOL] Problems importing pymol functionality under 
> a pythonscript.
> 
> 
> Dear PyMol Users,
> 
> I am developing some programs in python. In one of them, I 
> would need to use some PyMol funcionalities.
> 
> However, I keep getting errors that I'm not able to solve. 
> I've checked the __main__.py file instructions on the header, 
> it doesn't work either.
> 
> I'm using the following :
> 
> Debian Sarge with : 
>       - Linux kernel 2.6. 
>       - IA-32 Intel processor. 
>       - Python 2.3.5 
>       - pymol-0.99rc6
> 
> For instance :
> 
> [r...@machine root]# python
> Python 2.3.5 (#2, Oct 16 2006, 19:19:48) [GCC 3.3.5 (Debian 
> 1:3.3.5-13)] on linux2 Type "help", "copyright", "credits" or 
> "license" for more information.
> >>> import sys
> >>> sys.path.append('/opt/soft/pymol/modules')
> >>> from pymol import cmd
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "pymol.py", line 4, in ?
>     pymol.finish_launching()
> AttributeError: 'module' object has no attribute 'finish_launching'
> 
> 
> Does anybody know what's going on ?
> 
> Thanks in advance
> 
> David McGiven
> 
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and 
> a browser.
> Download your FREE copy of Splunk now >> 
> http://get.splunk.com/ _______________________________________________
> PyMOL-users mailing list
> PyMOL-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pymol-users


Reply via email to