On Wed, 2 Mar 2005, Andrew Pollock wrote: > On Tue, Mar 01, 2005 at 10:38:31AM +0100, [EMAIL PROTECTED] wrote: > > Package: dstat > > Version: 0.5.7-1 > > Severity: normal > > > > As in subject. Upgrade of python to 2.3.4-5 solved the problem. > > Right, after a not inconsequential amount of dicking around with my chroots > (my bad for mounting the wrong filesystem), I have reproduced this problem. > > If you use dstat from testing with python from stable, you get: > > brutus:~# dstat > File "/usr/bin/dstat", line 1398 > yield index, item > ^ > SyntaxError: invalid syntax
Sorry for not getting back to you sooner. Apparently the yield construct is part of python since python 2.2. So you need to use the dstat15 script for every distribution that comes with an older release of python than 2.2 I didn't know this either, but since dstat15 works even on python 1.5 (with all the functionality) it should work on python 2.0 and 2.1 too. Kind regards, -- dag wieers, [EMAIL PROTECTED], http://dag.wieers.com/ -- [all I want is a warm bed and a kind word and unlimited power] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]