On Thu, Nov 13, 2003 at 12:54:54PM +0200, Peter Peltonen wrote: > I just gave my first try to yumgengroups.py. It didn't quite work out: > > --<snip>-- > # /scratch/yum/scripts/yumgroups/yumgengroups.py -g "Top Group" -i top > -v true --groupreq group1 --groupreq group2 foo.rpm > File "/scratch/yum/scripts/yumgroups/yumgengroups.py", line 26 > print >> sys.stderr, stuff > ^ > SyntaxError: invalid syntax > --</snip>-- > > I am running RHL73 with > > yum-2.0.3-0.rh7.rh.fr > rpm-4.1.1-1.7x > rpm-python-4.1.1-1.7x > python-1.5.2-43.73 > > Any ideas what I'm doing wrong / what is breaking and how I could fix > it? Yes, I believe this... > print >> sys.stderr, stuff is python2 syntax only. Stick a "python2" at the beginning of your command line to make sure python2 is used as the interpreter. -Michael -- Michael Stenner Office Phone: 919-660-2513 Duke University, Dept. of Physics mstenner@xxxxxxxxxxxx Box 90305, Durham N.C. 27708-0305