root@ttd:~/TTD# ./TwoToneDetect74
STARTING IMPORTS
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Traceback (most recent call last):
File "TwoToneDetect74.py", line 47, in <module>
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
File "pystray/__init__.py", line 64, in <module>
File "pystray/__init__.py", line 56, in backend
File "pystray/__init__.py", line 36, in xorg
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
File "pystray/_xorg.py", line 36, in <module>
File "Xlib/display.py", line 89, in __init__
File "Xlib/display.py", line 71, in __init__
File "Xlib/protocol/display.py", line 84, in __init__
File "Xlib/support/connect.py", line 73, in get_display
File "Xlib/support/unix_connect.py", line 76, in get_display
Xlib.error.DisplayNameError: Bad display name ""
[3845] Failed to execute script 'TwoToneDetect74' due to unhandled exception!