Closed chew-z closed 6 years ago
Fixed
How its solved ? i am getting it for pynput
It was fixed by only importing pynput
when you use the type
command.
m getting same issue on ec2 instance
Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/Xlib/support/unix_connect.py", line 119, in get_socket s = _get_unix_socket(address) File "/usr/local/lib/python3.7/site-packages/Xlib/support/unix_connect.py", line 98, in _get_unix_socket s.connect(address) ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/Xlib/support/unix_connect.py", line 123, in get_socket s = _get_tcp_socket(host, dno) File "/usr/local/lib/python3.7/site-packages/Xlib/support/unix_connect.py", line 93, in _get_tcp_socket s.connect((host, 6000 + dno)) ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./demo.py", line 10, in
What command are you running?
I have just imported from pynput.keyboard import Key, Controller and ran that script
@shubhamdangare I mean when is passhole
being invoked/imported?
Since 1.6 I think passhole on my machine will crash with
Xlib.error.DisplayNameError: Bad display name ""
The reason is that I am running Debian stretch in pure cli environment (via crouton on ChromeOS) without X and pynput crashes.
I have added
export DISPLAY=":0"
and passhole started working again but perhaps it could have been handled better or mentioned in documentation.[1] This issue