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 -- mailto:war...@sunesis.com Warren L. DeLano, Ph.D. Informatics Manager Sunesis Pharmaceuticals, Inc. 341 Oyster Point Blvd. S. San Francisco, CA 94080 (650)-266-3606 FAX:(650)-266-3501 -----Original Message----- From: patricia.a.elk...@gsk.com [mailto:patricia.a.elk...@gsk.com] Sent: Monday, July 15, 2002 10:05 AM To: pymol-users@lists.sourceforge.net Subject: [PyMOL] Re: movie -script - conversion from .png to .tga I am trying to run the mkmov1.pml script from the Pymol page. I am stopped at the line /for i in glob("png/*"):os.system("convert "+i+" "re.sub("png", "tga", re.sub("_",".",i))) I get the errors: 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 Without knowing python, I haven't been able to figure out what is wrong with the input line. Can anyone help? Thanks! Trissa