gravityhammer at gmail
Apr 17, 2012, 8:59 PM
Post #11 of 14
On Tue, Apr 17, 2012 at 11:16 PM, Bill Meek <keemllib [at] gmail> wrote:
> On 04/17/2012 07:31 PM, Phil Bridges wrote:
>> Sorry to dredge up an old topic, but I'm trying to get my logcleanup
>> script working. If I run it from the command line, I get:
>> # python /usr/share/mythtv/bin/logcleanup.py
>> Traceback (most recent call last):
>> File "/usr/share/mythtv/bin/logcleanup.py", line 133, in<module>
>> File "/usr/share/mythtv/bin/logcleanup.py", line 95, in main
>> ls = sorted(LogFile.filter(opts.logpath, os.listdir(opts.logpath)))
>> File "/usr/share/mythtv/bin/logcleanup.py", line 35, in filter
>> return [cls(path, f) for f in filelist if cls._re.match(f)]
>> File "/usr/share/mythtv/bin/logcleanup.py", line 48, in __init__
>> self.sequence = int(m.group('sequence'))
>> ValueError: invalid literal for int() with base 10: '.1'
> I never typed: python .../logcleanup.py, just the command itself.
> look at the 1st line in the file, that tells it to use python.
>> Is there anything that describes the parameters?
> logcleanup.py -h, if that's what you mean. To see the default
> values, look at the last 10 lines of the file.
Thanks for the response. Going to the directory and executing it
gives the same error, even if I use the parameters that have been
dumped into my daily cronjob.
mythtv-users mailing list
mythtv-users [at] mythtv