error when running 'sudo pihole5-list-tool'
See original GitHub issueHello jessedp, I’m having an error appear when trying to run your tool. I’m using a raspberry pi 4 on the latest version of raspbian (buster). I followed the instruction in your post for installation which reported fine, then when trying to run the tool I get the following:
Traceback (most recent call last): File "/usr/local/bin/pihole5-list-tool", line 10, in <module> sys.exit(main()) File "/usr/local/lib/python3.7/dist-packages/ph5lt.py", line 82, in main print(color(' \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510', fg='#b61042')) UnicodeEncodeError: 'latin-1' codec can't encode characters in position 21-64: ordinal not in range(256)
Seen this before? I will admit I know nothing of programming, and am a basic linux user. I followed many guides to get pi-hole 5 up and running and any help you can offer on this issue would be awesome. Thank you very much!
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
Some helpful commands in terminal Display current locale settings:
$ locale
Show available locales:$ locale -a
If a locale does not appear in the list, it must be generated:$ sudo locale-gen en_GB.UTF-8
A list of all available locales can be found in the following file:$ cat /usr/share/i18n/SUPPORTED
Adjust Locales: The default settings are stored in the file /etc/default/locale:This file can either be adjusted manually or updated with the
update-locale
tool:$ sudo update-locale LANG=en_GB.UTF-8
(Hint:update-locale
also generates the file /etc/default/locale if it does not exist.) Then reboot the system or open a new console.UTF-8 encoding in terminal is required for pihole5-list-tool to show the red frame on startup…
That’s amazing, I love it. I’m pretty sure that all that mattered was the Character Set if you want to change the Country back.