Skip to content
SpamixOfficial edited this page Dec 2, 2022 · 3 revisions

Welcome to the OpenClick wiki!

Here I will be answering some questions!

FAQ

I have run the installer and installed all modules but I still cant use OpenClick?

Solution

Make sure your settings.txt file is not corrupted or messed up! If it is then here is a quick fix:

Your settings.txt should look like this by default after the setup:

MAGENTA
firststartup=true
f1
debugmode=false

If it doesn't look like this, then you can just paste in the code above into the settings.txt file.

I have run the installer and installed all modules and tried everything above but I still cant use OpenClick?

Solution

If your error looks like this:

Traceback (most recent call last):
  File "/home/randomprimary/Documents/OpenClick-0.3-beta/main.py", line 28, in <module>
    from pynput.keyboard import Key, Listener
  File "/home/randomprimary/.local/lib/python3.9/site-packages/pynput/__init__.py", line 40, in <module>
    from . import keyboard
  File "/home/randomprimary/.local/lib/python3.9/site-packages/pynput/keyboard/__init__.py", line 31, in <module>
    backend = backend(__name__)
  File "/home/randomprimary/.local/lib/python3.9/site-packages/pynput/_util/__init__.py", line 76, in backend
    raise ImportError('this platform is not supported: {}'.format(
ImportError: this platform is not supported: ("failed to acquire X connection: No module named 'tkinter'", ModuleNotFoundError("No module named 'tkinter'"))

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

Then install tKinter manually. You can install it by using;

For Debian/Ubuntu based distros

sudo apt-get install python-tk

For Arch Linux based distros

sudo pacman -S tk

FAQ WIP (submit more questions :D)