Errors running main.py
andreapx opened this issue · 3 comments
Hi!
I'm trying to use your software to emulate a BT HID, but I'm getting this error:
File "main.py", line 223, in <module> d = display.Display() File "/usr/lib/python3/dist-packages/Xlib/display.py", line 80, in __init__ self.display = _BaseDisplay(display) File "/usr/lib/python3/dist-packages/Xlib/display.py", line 62, in __init__ display.Display.__init__(*(self, ) + args, **keys) File "/usr/lib/python3/dist-packages/Xlib/protocol/display.py", line 53, in __init__ name, host, displayno, screenno = connect.get_display(display) File "/usr/lib/python3/dist-packages/Xlib/support/connect.py", line 64, in get_display return getattr(mod, modname).get_display(display) File "/usr/lib/python3/dist-packages/Xlib/support/unix_connect.py", line 58, in get_display raise error.DisplayNameError(display) Xlib.error.DisplayNameError: Bad display name ""
Do you know I can I solve it?
Thanks!
My program depends on a running X11 session. You can check environment variable DISPLAY
, it should be something like :1
.
Oh, I see.
I'm running a headless Pi, so no X11.