Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APEv2 UnicodeDecodeError #174

lazka opened this issue Jul 4, 2014 · 1 comment

APEv2 UnicodeDecodeError #174

lazka opened this issue Jul 4, 2014 · 1 comment


Copy link

@lazka lazka commented Jul 4, 2014

Originally reported by: Christoph Reiter (Bitbucket: lazka, GitHub: lazka)

From on May 22, 2014 22:27:50

Traceback (most recent call last):
  File "/usr/local/bin/beet", line 9, in <module>
    load_entry_point('beets==1.3.5', 'console_scripts', 'beet')()
  File "/usr/local/lib/python2.7/dist-packages/beets/ui/", line 967, in main
  File "/usr/local/lib/python2.7/dist-packages/beets/ui/", line 958, in _raw_main
    subcommand.func(lib, suboptions, subargs)
  File "/usr/local/lib/python2.7/dist-packages/beets/ui/", line 816, in import_func
    import_files(lib, paths, query)
  File "/usr/local/lib/python2.7/dist-packages/beets/ui/", line 788, in import_files
  File "/usr/local/lib/python2.7/dist-packages/beets/", line 365, in run
  File "/usr/local/lib/python2.7/dist-packages/beets/util/", line 331, in run_sequential
  File "/usr/local/lib/python2.7/dist-packages/beets/util/", line 403, in pull
    for out in coros[0]:
  File "/usr/local/lib/python2.7/dist-packages/beets/", line 702, in read_tasks
    for paths, items in autotag.albums_in_dir(toppath):
  File "/usr/local/lib/python2.7/dist-packages/beets/autotag/", line 54, in albums_in_dir
    i = library.Item.from_path(os.path.join(root, filename))
  File "/usr/local/lib/python2.7/dist-packages/beets/", line 271, in from_path
  File "/usr/local/lib/python2.7/dist-packages/beets/", line 328, in read
    value = getattr(mediafile, key)
  File "/usr/local/lib/python2.7/dist-packages/beets/", line 964, in __get__
    out = style.get(mediafile.mgfile)
  File "/usr/local/lib/python2.7/dist-packages/beets/", line 388, in get
    return self.deserialize(self.fetch(mutagen_file))
  File "/usr/local/lib/python2.7/dist-packages/beets/", line 395, in fetch
    return mutagen_file[self.key][0]
  File "/usr/local/lib/python2.7/dist-packages/mutagen/", line 456, in __getitem__
    return unicode(self).split("\0")[index]
  File "/usr/local/lib/python2.7/dist-packages/mutagen/", line 449, in __unicode__
    return unicode(str(self), "utf-8")
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 16: invalid continuation byte

Original issue:


This comment has been minimized.

Copy link
Member Author

@lazka lazka commented Sep 25, 2014

Original comment by Christoph Reiter (Bitbucket: lazka, GitHub: lazka):

apev2: store text values as unicode and fail during parsing. (Fixes issue #174)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.