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

[Issue] error: externally-managed-environment, service cant find g910-gkeys #86

Open
bschatz opened this issue Dec 29, 2023 · 1 comment

Comments

@bschatz
Copy link

bschatz commented Dec 29, 2023

Describe the bug
Installer script prints out error:

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.

The error comes from the line
pip install -e ./ in the installer.sh script.

Journalctl shows error
env[35229]: /usr/bin/env: „g910-gkeys“: Datei oder Verzeichnis nicht gefunden

--> File not found.

To Reproduce
run ./installer.sh

Expected behavior
no error, g910-gkeys is found by service

Screenshots

Additional info

  • did you run in daemon or normal mode

as a systemd user service

  • logs from /var/log/g910-gkeys.log

does not exist

  • logs from journalctl -u g910-gkeys
$ journalctl --user -u g910-gkeys | tail -10
Dec 29 17:17:46 jupiter systemd[2940]: Started g910-gkeys.service - Support for Logitech g910 keyboard gkeys.
Dec 29 17:17:46 jupiter env[36110]: /usr/bin/env: „g910-gkeys“: Datei oder Verzeichnis nicht gefunden
Dec 29 17:17:46 jupiter systemd[2940]: g910-gkeys.service: Main process exited, code=exited, status=127/n/a
Dec 29 17:17:46 jupiter systemd[2940]: g910-gkeys.service: Failed with result 'exit-code'.
Dec 29 17:17:56 jupiter systemd[2940]: g910-gkeys.service: Scheduled restart job, restart counter is at 186.
Dec 29 17:17:56 jupiter systemd[2940]: Stopped g910-gkeys.service - Support for Logitech g910 keyboard gkeys.
Dec 29 17:17:56 jupiter systemd[2940]: Started g910-gkeys.service - Support for Logitech g910 keyboard gkeys.
Dec 29 17:17:56 jupiter env[36119]: /usr/bin/env: „g910-gkeys“: Datei oder Verzeichnis nicht gefunden
Dec 29 17:17:56 jupiter systemd[2940]: g910-gkeys.service: Main process exited, code=exited, status=127/n/a
Dec 29 17:17:56 jupiter systemd[2940]: g910-gkeys.service: Failed with result 'exit-code'.
  • configuration in /etc/g910-gkeys/config.json

Does not exist. Use origin config.json, located in
~/.config/g910-gkeys/config.json

Desktop (please complete the following information):

  • OS: [e.g. manjaro]
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm
  • Kernel version
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm
  • desktop enviroment
$ sudo apt show xfce4
Package: xfce4
Version: 4.18
  • g910-gkeys version
$ git describe --abbrev   
0.3.0-19-g4b1f05e
  • python version
$ apt show python3
Package: python3
Version: 3.11.2-1+b1

Additional context
Add any other context about the problem here.

@suabo
Copy link
Collaborator

suabo commented May 27, 2024

Can you ensure you have installed pyusb & python-uinput. You can use pip list|grep py.
You should see something like this:

...
python-uinput         0.11.2
...
pyusb                 1.2.1
...

If you don't see it here try to install it:
sudo apt install python3-uinput python-usb

After installing the required dependencies you should be able to run the install script with no errors.
Please also use the newest version!

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