FS#68518 - [avahi] avahi-discover: Python2 Python3 mixup ?

Attached to Project: Arch Linux
Opened by Marc Rechté (mrechte) - Tuesday, 03 November 2020, 16:21 GMT
Last edited by Jan Alexander Steffens (heftig) - Wednesday, 21 April 2021, 11:03 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hello,

Running /usr/bin/avahi-discover produces errors like

Service data for service 'Freebox Server' of type '_http._tcp' in domain 'local' on 5.0:
Host Freebox-Server.local (192.168.42.253), port 80, TXT data: []
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/dbus/connection.py", line 606, in msg_reply_handler
reply_handler(*message.get_args_list(**get_args_opts))
File "/usr/bin/avahi-discover", line 114, in service_resolved
self.update_label(interface, protocol, name, stype, domain, host, aprotocol, address, port, avahi.txt_array_to_string_array(txt))
File "/usr/bin/avahi-discover", line 242, in update_label
txts = txts.decode("utf-8")
AttributeError: 'str' object has no attribute 'decode'


regards
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Wednesday, 21 April 2021, 11:03 GMT
Reason for closing:  Fixed
Additional comments about closing:  0.8+20+gd1e71b3-1
Comment by loqs (loqs) - Tuesday, 03 November 2020, 18:28 GMT
Upstream issue [1], Have you tried the fix from [2]?

[1] https://github.com/lathiat/avahi/issues/275
[2] https://github.com/lathiat/avahi/pull/282
Comment by mushotoku (mushotoku) - Saturday, 16 January 2021, 14:05 GMT
I can confirm that https://github.com/lathiat/avahi/pull/282 fixes this.

Loading...