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
(Describe your problem, feature request, or discussion topic here. If you're reporting a bug, please fill out this and the "Setup" section below. Otherwise, you can delete them.)
Running this command in verbose (-vv) mode:
$ beet -vv fetchart -f albumartist:"KMFDM" album:"Amnesia"
user configuration: /home/mycah/.config/beets/config.yaml
data directory: /home/mycah/.config/beets
plugin paths:
Sending event: pluginload
inline: adding item field cdtitle
inline: adding item field multidisc
inline: adding item field initial
inline: adding item field nicelength
inline: adding album field cdtype
inline: adding album field notalbum
library database: /home/mmattox/.beets.db
library directory: /home/mmattox/convertedMusic
Sending event: library_opened
fetchart: trying source filesystem for album KMFDM - Amnesia
fetchart: trying source coverart for album KMFDM - Amnesia
ImageMagick check `convert --version` failed: [Errno 2] No such file or directory: 'convert'
artresizer: method is (1, (0,))
fetchart: downloading image: https://coverartarchive.org/release/b0682581-89f9-430a-8d89-8fc931107a41/front
fetchart: not a supported image: image/x-None
fetchart: downloading image: https://coverartarchive.org/release-group/c9a6bd02-3045-4e9c-a61d-3b41dd2fcf65/front
fetchart: downloaded art to: /tmp/tmp3i69k972.jpg
fetchart: image size: (700, 700)
fetchart: image needs resizing (700 > 600)
fetchart: using remote image /tmp/tmp3i69k972.jpg
artresizer: PIL resizing /tmp/tmp3i69k972.jpg to /tmp/tmpc9k_0qbc.jpg
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/PIL/Image.py", line 1447, in save
format = EXTENSION[ext]
KeyError: b'.jpg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/PIL/Image.py", line 1451, in save
format = EXTENSION[ext]
KeyError: b'.jpg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/beet", line 9, in<module>
load_entry_point('beets==1.4.4', 'console_scripts', 'beet')()
File "/usr/local/lib/python3.4/dist-packages/beets-1.4.4-py3.4.egg/beets/ui/__init__.py", line 1221, in main
_raw_main(args)
File "/usr/local/lib/python3.4/dist-packages/beets-1.4.4-py3.4.egg/beets/ui/__init__.py", line 1208, in _raw_main
subcommand.func(lib, suboptions, subargs)
File "/usr/local/lib/python3.4/dist-packages/beets-1.4.4-py3.4.egg/beetsplug/fetchart.py", line 829, in func
self.batch_fetch_art(lib, lib.albums(ui.decargs(args)), opts.force)
File "/usr/local/lib/python3.4/dist-packages/beets-1.4.4-py3.4.egg/beetsplug/fetchart.py", line 882, in batch_fetch_art
candidate = self.art_for_album(album, local_paths)
File "/usr/local/lib/python3.4/dist-packages/beets-1.4.4-py3.4.egg/beetsplug/fetchart.py", line 865, in art_for_album
out.resize(self)
File "/usr/local/lib/python3.4/dist-packages/beets-1.4.4-py3.4.egg/beetsplug/fetchart.py", line 143, in resize
self.path = ArtResizer.shared.resize(plugin.maxwidth, self.path)
File "/usr/local/lib/python3.4/dist-packages/beets-1.4.4-py3.4.egg/beets/util/artresizer.py", line 184, in resize
return func(maxwidth, path_in, path_out)
File "/usr/local/lib/python3.4/dist-packages/beets-1.4.4-py3.4.egg/beets/util/artresizer.py", line 75, in pil_resize
im.save(path_out)
File "/usr/lib/python3/dist-packages/PIL/Image.py", line 1453, in save
raise KeyError(ext) # unknown extension
KeyError: b'.jpg'
Led to this problem:
in my config:
fetchart:
auto: yes
minwidth: 350
maxwidth: 600
Here's a link to the music files that trigger the bug (if relevant):
Setup
OS: ubuntu 14.04
Python version: python 3.4.3
beets version: 1.4.4
Turning off plugins made problem go away (yes/no): plugin issue
sampsyo
changed the title
Exception: raise KeyError(ext) # unknown extension using pil_resize with python3
fetchart: Catch PIL file type exception (KeyError) when resizing art
Apr 4, 2017
Thanks! Looks like PIL behaves poorly when it doesn't have support for JPEG writing. You might try disabling art resizing (or using ImageMagick instead of PIL) for now.
Problem
(Describe your problem, feature request, or discussion topic here. If you're reporting a bug, please fill out this and the "Setup" section below. Otherwise, you can delete them.)
Running this command in verbose (
-vv
) mode:Led to this problem:
Here's a link to the music files that trigger the bug (if relevant):
Setup
My configuration (output of
beet config
) is:The text was updated successfully, but these errors were encountered: