daxter-army / key-cast

Cast your key presses and mouse clicks on the screen, while casting your favorite application on the screen. Better than the rest.
https://daxter-army.github.io/key-cast/
MIT License
24 stars 5 forks source link

Platform not supported #8

Open ipetinate opened 6 months ago

ipetinate commented 6 months ago

Descrition

I have trouble when install on my distro, maybe does not work on Wayland.

Error

Traceback (most recent call last):
  File "keycast_prod.py", line 11, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 546, in exec_module
  File "pynput/__init__.py", line 40, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 546, in exec_module
  File "pynput/keyboard/__init__.py", line 31, in <module>
  File "pynput/_util/__init__.py", line 76, in backend
ImportError: this platform is not supported: ('failed to acquire X connection: Can\'t connect to display ":0": b\'Authorization required, but no authorization protocol specified\\n\'', DisplayConnectionError(':0', b'Authorization required, but no authorization protocol specified\n'))

Try one of the following resolutions:

 * Please make sure that you have an X server running, and that the DISPLAY environment variable is set correctly
[202619] Failed to execute script 'keycast_prod' due to unhandled exception!

Hardware Information:

Software Information:

RafaelLinux commented 5 months ago

I executed it from terminal but despite it's apparently loaded in memory, nothing appears in screen. No errors, but no signals of doing nothing. In fact, when I press Ctrl+C after launch it in terminal to stop it, it takes near 1 minute to stop with this messages:

./keycast_prod 
^CTraceback (most recent call last):
  File "keycast_prod.py", line 392, in <module>
  File "tkinter/__init__.py", line 1429, in mainloop
KeyboardInterrupt
[29064] Failed to execute script 'keycast_prod' due to unhandled exception!

I'm using Wayland protocol, under Plasma in openSUSE