-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
TypeError in fetchart #1805
Comments
I confirm, reverting a502610 for It creates an other one (for less files though):
|
Thanks! This does look like a bug, but some more information would be really helpful. Can you get a verbose log for a specific file that triggers the problem? Doing this with a |
Here is the output of
I'm not sure that that brings much more information. This seems to be coming from the I stay available for more questions |
For the problem created by the deleting of unicode literals, it seems to be coming from this line: https://github.com/beetbox/beets/blob/master/beetsplug/fetchart.py#L268 where both parameters need to be encoded to utf8. |
Do not use unicode_literals, it causes problems with the stdlib in Python 2. It's been a major pain point in any project I've ever worked on. See PythonCharmers/python-future#22 |
That helps; thanks! If I can ask for one more favor, can you also get the verbose output? That is, @untitaker: Yes, turning off unicode_literals altogether might be a good idea separately. It has been mostly a headache. In this particular case, though, we just need to figure out which parameter has to be encoded before passing to |
Here is the corrected version without
And here is the version without any modification:
Hope that helps |
Thank you again for all the digging. Bizarrely, I'm still having trouble reproducing it. Here's the script that should trigger the crash: import logging
from beetsplug import fetchart
class Album(object):
pass
album = Album()
album.albumartist = 'Alanis Morissette'
album.album = 'MTV Unplugged'
w = fetchart.Wikipedia(logging.getLogger(), None)
print(list(w.get(album))) But on my system: $ python t.py
[u'https://upload.wikimedia.org/wikipedia/en/6/6d/Alanis_Unplugged_album_cover.jpg'] I'm suspicious that this might be a pyOpenSSL bug that's since been fixed. Here are some rumblings elsewhere: https://github.com/kennethreitz/requests/issues/2113 pyca/pyopenssl#15 @Phyks and @Niols, which platform are you on? Can you check your versions of requests and pyOpenSSL? Even though I'm flying blind here, I have a guess—so I'm pushing a potential fix. Can I ask you one more favor in checking whether it happens to fix the problem? |
Hi,
I got errors and a traceback with the
fetchart
plugin. Traceback is:Undoing this commit fixes it partly (no longer this error anymore, but some other errors appear, although I managed to get it running).
cc @Niols which is having this issue as well
Thanks!
The text was updated successfully, but these errors were encountered: