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

beet crashes with UnicodeEncodeError #1896

Closed
sneak opened this issue Feb 28, 2016 · 1 comment
Closed

beet crashes with UnicodeEncodeError #1896

sneak opened this issue Feb 28, 2016 · 1 comment

Comments

@sneak
Copy link

sneak commented Feb 28, 2016

New one, similar to #1895 but not the same

Candidate: Black Dice & Wolf Eyes - Chimes in Black Water, Volume 2
Success. Distance: 0.79
Traceback (most recent call last):
  File "/Users/jp/Library/Python/2.7/bin/beet", line 9, in <module>
    load_entry_point('beets==1.3.18', 'console_scripts', 'beet')()
  File "/Users/jp/Library/Python/2.7/lib/python/site-packages/beets/ui/__init__.py", line 1236, in main
    _raw_main(args)
  File "/Users/jp/Library/Python/2.7/lib/python/site-packages/beets/ui/__init__.py", line 1226, in _raw_main
    subcommand.func(lib, suboptions, subargs)
  File "/Users/jp/Library/Python/2.7/lib/python/site-packages/beets/ui/commands.py", line 966, in import_func
    import_files(lib, paths, query)
  File "/Users/jp/Library/Python/2.7/lib/python/site-packages/beets/ui/commands.py", line 943, in import_files
    session.run()
  File "/Users/jp/Library/Python/2.7/lib/python/site-packages/beets/importer.py", line 321, in run
    pl.run_parallel(QUEUE_SIZE)
  File "/Users/jp/Library/Python/2.7/lib/python/site-packages/beets/util/pipeline.py", line 252, in run
    msg = self.coro.next()
  File "/Users/jp/Library/Python/2.7/lib/python/site-packages/beets/importer.py", line 1203, in read_tasks
    for t in task_factory.tasks():
  File "/Users/jp/Library/Python/2.7/lib/python/site-packages/beets/importer.py", line 1048, in tasks
    tasks = self._create(self.album(paths, dirs))
  File "/Users/jp/Library/Python/2.7/lib/python/site-packages/beets/importer.py", line 1127, in album
    items = map(self.read_item, paths)
  File "/Users/jp/Library/Python/2.7/lib/python/site-packages/beets/importer.py", line 1177, in read_item
    return library.Item.from_path(path)
  File "/Users/jp/Library/Python/2.7/lib/python/site-packages/beets/library.py", line 505, in from_path
    i.read(path)
  File "/Users/jp/Library/Python/2.7/lib/python/site-packages/beets/library.py", line 562, in read
    value = getattr(mediafile, key)
  File "/Users/jp/Library/Python/2.7/lib/python/site-packages/beets/mediafile.py", line 1087, in __get__
    out = style.get(mediafile.mgfile)
  File "/Users/jp/Library/Python/2.7/lib/python/site-packages/beets/mediafile.py", line 560, in get
    return _sc_decode(data)[self.index]
  File "/Users/jp/Library/Python/2.7/lib/python/site-packages/beets/mediafile.py", line 220, in _sc_decode
    soundcheck = soundcheck.decode('utf8')
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 67-69: ordinal not in range(128)
@sampsyo
Copy link
Member

sampsyo commented Feb 28, 2016

Thanks! I messed up the fix for the other problem (I typed decode instead of encode) and caused this. Should be fixed now.

shamangeorge added a commit to shamangeorge/beets that referenced this issue Mar 1, 2016
* master: (246 commits)
  Fix beetbox#1896 (bungled fix to beetbox#1895)
  Minor docs refinements for beetbox#1894
  Human-readable message in non-pretend mode (beetbox#1894)
  changelog entry for new convert.album_art_maxwidth option
  tweaks for style, option name
  Fix beetbox#1895: don't assume SC data is bytes
  Slightly more logical instruction placement
  Update ISSUE_TEMPLATE.md
  doc note for new copy_album_art_maxwidth option
  revert a chunk of the work to be the way it was
  better text for artwork resize/copy logs
  fix indentation
  add copy_album_art_maxwidth config option to convert plugin
  move and split fetchart valid_image
  Fix beetbox#1891: Missing `syspath` in `beet stats -e`
  Suggest ways to describe problems
  Start an issue template
  beet import: there is no such option: -M
  Grammar/formatting refinement for beetbox#1878
  fix documentation error
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants