To wrap up and summarize, a new version of the script is available in the wiki that circumvents the minor python trouble, and this works well with 1.2r2 and I guess later Pymol versions, and it works really well!

My favorite 'indian summer' gradients for now:

spectrumany count, paleyellow yelloworange brightorange, chain A
spectrumany count, olive deepolive splitpea, chain B
spectrumany count, orange ruby firebrick , chain C

Thanks -

Tassos


On Apr 6, 2011, at 8:54, Thomas Holder wrote:

Hi Tassos,

as Folmer already suggested your PyMOL version, or rather your python
version could be the problem. The line that throws the error uses
generator syntax, which was introduced in python 2.4. This can easily
be backported so you don't need another python version. I updated the
script in the wiki so it should work with older python now. Can you
download again and try?

Cheers,
 Thomas

On Tue, Apr 5, 2011 at 8:49 PM, Anastassis Perrakis <a.perra...@nki.nl> wrote:
Hi -

I am trying to use the script by Thomas Holder, Spectrumany

http://www.pymolwiki.org/index.php/Spectrumany

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?

Tassos

--
Thomas Holder
MPI for Developmental Biology
Spemannstr. 35
D-72076 Tübingen

P please don't print this e-mail unless you really need to
Anastassis (Tassos) Perrakis, Principal Investigator / Staff Member
Department of Biochemistry (B8)
Netherlands Cancer Institute,
Dept. B8, 1066 CX Amsterdam, The Netherlands
Tel: +31 20 512 1951 Fax: +31 20 512 1954 Mobile / SMS: +31 6 28 597791




------------------------------------------------------------------------------
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

Reply via email to