Opened 13 years ago
Last modified 13 years ago
#9637 closed Bug Report - General
Jamu.py crashes - unable to decode unicode — at Version 2
Reported by: | Owned by: | robertm | |
---|---|---|---|
Priority: | minor | Milestone: | 0.24.1 |
Component: | Plugin - MythVideo | Version: | 0.24-fixes |
Severity: | low | Keywords: | jamu.py mythvideo scripts |
Cc: | Ticket locked: | no |
Description (last modified by )
Jamu.py crashes with the following error:
troy@ebony:/usr/local/bin$ jamu -MVI Traceback (most recent call last): File "/usr/local/bin/jamu", line 6420, in <module> main() File "/usr/local/bin/jamu", line 6388, in main configuration.setUseroptions(default_config) File "/usr/local/bin/jamu", line 1287, in setUseroptions self.config['ignore-directory'].append(unicode(cfg.get(section, option), 'utf8')) TypeError: decoding Unicode is not supported
jamu.conf contains the following entries for ignore-directory:
[ignore-directory] ignore01: /var/lib/mythtv/videos/Movies/.AppleDouble/ ignore02: /var/lib/mythtv/videos/Movies/Childrens/.AppleDouble/ ignore03: /var/lib/mythtv/videos/Series/.AppleDouble/ ignore04: /var/lib/mythtv/videos/Documentaries/.AppleDouble/ ignore05: .AppleDouble/ ignore08: Movies/.AppleDouble/
Removing the ignore-directory options stops the crash.
Alternatively altering line 1287 in jamu.py fixes the crash:
from:
self.config['ignore-directory'].append(unicode(cfg.get(section, option), 'utf8'))
to:
self.config['ignore-directory'].append(cfg.get(section, option))
Change History (4)
comment:1 Changed 13 years ago by
Changed 13 years ago by
Attachment: | version_info added |
---|
Changed 13 years ago by
Attachment: | unicode_fix.patch added |
---|
Note: See
TracTickets for help on using
tickets.
The regex entry also needs fixing: http://mythtv.pastebin.com/pHurujGD
I'm awaiting approval from Doug Vaughan, the author of Jamu, before comitting the above patch.