Running the script on a server without a display fails with:
_tkinter.TclError: no display name and no $DISPLAY environment variable
Streamer Username to record: foo_channel
🔧 Setting up configuration...
📁 Select output folder...
Traceback (most recent call last):
File "/opt/twitch-stream/./twitch-recorder.py", line 246, in <module>
recorder = TwitchRecorder(streamer_name)
File "/opt/twitch-stream/./twitch-recorder.py", line 21, in __init__
self._setup_output_folder()
File "/opt/twitch-stream/./twitch-recorder.py", line 37, in _setup_output_folder
root = Tk()
File "/usr/lib/python3.9/tkinter/__init__.py", line 2270, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable
Forcing a dummy value with export DISPLAY=':0' also fails:
_tkinter.TclError: couldn't connect to display ":0"
Is the script (and the underlying streamlink library) able to work without a display?
Running the script on a server without a display fails with:
Forcing a dummy value with
export DISPLAY=':0'also fails:Is the script (and the underlying streamlink library) able to work without a display?