[mythtv-users] jamu.py fails if I exclude directories in jamu.conf
Mike Perkins
mikep at randomtraveller.org.uk
Wed Jan 5 10:39:18 UTC 2011
On 04/01/11 20:12, Matt Beadon wrote:
> Hi,
> I'm running mythbuntu 10.04 x86_64 with 0.24-fixes and ever since I upgraded
> from 0.23 I've had trouble with jamu.
>
> I was able to narrow down the cause but now I'm stuck. At the end of my
> jamu.conf file I have:
>
>> [ignore-directory]
>
> #ignore00: /test
>
> ignore01: /usr/tv-shows/Home Movies
>
>
> If I run jamu.py (even just jamu.py -MVf) I get this error:
>
>> Traceback (most recent call last):
>
> File "/usr/share/mythtv/mythvideo/scripts/jamu.py", line 6422, in<module>
>
> main()
>
> File "/usr/share/mythtv/mythvideo/scripts/jamu.py", line 6390, in main
>
> configuration.setUseroptions(default_config)
>
> File "/usr/share/mythtv/mythvideo/scripts/jamu.py", line 1290, in
>> setUseroptions
>
> self.config['ignore-directory'].append(unicode(cfg.get(section, option),
>> 'utf8'))
>
> TypeError: decoding Unicode is not supported
>
>
> If I comment out that ignore01 line above jamu runs properly. Also this
> file worked in 0.23 with the ignore directories. Has the syntax for
> jamu.conf's ignore section changed? Is anyone else successfully using the
> ignore section with 0.24?
>
I know other people have given answers to the above problem, but you also might
want to consider the following: your ignore filestring has an embedded space
which could likely foul up parsing. Try enclosing the whole thing in quotes.
Caveat - I have absolutely no idea how the python routine parses this input.
--
Mike Perkins
More information about the mythtv-users
mailing list