FS#64593 - [python-html2text] Does not accept text from stdin
Attached to Project:
Community Packages
Opened by FichteFoll (FichteFoll) - Wednesday, 20 November 2019, 16:59 GMT
Last edited by Eli Schwartz (eschwartz) - Friday, 25 September 2020, 06:16 GMT
Opened by FichteFoll (FichteFoll) - Wednesday, 20 November 2019, 16:59 GMT
Last edited by Eli Schwartz (eschwartz) - Friday, 25 September 2020, 06:16 GMT
|
Details
Description:
Similar to https://bugs.archlinux.org/task/42970, when piping text into html2text, an exception is thrown. A fix is already available in version 2019.9.26. Additional info: * package version: 2019.8.11 * upstream report: https://github.com/Alir3z4/html2text/issues/287 Steps to reproduce: ~ $ echo "text" | html2text Traceback (most recent call last): File "/usr/bin/html2text", line 11, in <module> load_entry_point('html2text==2019.8.11', 'console_scripts', 'html2text')() File "/usr/lib/python3.8/site-packages/html2text/cli.py", line 262, in main data = data.decode(args.encoding, args.decode_errors) AttributeError: 'str' object has no attribute 'decode' |
This task depends upon
Closed by Eli Schwartz (eschwartz)
Friday, 25 September 2020, 06:16 GMT
Reason for closing: Fixed
Additional comments about closing: python-html2text 2020.1.16-1
Friday, 25 September 2020, 06:16 GMT
Reason for closing: Fixed
Additional comments about closing: python-html2text 2020.1.16-1
I would love to get a package with the current version (by now 2020.1.16).
Surely, we could rather break one ancient python-2 dependency than the current version of the tool itself?
Thanks!
(Also, maybe the "upstream URL" should be https://alir3z4.github.io/html2text/)
But now it's a moot point, since the remaining python2 use is gone (calibre got updated to use python3), so we're just going to upgrade it now, while I drop a bunch of python2 legacy packages.