novoid / Memacs

What did I do on February 14th 2007? Visualize your (digital) life in Org-mode
GNU General Public License v3.0
1.03k stars 66 forks source link

memacs_lastfm python3 error #68

Closed ajft closed 6 years ago

ajft commented 6 years ago

After upgrading to the python3 version of memacs, my memacs_lastfm updates fail with:

$ /home/xyzzy/src/memacs/bin/memacs_lastfm.py -a -c /home/xyzzy/.config/memacs/memacs-lastfm.ini --output-format "{artist} -- {title}" -o ./lastfm.org_archive ERROR:root:Traceback (most recent call last): File "/home/xyzzy/src/memacs/memacs/lib/memacs.py", line 186, in handle_main self.init() File "/home/xyzzy/src/memacs/memacs/lib/memacs.py", line 86, in init self._parser_parse_args() File "/home/xyzzy/src/memacs/memacs/lastfm.py", line 40, in _parser_parse_args self._args.output_format = self._args.output_format.decode('utf-8') AttributeError: 'str' object has no attribute 'decode' Traceback (most recent call last): File "/home/xyzzy/src/memacs/bin/memacs_lastfm.py", line 27, in memacs.handle_main() File "/home/xyzzy/src/memacs/memacs/lib/memacs.py", line 186, in handle_main self.init() File "/home/xyzzy/src/memacs/memacs/lib/memacs.py", line 86, in init self._parser_parse_args() File "/home/xyzzy/src/memacs/memacs/lastfm.py", line 40, in _parser_parse_args self._args.output_format = self._args.output_format.decode('utf-8') AttributeError: 'str' object has no attribute 'decode'