Hi,
I have this status bar function in my wmiirc.py:
@defmonitor
def anowplaying(self):
try:
np=open('/tmp/shell-fm').read()
except:
np=' '
return wmii.cache['normcolors'], np
Where /tmp/shell-fm is a now-playing file generated by shell-fm. Until
recently, this just worked, but now I get errors as attached. The
wmiirc.py then just seems to stop at this point.
--
Thomas Dahms
which: no keychain in
(/users/dahms/local/bin:/home/dahms/bin:/home/dahms/local/bin:/home/dahms/local/usr/bin:/usr/mlocal/bin:/usr/glocal/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.3:/opt/ICAClient:/usr/qt/3/bin:/usr/games/bin)
Traceback (most recent call last):
File "/home/dahms/local/etc/wmii-hg/python/wmiirc", line 9, in <module>
import wmiirc
File "/home/dahms/.wmii-hg/wmiirc.py", line 59, in <module>
@defmonitor
File "/home/dahms/local/etc/wmii-hg/python/pygmi/monitor.py", line 31, in
defmonitor
return monitor(fn)
File "/home/dahms/local/etc/wmii-hg/python/pygmi/monitor.py", line 25, in
monitor
monitor = Monitor(*args, **kwargs)
File "/home/dahms/local/etc/wmii-hg/python/pygmi/monitor.py", line 75, in
__init__
self.tick()
File "/home/dahms/local/etc/wmii-hg/python/pygmi/monitor.py", line 93, in tick
self.button.create(*label)
File "/home/dahms/local/etc/wmii-hg/python/pygmi/fs.py", line 477, in create
self.file.awrite(self.getval(colors, label), offset=0, fail=fail)
File "/home/dahms/local/etc/wmii-hg/python/pygmi/fs.py", line 489, in getval
return ' '.join([Color(c).hex for c in self._colors or self.colors] +
[unicode(self._label or '')])
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 42:
ordinal not in range(128)