Dear Sir,
Thanks for your prompt reply. However, that didn't help either.
[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')
>>> import pymol
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'
>>> from pymol import cmd
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: cannot import name cmd
>>>
Does anybody else know what might be the problem ?
Thanks in advance
David
On Thu, 4 Oct 2007 11:41:06 -0700
"DeLano Scientific" <[email protected]> wrote:
> David,
>
> Not sure, but you may need a vanilla "import pymol" before "from pymol
> import cmd".
>
> --
> DeLano Scientific LLC
> Subscriber Support Services
> mailto:[email protected]
>
> "Not yet a PyMOL Subscriber, but want to support the project? Email
> [email protected] to quote your lab, school, or employer. Thank you
> for
> sponsoring this open-source endeavor!" -WLD
>
>
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]] On Behalf
> > Of David McGiven
> > Sent: Thursday, October 04, 2007 3:29 AM
> > To: [email protected]
> > 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
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/pymol-users
>
>
>