Have just got Caddy installed on a new Raspian Pi4 (running version 10, buster), and a Caddyfile configured. This is via a SSH connection using Putty to an IPv6 address.
So far so good. But when I run /etc/caddy/caddy, I get a strange error message from tkinter.
Traceback (most recent call last):
File “/usr/local/bin/caddy”, line 10, in
File “/usr/local/lib/python3.7/dist-packages/caddy/main.py”, line 9, in main
root = tk.Tk()
File “/usr/lib/python3.7/tkinter/init.py”, line 2023, in init
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable
Maybe it’s a conflict with the Putty SSH?
But if Caddy is designed to be used from the command line, I’m wondering why a dependency on the Tk GUI toolkit has been included?
Has anyone else seen this behaviour? And found a way round it?
Thanks in advance