Red Hat Bugzilla – Bug 982915
urlwatch: TypeError: Can't convert 'bytes' object to str implicitly
Last modified: 2014-07-19 02:00:53 EDT
Created attachment 771415 [details]
Description of problem:
After update to Fedora 19 urlwatch is using python3. I am not sure, if
this is my problem, but "URLs" with pipe can't be processed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. edit urls.txt
2. add "|cat /etc/hosts"
Traceback (most recent call last):
File "/bin/urlwatch", line 333, in <module>
File "/usr/lib64/python3.3/difflib.py", line 1225, in unified_diff
yield '+' + line
TypeError: Can't convert 'bytes' object to str implicitly
Patch which helped me is attached. Upstream (Thomas Perl) response to my patch:
>Thanks for the patch. I'll consider merging it once I migrate the whole urlwatch
>codebase to Python3-only.
Looks like it will not be applied in short time, so please apply to Fedora package.
urlwatch-1.16-2.fc19 has been submitted as an update for Fedora 19.
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing urlwatch-1.16-2.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
urlwatch-1.16-2.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.