From: DeLano, W. <wa...@su...> - 2002-07-15 17:33:34
|
Trissa, I think that the line may have been wrapped in your copy of the input = file. Try making sure that entire Python in the script file appears on a = single line -- then it should work. Cheers, Warren --=20 mailto:wa...@su...=20 Warren L. DeLano, Ph.D.=20 Informatics Manager=20 Sunesis Pharmaceuticals, Inc.=20 341 Oyster Point Blvd.=20 S. San Francisco, CA 94080=20 (650)-266-3606 FAX:(650)-266-3501=20 -----Original Message----- From: Pat...@gs... [mailto:Pat...@gs...] Sent: Monday, July 15, 2002 10:05 AM To: pym...@li... Subject: [PyMOL] Re: movie -script - conversion from .png to .tga I am trying to run the mkmov1.pml script from the Pymol page.=20 I am stopped at the line=20 /for i in glob("png/*"):os.system("convert "+i+" "re.sub("png", "tga", = re.sub("_",".",i))) I get the errors:=20 Traceback (innermost last): File "/apps/pymol/modules/pymol/parser.py", line 98, in parse exec(com2[nest],pymol_names,pymol_names) File "<string>", line 1 for i in glob("png/*"): os.system("convert "+i+" ^ SyntaxError: invalid token PyMOL>"+re.sub("png","tga",re.sub("_",".",i))) Traceback (innermost last): File "/apps/pymol/modules/pymol/parser.py", line 234, in parse exec(com2[nest],pymol_names,pymol_names) File "<string>", line 1 "+re.sub("png","tga",re.sub("_",".",i))) ^ SyntaxError: invalid syntax=20 Without knowing python, I haven't been able to figure out what is wrong=20 with the input line. Can anyone help?=20 Thanks!=20 Trissa |