Bug 982915 - urlwatch: TypeError: Can't convert 'bytes' object to str implicitly
Summary: urlwatch: TypeError: Can't convert 'bytes' object to str implicitly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: urlwatch
Version: 19
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Fabian Affolter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-10 06:37 UTC by Jan ONDREJ
Modified: 2014-07-19 06:00 UTC (History)
1 user (show)

Fixed In Version: urlwatch-1.16-2.fc19
Clone Of:
Environment:
Last Closed: 2014-07-19 06:00:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
fix (634 bytes, patch)
2013-07-10 06:37 UTC, Jan ONDREJ
no flags Details | Diff

Description Jan ONDREJ 2013-07-10 06:37:43 UTC
Created attachment 771415 [details]
fix

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):
urlwatch-1.15-4.fc19.noarch

How reproducible:
always

Steps to Reproduce:
1. edit urls.txt
2. add "|cat /etc/hosts"
3. urlwatch

Actual results:
Traceback (most recent call last):
  File "/bin/urlwatch", line 333, in <module>
    timestamp_new))
  File "/usr/lib64/python3.3/difflib.py", line 1225, in unified_diff
    yield '+' + line
TypeError: Can't convert 'bytes' object to str implicitly

Additional info:
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.
>
>HTH :)
>Thomas

Looks like it will not be applied in short time, so please apply to Fedora package.

Comment 1 Fedora Update System 2014-07-10 07:42:50 UTC
urlwatch-1.16-2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/urlwatch-1.16-2.fc19

Comment 2 Fedora Update System 2014-07-11 02:02:50 UTC
Package urlwatch-1.16-2.fc19:
* 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:
https://admin.fedoraproject.org/updates/FEDORA-2014-8235/urlwatch-1.16-2.fc19
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2014-07-19 06:00:53 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.