JSubelj / g910-gkey-macro-support

GKey support for Logitech G910 Keyboard on Linux
GNU General Public License v3.0
99 stars 31 forks source link

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

Open bschatz opened 10 months ago

bschatz commented 10 months ago

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

as a systemd user service

does not exist

$ 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'.

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

Desktop (please complete the following information):

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:    12
Codename:   bookworm
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:    12
Codename:   bookworm
$ sudo apt show xfce4
Package: xfce4
Version: 4.18
$ git describe --abbrev   
0.3.0-19-g4b1f05e

Additional context Add any other context about the problem here.

suabo commented 5 months ago

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!