{"action":"opened","issue":{"url":"https://api.github.com/repos/beetbox/beets/issues/2063","repository_url":"https://api.github.com/repos/beetbox/beets","labels_url":"https://api.github.com/repos/beetbox/beets/issues/2063/labels{/name}","comments_url":"https://api.github.com/repos/beetbox/beets/issues/2063/comments","events_url":"https://api.github.com/repos/beetbox/beets/issues/2063/events","html_url":"https://github.com/beetbox/beets/issues/2063","id":161247811,"number":2063,"title":"Runtime assert","user":{"login":"bengadbois","id":1879785,"avatar_url":"https://avatars.githubusercontent.com/u/1879785?v=3","gravatar_id":"","url":"https://api.github.com/users/bengadbois","html_url":"https://github.com/bengadbois","followers_url":"https://api.github.com/users/bengadbois/followers","following_url":"https://api.github.com/users/bengadbois/following{/other_user}","gists_url":"https://api.github.com/users/bengadbois/gists{/gist_id}","starred_url":"https://api.github.com/users/bengadbois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bengadbois/subscriptions","organizations_url":"https://api.github.com/users/bengadbois/orgs","repos_url":"https://api.github.com/users/bengadbois/repos","events_url":"https://api.github.com/users/bengadbois/events{/privacy}","received_events_url":"https://api.github.com/users/bengadbois/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-20T17:18:21Z","updated_at":"2016-06-20T17:18:21Z","closed_at":null,"body":"### Problem\r\n\r\nRuntime assert\r\nNote: double quotes after the -f, and a smart quote inside double quotes for the query\r\n\r\n```sh\r\nx@sub:~$ beet -vv ls -f\"$album\" \"’\"\r\nuser configuration: /home/x/.config/beets/config.yaml\r\ndata directory: /home/x/.config/beets\r\nplugin paths:\r\nSending event: pluginload\r\nlibrary database: /home/x/Dropbox/beets_data/musiclibrary.blb\r\nlibrary directory: /home/x/music\r\nSending event: library_opened\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/beet\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/local/lib/python2.7/dist-packages/beets/ui/__init__.py\", line 1140, in main\r\n    _raw_main(args)\r\n  File \"/usr/local/lib/python2.7/dist-packages/beets/ui/__init__.py\", line 1129, in _raw_main\r\n    subcommand, suboptions, subargs = parser.parse_subcommand(subargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/beets/ui/__init__.py\", line 933, in parse_subcommand\r\n    suboptions, subargs = subcommand.parse_args(args)\r\n  File \"/usr/local/lib/python2.7/dist-packages/beets/ui/__init__.py\", line 798, in parse_args\r\n    return self.parser.parse_args(args)\r\n  File \"/usr/lib/python2.7/optparse.py\", line 1400, in parse_args\r\n    stop = self._process_args(largs, rargs, values)\r\n  File \"/usr/lib/python2.7/optparse.py\", line 1444, in _process_args\r\n    self._process_short_opts(rargs, values)\r\n  File \"/usr/lib/python2.7/optparse.py\", line 1551, in _process_short_opts\r\n    option.process(opt, value, values, self)\r\n  File \"/usr/lib/python2.7/optparse.py\", line 789, in process\r\n    self.action, self.dest, opt, value, values, parser)\r\n  File \"/usr/lib/python2.7/optparse.py\", line 809, in take_action\r\n    self.callback(self, opt, value, parser, *args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/beets/ui/__init__.py\", line 696, in _set_format\r\n    value = fmt or value and unicode(value) or ''\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)\r\n```\r\n\r\n### Setup\r\n\r\n* OS: Ubuntu 1404\r\n* Python version: 2.7.6\r\n* beets version: 1.3.14\r\n* Turning off plugins made problem go away (yes/no): no\r\n\r\nMy configuration (output of `beet config`) is:\r\n\r\n```yaml\r\n\r\npaths:\r\n    default: $albumartist/$album/$track $title\r\n    singleton: $albumartist/$album/$track $title\r\n    comp: $albumartist/$album/$track $title\r\n    ext:jpg: $albumpath/cover\r\n    ext:jpeg: $albumpath/cover\r\n    ext:png: $albumpath/cover\r\n\r\nformat_item: $album - $track - $albumartist - $artist - $title\r\nfetchart:\r\n    cautious: yes\r\n    source: itunes amazon albumart\r\n    minwidth: 700\r\n    sources:\r\n    - coverart\r\n    - itunes\r\n    - amazon\r\n    - albumart\r\n    - google\r\n    - wikipedia\r\n    maxwidth: 0\r\n    google_search: no\r\n    auto: yes\r\n    cover_names:\r\n    - cover\r\n    - front\r\n    - art\r\n    - album\r\n    - folder\r\n    remote_priority: no\r\n    enforce_ratio: no\r\nftintitle:\r\n    auto: yes\r\n    format: (feat. {0})\r\n    drop: no\r\nlibrary: ~/Dropbox/beets_data/musiclibrary.blb\r\nreplace:\r\n    '[\\\\/]': ''\r\n    _: ''\r\n    '[\\x00-\\x1f]': ''\r\n    '[<>\"\\*\\|]': ''\r\nzero:\r\n    fields: month day genre comments\r\n    update_database: yes\r\n\r\nui:\r\n    color: yes\r\ncopyartifacts:\r\n    extensions: .jpg .jpeg .png\r\n    print_ignored: yes\r\n\r\nplugins: fetchart embedart scrub zero info ftintitle copyartifacts\r\ndirectory: ~/music\r\n\r\nimport:\r\n    move: no\r\n    copy: yes\r\n    write: yes\r\nsort_item: album+ disc+ track+\r\nscrub:\r\n    auto: yes\r\nembedart:\r\n    compare_threshold: 0\r\n    auto: yes\r\n    ifempty: no\r\n    maxwidth: 0\r\n\r\n```\r\n"}}
{"actor":{"display_login":"bengadbois"}}