You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Runtime assert
Note: double quotes after the -f, and a smart quote inside double quotes for the query
x@sub:~$ beet --version
beets version 1.3.18
plugins: copyartifacts, embedart, fetchart, ftintitle, info, scrub, zero
x@sub:~$ beet -vv ls -f"$album""’"
user configuration: /home/x/.config/beets/config.yaml
data directory: /home/x/.config/beets
plugin paths:
Sending event: pluginload
library database: /home/x/Dropbox/beets_data/musiclibrary.blb
library directory: /home/x/music
Sending event: library_opened
Traceback (most recent call last):
File "/usr/local/bin/beet", line 11, in<module>sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/beets/ui/__init__.py", line 1250, in main
_raw_main(args)
File "/usr/local/lib/python2.7/dist-packages/beets/ui/__init__.py", line 1239, in _raw_main
subcommand, suboptions, subargs = parser.parse_subcommand(subargs)
File "/usr/local/lib/python2.7/dist-packages/beets/ui/__init__.py", line 1040, in parse_subcommand
suboptions, subargs = subcommand.parse_args(args)
File "/usr/local/lib/python2.7/dist-packages/beets/ui/__init__.py", line 904, in parse_args
return self.parser.parse_args(args)
File "/usr/lib/python2.7/optparse.py", line 1400, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib/python2.7/optparse.py", line 1444, in _process_args
self._process_short_opts(rargs, values)
File "/usr/lib/python2.7/optparse.py", line 1551, in _process_short_opts
option.process(opt, value, values, self)
File "/usr/lib/python2.7/optparse.py", line 789, in process
self.action, self.dest, opt, value, values, parser)
File "/usr/lib/python2.7/optparse.py", line 809, in take_action
self.callback(self, opt, value, parser, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/beets/ui/__init__.py", line 802, in _set_format
value = fmt or value and unicode(value) or ''
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
Setup
OS: Ubuntu 1404
Python version: 2.7.6
beets version: 1.3.18
Turning off plugins made problem go away (yes/no): no
I can reproduce this with the same command, it seems we have some problems with Unicode encoding in our command line parsing?
sampsyo
added
bug
bugs that are confirmed and actionable
and removed
needinfo
We need more details or follow-up from the filer before this can be tagged "bug" or "feature."
labels
Jun 20, 2016
Yep, this looks like a real bug! It's reproducible for me just by typing beet ls -f 'é'. We should probably use our decargs() function instead of that plain unicode() call.
Problem
Runtime assert
Note: double quotes after the -f, and a smart quote inside double quotes for the query
Setup
My configuration (output of
beet config
) is:The text was updated successfully, but these errors were encountered: