Skip to content

Bad Display Name #26

Description

@NET-OF-BEING

I can't get this running. ive used pip to install the pyxhook module and tried using both python 2.7 and 3.6.5.

Traceback (most recent call last):
File "keylog.py", line 25, in
hookman = pyxhook.HookManager()
File "/usr/local/lib/python3.6/site-packages/pyxhook/pyxhook.py", line 67, in init
self.local_dpy = display.Display()
File "/usr/local/lib/python3.6/site-packages/Xlib/display.py", line 89, in init
self.display = _BaseDisplay(display)
File "/usr/local/lib/python3.6/site-packages/Xlib/display.py", line 71, in init
protocol_display.Display.init(self, *args, **keys)
File "/usr/local/lib/python3.6/site-packages/Xlib/protocol/display.py", line 85, in init
name, protocol, host, displayno, screenno = connect.get_display(display)
File "/usr/local/lib/python3.6/site-packages/Xlib/support/connect.py", line 73, in get_display
return mod.get_display(display)
File "/usr/local/lib/python3.6/site-packages/Xlib/support/unix_connect.py", line 61, in get_display
raise error.DisplayNameError(display)
Xlib.error.DisplayNameError: Bad display name ""

Can someone help me with this please

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions