Skip to content

[Raspian][v0.7.0] LookupError: unknown encoding: utf-8 #194

@Fabioamd87

Description

@Fabioamd87

Hello, I've realized that wsdd is in Raspberry Pi OS bookworm, and this is very cool!
Unfortunately when I start the service trough systemd, I get this error:

Jan 18 19:23:41 rpi wsdd[55131]:   File "/usr/sbin/wsdd", line 1165, in handle_new_address
Jan 18 19:23:41 rpi wsdd[55131]:   File "/usr/sbin/wsdd", line 753, in __init__
Jan 18 19:23:41 rpi wsdd[55131]:   File "/usr/sbin/wsdd", line 777, in send_hello
Jan 18 19:23:41 rpi wsdd[55131]:   File "/usr/sbin/wsdd", line 311, in build_message
Jan 18 19:23:41 rpi wsdd[55131]:   File "/usr/sbin/wsdd", line 427, in xml_to_buffer
Jan 18 19:23:41 rpi wsdd[55131]:   File "/usr/lib/python3.11/xml/etree/ElementTree.py", line 1098, in tostring
Jan 18 19:23:41 rpi wsdd[55131]:   File "/usr/lib/python3.11/xml/etree/ElementTree.py", line 731, in write
Jan 18 19:23:41 rpi wsdd[55131]:   File "/usr/lib/python3.11/contextlib.py", line 137, in __enter__
Jan 18 19:23:41 rpi wsdd[55131]:   File "/usr/lib/python3.11/xml/etree/ElementTree.py", line 794, in _get_writer
Jan 18 19:23:41 rpi wsdd[55131]: LookupError: unknown encoding: utf-8

I probably know how to fix this, but is there any solution that doesn't imply to touch the "original" code of the package?

thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions