Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad Display Name #26

Open
NET-OF-BEING opened this issue Jun 4, 2018 · 6 comments
Open

Bad Display Name #26

NET-OF-BEING opened this issue Jun 4, 2018 · 6 comments

Comments

@NET-OF-BEING
Copy link

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

@JeffHoogland
Copy link
Owner

Based on this message it looks like the error is coming from your XLib module and not pyxhook?

@leocotes
Copy link

leocotes commented Jun 7, 2018

I'm with the same problem...
I installed apt-get install python3-xlib and python-xlib

@JeffHoogland
Copy link
Owner

What version of xlib are you folks using and on what platform?

@leocotes
Copy link

leocotes commented Jun 8, 2018

python3-xlib 0.20-3
Ubuntu 18.04

@inmotions
Copy link

How should this problem be solved?

@Mr-Meowmix
Copy link

I am currently experiencing the same problem myself. On (manjaro) linux my program runs fine but if its on windows this error is thrown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants