FS#33254 - [python-feedparse] broken when python-chardet is installed, please apply upstream fix
Attached to Project:
Arch Linux
Opened by Yannick LM (yannick_lm) - Monday, 31 December 2012, 11:34 GMT
Last edited by Evangelos Foutras (foutrelis) - Monday, 31 December 2012, 12:24 GMT
Opened by Yannick LM (yannick_lm) - Monday, 31 December 2012, 11:34 GMT
Last edited by Evangelos Foutras (foutrelis) - Monday, 31 December 2012, 12:24 GMT
|
Details
The latest official python-feedparser package has a bug that
makes it unusable
(but only when python-chardet is installed) [code] >>> import feedparser >>> feedparser.parse("http://radiofrance-podcast.net/podcast09/rss_13364.xml") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.3/site-packages/feedparser.py", line 3966, in parse data, result['encoding'], error = convert_to_utf8(http_headers, data) File "/usr/lib/python3.3/site-packages/feedparser.py", line 3768, in convert_to_utf8 chardet_encoding = str(chardet.detect(data)['encoding'] or '', 'ascii', 'ignore') TypeError: decoding str is not supported [/code] Additional info: * version: 5.1.3-1 Note that the bug is already fixed upstream: http://code.google.com/p/feedparser/source/detail?r=20a32910f4a521788ba93a8c809cf0db702bed5b So I'm not sure what's the best thing to do here: wait for the next release of feedparser, or just add the patch in the official PKGBUILD? |
This task depends upon
Closed by Evangelos Foutras (foutrelis)
Monday, 31 December 2012, 12:24 GMT
Reason for closing: Fixed
Additional comments about closing: python-feedparser 5.1.3-2
Monday, 31 December 2012, 12:24 GMT
Reason for closing: Fixed
Additional comments about closing: python-feedparser 5.1.3-2