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

No such file or directory #165

Open
soype opened this issue Oct 8, 2022 · 5 comments
Open

No such file or directory #165

soype opened this issue Oct 8, 2022 · 5 comments

Comments

@soype
Copy link

soype commented Oct 8, 2022

I'm on Manjaro and I installed xkeysnail via yay (yay -S xkeysnail).

The app seems to be installed as I can run it from the terminal but I always get this message which leads me to believe maybe my install didn't go as planned?

Running with sudo:

Traceback (most recent call last):
File "/usr/bin/xkeysnail", line 6, in
cli_main()
File "/usr/lib/python3.10/site-packages/xkeysnail/init.py", line 62, in cli_main
eval_file(args.config)
File "/usr/lib/python3.10/site-packages/xkeysnail/init.py", line 5, in eval_file
with open(path, "rb") as file:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.config/xkeysnail/config.py'

Without sudo

Traceback (most recent call last):
File "/usr/bin/xkeysnail", line 6, in
cli_main()
File "/usr/lib/python3.10/site-packages/xkeysnail/init.py", line 62, in cli_main
eval_file(args.config)
File "/usr/lib/python3.10/site-packages/xkeysnail/init.py", line 5, in eval_file
with open(path, "rb") as file:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pedroh/.config/xkeysnail/config.py'

@joshgoebel
Copy link

You need a config file at that location named.

@soype
Copy link
Author

soype commented Oct 8, 2022

The installer doesn't do that? I haven't seen anywhere in the instructions that I should create one

@joshgoebel
Copy link

joshgoebel commented Oct 8, 2022

No. Without a config file to tell us what to remap the software would do nothing at all. If you want something with an "out of the box" config maybe look at Kinto.sh?

@soype
Copy link
Author

soype commented Oct 9, 2022

No. Without a config file to tell us what to remap the software would do nothing at all. If you want something with an "out of the box" config maybe look at Kinto.sh?

Thanks. How do I create a working config.py? I've cd into the route and run sudo nano config.py to get a blank file but I still get this error when I run sudo xkeysnail

usage: xkeysnail [-h] [--devices device [device ...]] [--watch] [-q] config.py
xkeysnail: error: the following arguments are required: config.py

@joshgoebel
Copy link

See me comment on the other thread.

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

2 participants