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'
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'