Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#42970 - [python-html2text] html2text won't accept standard input
Attached to Project:
Community Packages
Opened by Mark Blakeney (bulletmark) - Monday, 01 December 2014, 02:09 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Friday, 05 December 2014, 19:25 GMT
Opened by Mark Blakeney (bulletmark) - Monday, 01 December 2014, 02:09 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Friday, 05 December 2014, 19:25 GMT
|
DetailsThe new html2text version will not accept standard input, e.g:
$ echo '<p>hi</p>' | html2text Traceback (most recent call last): File "/usr/bin/html2text", line 9, in <module> load_entry_point('html2text==2014.9.25', 'console_scripts', 'html2text')() File "/usr/lib/python3.4/site-packages/html2text/__init__.py", line 1083, in main data = data.decode(encoding) AttributeError: 'str' object has no attribute 'decode' If you put that input string in a file and pass it as an argument it works ok. Package version: python-html2text 2014.9.25-3 |
This task depends upon
Closed by Jaroslav Lichtblau (Dragonlord)
Friday, 05 December 2014, 19:25 GMT
Reason for closing: Upstream
Additional comments about closing: upstream bug fixed in new version python-html2text-2014.12.5-1
Friday, 05 December 2014, 19:25 GMT
Reason for closing: Upstream
Additional comments about closing: upstream bug fixed in new version python-html2text-2014.12.5-1
Comment by Jaroslav Lichtblau (Dragonlord) -
Monday, 01 December 2014, 07:20 GMT
Does not seem to be a trouble with packaging. I'd suggest to report this upstream.
Comment by Mark Blakeney (bulletmark) -
Monday, 01 December 2014, 10:32 GMT
That "'str' object has no attribute 'decode'" is a typical python 2 to 3 transition error. That's why I suspected it may be an Arch issue?
Comment by Mark Blakeney (bulletmark) -
Monday, 01 December 2014, 12:21 GMT
The problem only occurs using python 3, it works fine with python 2. I installed the upstream git repo on a debian box and reproduced the problem. So I have raised upstream bug http://github.com/Alir3z4/html2text/issues/45.