Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


The latest official python-feedparser package has a bug that makes it unusable
(but only when python-chardet is installed)

>>> import feedparser
>>> feedparser.parse("")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.3/site-packages/", line 3966, in parse
data, result['encoding'], error = convert_to_utf8(http_headers, data)
File "/usr/lib/python3.3/site-packages/", line 3768, in convert_to_utf8
chardet_encoding = str(chardet.detect(data)['encoding'] or '', 'ascii', 'ignore')
TypeError: decoding str is not supported

Additional info:
* version: 5.1.3-1

Note that the bug is already fixed upstream:

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