Hi Kanika, Jason, cmd.get_legal_name is only called in 'com' if no object name is given. The quickest workaround thus is to provide an object name for the 'com' object as third argument.
Of course, it still is wise to upgrade and benefit from all those cool new features :) Cheers, Tsjerk On Mon, Apr 11, 2011 at 8:57 AM, Jason Vertrees <jason.vertr...@schrodinger.com> wrote: > Hi Kanika, > > That version is too old, hence the missing command. It's probably > wise to upgrade. > > Cheers, > > -- Jason > > > > On Mon, Apr 11, 2011 at 2:50 AM, kanika sharma <ksharma...@gmail.com> wrote: >> version 1.1 r1 >> >> On Mon, Apr 11, 2011 at 12:04 PM, Jason Vertrees >> <jason.vertr...@schrodinger.com> wrote: >>> >>> Hi Kanika, >>> >>> > I opened a file 1alu in pymol and ran script CenterOfMass.py. When I >>> > gave >>> > the command com 1alu, state=1, it displays a message >>> > >>> > ....AttributeError: 'module' object has no attribute 'get_legal_name'... >>> > Iam unable to figure out why is this so., >>> >>> It sounds like your PyMOL is out of date; that command is relatively >>> new. Which PyMOL version are you using? >>> >>> Cheers, >>> >>> -- Jason >>> >>> -- >>> Jason Vertrees, PhD >>> PyMOL Product Manager >>> Schrodinger, LLC >>> >>> (e) jason.vertr...@schrodinger.com >>> (o) +1 (603) 374-7120 >> >> > > > > -- > Jason Vertrees, PhD > PyMOL Product Manager > Schrodinger, LLC > > (e) jason.vertr...@schrodinger.com > (o) +1 (603) 374-7120 > > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > _______________________________________________ > PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) > Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users > Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net > -- Tsjerk A. Wassenaar, Ph.D. post-doctoral researcher Molecular Dynamics Group * Groningen Institute for Biomolecular Research and Biotechnology * Zernike Institute for Advanced Materials University of Groningen The Netherlands ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net