Dear Tassos 2011/4/5 Anastassis Perrakis <a.perra...@nki.nl>: > Hi - > > I am trying to use the script by Thomas Holder, Spectrumany > > http://www.pymolwiki.org/index.php/Spectrumany >
Very nice that you link to the program you use, but possibly someone is going to ask about the PyMOL version ;-) > When I import the script (run) I get: > > PyMOL>run sp.pml > Traceback (most recent call last): > File "/Applications/MacPyMOL.app/pymol/modules/pymol/parser.py", > line 332, in parse > > parsing > .run_file(exp_path(layer.args[0]),self.pymol_names,self.pymol_names) > File "/Applications/MacPyMOL.app/pymol/modules/pymol/parsing.py", > line 455, in run_file > execfile(file,global_ns,local_ns) > File "sp.pml", line 81 > col_name = '0x%02x%02x%02x' % tuple(i * 255 for i in col_list) > ^ > SyntaxError: invalid syntax > > == > > any help? I'm on ubuntu, and the script (freshly downloaded from the wiki) works fine for my in both PyMOL version 1.2r2 and version 1.4 (compiled today). One thought was to maybe rename your sp.pml to sp.py as this is generally what is expected for a script I think. (at least version 1.4 suggested for me to use @sp.pml instead of run). Hope this helps! Best regards, Folmer > > Tassos > > ------------------------------------------------------------------------------ > 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 > ------------------------------------------------------------------------------ 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